|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Indexer
Common interface for all indexers. Used to go over the whole data-structre during indexing. Used to check access-control for result-list.
| Method Summary | |
|---|---|
boolean |
checkAccess(ContextEntry contextEntry,
BusinessControl businessControl,
Identity identity,
Roles roles)
Check access for certain business-control (resourceUrl) and user with roles. |
void |
doIndex(SearchResourceContext searchResourceContext,
java.lang.Object parentObject,
OlatFullIndexer indexer)
Do index the part of an indexer. |
java.lang.String |
getSupportedTypeName()
|
| Method Detail |
|---|
void doIndex(SearchResourceContext searchResourceContext,
java.lang.Object parentObject,
OlatFullIndexer indexer)
throws java.io.IOException,
java.lang.InterruptedException
searchResourceContext - Current search-resource-context is used to build resouceUrl of an index-element.indexerObject - Index parent object. Each indexer must cast to the known type e.g. BusinessGroup.indexer - Callback object to add documents to the index.
java.io.IOException - Can not write index file.
java.lang.InterruptedException - Indexing is interrupted
boolean checkAccess(ContextEntry contextEntry,
BusinessControl businessControl,
Identity identity,
Roles roles)
contextEntry - businessControl - identity - roles -
java.lang.String getSupportedTypeName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||