Oracle Fusion Applications Search Java API Reference for Oracle Enterprise Crawl and Search Framework
11g Release 1 (11.1.2)

E21908-02

oracle.ecsf.impl.action
Class ActionURLResolver

java.lang.Object
  extended by oracle.ecsf.impl.action.ActionURLResolver

public class ActionURLResolver
extends java.lang.Object


Constructor Summary
ActionURLResolver()
           
 
Method Summary
 java.lang.String evaluate(SearchContext ctx, Document doc, java.lang.String expression)
           
 java.util.HashMap evaluateActionParams(SearchContext ctx, SearchAction actionInst)
          Returns the evaluated action params for a given action.
 java.lang.String evaluateActionTarget(SearchContext ctx, SearchAction actionInst)
          Returns the evaluated action Target for a given action.
 java.util.HashMap evaluateTaskParams(SearchContext ctx, SearchAction actionInst)
          Returns evaluated task parameters for a given action.
 java.lang.String evaluateTitle(SearchContext ctx, SearchAction actionInst)
          Returns evaluated title of the action.
 java.lang.String resolveURL(SearchContext ctx, SearchAction actionInst)
          Resolves an action (either URL or Task type) into a real url using values from its associated document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionURLResolver

public ActionURLResolver()
Method Detail

resolveURL

public java.lang.String resolveURL(SearchContext ctx,
                                   SearchAction actionInst)
                            throws java.sql.SQLException,
                                   SearchSecurityException,
                                   SearchException
Resolves an action (either URL or Task type) into a real url using values from its associated document.

Parameters:
ctx -
actionInst - - the action retrieved from SearchHits. Can be a deserialized action.
Returns:
String - URL
Throws:
java.sql.SQLException
SearchSecurityException
SearchException

evaluateTaskParams

public java.util.HashMap evaluateTaskParams(SearchContext ctx,
                                            SearchAction actionInst)
                                     throws java.sql.SQLException,
                                            SearchSecurityException,
                                            SearchException
Returns evaluated task parameters for a given action.

Returns:
HashMap containing the evaluated task parameters for an action.
Throws:
java.sql.SQLException
SearchSecurityException
SearchException

evaluateTitle

public java.lang.String evaluateTitle(SearchContext ctx,
                                      SearchAction actionInst)
                               throws java.sql.SQLException,
                                      SearchSecurityException,
                                      SearchException
Returns evaluated title of the action.

Parameters:
ctx -
actionInst -
Returns:
String
Throws:
java.sql.SQLException
SearchSecurityException
SearchException

evaluateActionTarget

public java.lang.String evaluateActionTarget(SearchContext ctx,
                                             SearchAction actionInst)
                                      throws java.sql.SQLException,
                                             SearchSecurityException,
                                             SearchException
Returns the evaluated action Target for a given action. This is a low-level api that is internally called by resolveURL().

Parameters:
ctx -
actionInst -
Returns:
Throws:
java.sql.SQLException
SearchSecurityException
SearchException

evaluateActionParams

public java.util.HashMap evaluateActionParams(SearchContext ctx,
                                              SearchAction actionInst)
                                       throws java.sql.SQLException,
                                              SearchSecurityException,
                                              SearchException
Returns the evaluated action params for a given action. This is a low-level api that is internally called by resolveURL() and evaluateTaskParams().

Parameters:
ctx -
actionInst -
Returns:
Throws:
java.sql.SQLException
SearchSecurityException
SearchException

evaluate

public java.lang.String evaluate(SearchContext ctx,
                                 Document doc,
                                 java.lang.String expression)

Oracle Fusion Applications Search Java API Reference for Oracle Enterprise Crawl and Search Framework
11g Release 1 (11.1.2)

E21908-02

Copyright © 2011 Oracle. All rights reserved.