|
Oracle Secure Enterprise Search Java API Reference 11g Release 1 (11.1.2.0.0) E14433-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthorizationManager
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 |
ANONYMOUS_USER |
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 |
---|
static final String VERSION
static final String ANONYMOUS_USER
Method Detail |
---|
String getBaseAPIVersion()
AuthorizationManager.VERSION
.String getPluginName()
String getPluginDescription()
String getPluginVersion()
List getPluginParameters()
init
.ParameterInfo
objectsboolean 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 occursvoid 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 occursIdentityPlugin
boolean isQueryFilterAvailable()
true
if this manager provides a QueryFilterPlugin
.boolean isResultFilterAvailable()
true
if this manager provides a ResultFilterPlugin
.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
otherwiseQueryFilterPlugin 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 requestQueryFilterPlugin
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 11g Release 1 (11.1.2.0.0) E14433-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |