|
Oracle Fusion Applications Search Java API Reference for Oracle Enterprise Crawl and Search Framework
11g Release 7 (11.1.7) E21908-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Securable
Securable is an interface to be implemented as a seucrity plugin to enforce security rules for a searchable object. To secure a searchable object, developers must create a java class that implements this interface and assign it to the searchable object via ECSF designer interface.
ACE Access Control Entry ACL Access Control List is a list of ACEs
Method Summary | |
---|---|
java.lang.String[] |
getAcl(SearchContext ctx,
IndexableDocument indexableDocument)
This method is called at crawl time to acquire an ACL for an indexable document. |
java.lang.String[] |
getSecurableParams()
This method returns a list of configuration parameter names created for the security plug-in. |
java.lang.String[] |
getSecureAttrAcl(SearchContext ctx,
IndexableDocument document,
java.lang.String attributeName)
This method is called when a document is crawled. |
java.lang.String[] |
getSecureAttrKeys(SearchContext ctx,
java.lang.String attributeName)
For a searchable object, one can norminate one or more search attributes as a security attribute. |
java.lang.String[] |
getSecurityKeys(SearchContext ctx)
Returns an ACL owned by the user, developers must use the defined way to access user object via the context passed by. |
boolean |
isAclEnabled(SearchContext ctx)
Tests if this plug-in enables ACL security. |
Method Detail |
---|
boolean isAclEnabled(SearchContext ctx)
ctx
- runtime context.
and #getSecurityKeys method will not be called.
java.lang.String[] getAcl(SearchContext ctx, IndexableDocument indexableDocument) throws SearchSecurityException
For SES, each ACE in an ACL must be either or a combination of the following two:
ctx
- the runtime context.indexableDocument
- whose ACL is requested.
SearchSecurityException
- if the document does not satisfy your
security rules. This exception will result the document not being indexed.java.lang.String[] getSecurityKeys(SearchContext ctx) throws SearchSecurityException
ctx
- the runtime context.
SearchSecurityException
- if for some reason the context passed to
does not satisfy your security rules. This exception will result user not
being able to find any results for the searchable object.java.lang.String[] getSecureAttrKeys(SearchContext ctx, java.lang.String attributeName) throws SearchSecurityException
ctx
- the runtime context.attributeName
- the binding name of the security attribute. In case of a
VO attribute, it is the Alias name.
SearchSecurityException
- if failed to obtain security ACEs for the
userjava.lang.String[] getSecureAttrAcl(SearchContext ctx, IndexableDocument document, java.lang.String attributeName) throws SearchSecurityException
ctx
- runtime context.document
- the indexable document whose ACL is requested.attributeName
- the binding name of the security attribute. In case of
a VO attribute, it is the Alias name.
SearchSecurityException
- if failed to obtain the ACLjava.lang.String[] getSecurableParams() throws SearchSecurityException
SearchSecurityException
- if failed to obtain security parameters.
|
Oracle Fusion Applications Search Java API Reference for Oracle Enterprise Crawl and Search Framework
11g Release 7 (11.1.7) E21908-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |