|
Regain 2.1.0-STABLE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CrawlerAccessController
Identifies the groups that are are allowed to read a document. These groups
will be stored in the index and will be used by the
SearchAccessController
which is the
counter-part to this class.
This interface is a part of the access control system that ensures that only those documents are shown in the search results that the user is allowed to read.
SearchAccessController
Method Summary | |
---|---|
String[] |
getDocumentGroups(RawDocument document)
Gets the names of the groups that are allowed to read the given document. |
void |
init(Properties config)
Initializes the CrawlerAccessController. |
Method Detail |
---|
void init(Properties config) throws RegainException
This method is called once right after the CrawlerAccessController instance was created.
config
- The configuration.
RegainException
- If loading the config failed.String[] getDocumentGroups(RawDocument document) throws RegainException
Note: The group array must not be null
and the group names
must not contain whitespace.
document
- The document to get the groups for.
RegainException
- If getting the groups failed.
|
Regain 2.1.0-STABLE API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |