|
Regain 2.1.0-STABLE API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SearchAccessController
Identifies the groups a user has reading rights for.
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.
CrawlerAccessController| Method Summary | |
|---|---|
String[] |
getUserGroups(PageRequest request)
Gets the groups the current user has reading rights for. |
void |
init(Properties config)
Initializes the SearchAccessController. |
| Method Detail |
|---|
void init(Properties config)
throws RegainException
This method is called once right after the SearchAccessController instance was created.
config - The configuration.
RegainException - If loading the config failed.
String[] getUserGroups(PageRequest request)
throws RegainException
Note: The group array must not be null and the group names
must not contain whitespace.
Note: For backwards compability, when this method returns null, ALL groups are allowed. Return a non-existing group to restrict access to nothing.
request - The page request to use for identifying the user.
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 | ||||||||