Package com.axemble.vdoc.sdk.impl
Class IndexController
java.lang.Object
com.axemble.vdoc.sdk.impl.AbstractElement
com.axemble.vdoc.sdk.impl.IndexController
- All Implemented Interfaces:
IController,IIndexController,Serializable
Give Access to index methods
- Author:
- vlygeros
- See Also:
-
Field Summary
FieldsFields inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
module -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDocument(Serializable objectToIndex) Index or reindex an objectgetName()Gets the name of the index.voidincrementalIndex(Date lastIndexDate) Run an incremental indexprotected <T> StringindexDocumentGenerics(String indexName, T objectToIndex) voidreindex()Recreate an indexvoidremoveDocument(String idToUnindex) Remove an object from indexMethods inherited from class com.axemble.vdoc.sdk.impl.AbstractElement
getModule
-
Field Details
-
name
-
-
Constructor Details
-
IndexController
-
-
Method Details
-
getName
Description copied from interface:IIndexControllerGets the name of the index.- Specified by:
getNamein interfaceIIndexController- Returns:
- The name of the index as a java.lang.String value.
-
addDocument
Description copied from interface:IIndexControllerIndex or reindex an object- Specified by:
addDocumentin interfaceIIndexController- Parameters:
objectToIndex- object to index/reindex- Returns:
- the identifier of objectToIndex in the index
- Throws:
PortalModuleException- default module exception.
-
removeDocument
Description copied from interface:IIndexControllerRemove an object from index- Specified by:
removeDocumentin interfaceIIndexController- Parameters:
idToUnindex- object id- Throws:
PortalModuleException- default module exception.
-
incrementalIndex
Description copied from interface:IIndexControllerRun an incremental index- Specified by:
incrementalIndexin interfaceIIndexController- Parameters:
lastIndexDate- date of the last indexation- Throws:
PortalModuleException- default module exception.
-
reindex
Description copied from interface:IIndexControllerRecreate an index- Specified by:
reindexin interfaceIIndexController- Throws:
PortalModuleException- default module exception.
-
indexDocumentGenerics
protected <T> String indexDocumentGenerics(String indexName, T objectToIndex) throws PortalModuleException - Throws:
PortalModuleException
-