|
Oracle Secure Enterprise Search Java API Reference 10g Release 1 (10.1.8.1) B32515-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An interface to manage authorization plug-ins for extensible authorization. This manager may provide a query filter plug-in, a result filter plug-in, or both.
QueryFilterPlugin, ResultFilterPlugin, IdentityPlugin| Field Summary | |
static String |
VERSION |
| Method Summary | |
boolean |
areAttributesSufficient(SecurityAttributeInfo[] attributes)Returns true if this authorization plug-in supports all of the security attributes exposed by the crawler plug-in, and if these are sufficient to determine authorization. |
String |
getBaseAPIVersion()Returns the version string of the plug-in API. |
String |
getPluginDescription()Returns the description of the authorization manager plug-in. |
String |
getPluginName()Returns the name of the authorization manager plug-in. |
List |
getPluginParameters()Returns a list of parameter objects for the authorization manager plug-in. |
String |
getPluginVersion()Returns the version string of the authorization manager plug-in. |
QueryFilterPlugin |
getQueryFilterPlugin(String username, ServletRequest req)Returns an instance of QueryFilterPlugin. |
ResultFilterPlugin |
getResultFilterPlugin()Returns an instance of ResultFilterPlugin. |
void |
init(ParameterValues params, IdentityPluginManager identityPluginManager, Logger logger)Initializes the authorization manager plug-in with parameter values provided in the administration tool. |
boolean |
isQueryFilterAvailable()Returns true if this manager provides a QueryFilterPlugin. |
boolean |
isResultFilterAvailable()Returns true if this manager provides a ResultFilterPlugin. |
boolean |
validateParams(ParameterValues params)Validates the parameter values that will later be used by the administration tool, crawler, or query application to call init. |
| Field Detail |
public static final String VERSION
| Method Detail |
public String getBaseAPIVersion()
AuthorizationManager.VERSION.public String getPluginName()
public String getPluginDescription()
public String getPluginVersion()
public List getPluginParameters()
init.ParameterInfo objects
public boolean validateParams(ParameterValues params)
throws PluginException
init. This method is called when the plug-in is configured in the administration tool.params - the parameter valuestrue if the parameters are valid, false otherwisePluginException - if an error occurs
public void init(ParameterValues params,
IdentityPluginManager identityPluginManager,
Logger logger)
throws PluginException
This method will only be called with parameters which have been approved by a prior call to validateParams. However, the prior call to validateParams may have been made on a different object (of this class).
The identity plug-in manager may be used to get instances of IdentityPlugin to perform group lookups or other identity attribute operations. This AuthorizationManager is responsible for calling close on any IdentityPlugin instances once finished.
Note: This method may not be called on every instance of this interface, and it is only guaranteed to be invoked before a call to either getQueryFilterPlugin or getResultFilterPlugin. As a result, the Logger object may not always be available.
params - the parameter valuesidentityPluginManager - null if no identity plug-in has been activated in the administration tool. Otherwise, an active identity plug-in manager. This identity plug-in manager will have already been initialized itself before being passed in as an argument.logger - logger objectPluginException - if an error occursIdentityPluginpublic boolean isQueryFilterAvailable()
true if this manager provides a QueryFilterPlugin.public boolean isResultFilterAvailable()
true if this manager provides a ResultFilterPlugin.public boolean areAttributesSufficient(SecurityAttributeInfo[] attributes)
true if this authorization plug-in supports all of the security attributes exposed by the crawler plug-in, and if these are sufficient to determine authorization. If this authorization manager does not provide a query filter plug-in, then this method will not be called.attributes - the security attributestrue if the attributes are sufficient, false otherwise
public QueryFilterPlugin getQueryFilterPlugin(String username,
ServletRequest req)
QueryFilterPlugin. As a precondition, this object will have been initialized with a call to init.username - the usernamereq - the servlet requestQueryFilterPluginpublic ResultFilterPlugin getResultFilterPlugin()
ResultFilterPlugin. As a precondition, this object will have been initialized with a call to init.ResultFilterPlugin
|
Oracle Secure Enterprise Search Java API Reference 10g Release 1 (10.1.8.1) B32515-01 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||