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.void
incrementalIndex
(Date lastIndexDate) Run an incremental indexprotected <T> String
indexDocumentGenerics
(String indexName, T objectToIndex) void
reindex()
Recreate an indexvoid
removeDocument
(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:IIndexController
Gets the name of the index.- Specified by:
getName
in interfaceIIndexController
- Returns:
- The name of the index as a java.lang.String value.
-
addDocument
Description copied from interface:IIndexController
Index or reindex an object- Specified by:
addDocument
in 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:IIndexController
Remove an object from index- Specified by:
removeDocument
in interfaceIIndexController
- Parameters:
idToUnindex
- object id- Throws:
PortalModuleException
- default module exception.
-
incrementalIndex
Description copied from interface:IIndexController
Run an incremental index- Specified by:
incrementalIndex
in interfaceIIndexController
- Parameters:
lastIndexDate
- date of the last indexation- Throws:
PortalModuleException
- default module exception.
-
reindex
Description copied from interface:IIndexController
Recreate an index- Specified by:
reindex
in interfaceIIndexController
- Throws:
PortalModuleException
- default module exception.
-
indexDocumentGenerics
protected <T> String indexDocumentGenerics(String indexName, T objectToIndex) throws PortalModuleException - Throws:
PortalModuleException
-