T
- - the type of used configurationpublic interface ITaskIndexManager<T extends ITaskIndexEngineConfiguration>
Modifier and Type | Method and Description |
---|---|
void |
configure(T configuration)
Configures the underlying index engine.
|
int |
countTasks(ITaskSearchQueryExtended searchQuery,
SearchContext searchOptions)
Counts the matching tasks by a given criteria.
|
void |
createIndex(ITaskDefinition taskDef)
Creates a task definition namespace, used by the underlying storage.
|
void |
deleteIndex(ITaskDefinition taskDef)
Deletes the task definition namespace, used by the underlying storage.
|
void |
deleteTask(ITask task)
Deletes a task instance from the underlying engine storage.
|
void |
deleteTasks(List<ITask> tasks)
Deletes list of task instances from the underlying engine storage.
|
T |
getConfiguration() |
String |
getType() |
void |
indexTask(ITask task,
ITaskData taskData)
Indexes a task instance in the underlying engine storage.
|
void |
indexTasks(Map<ITask,ITaskData> tasks)
Indexes multiple task instances in the underlying engine storage.
|
void |
initialize()
Activation of service.
|
boolean |
isEnabled() |
void |
reindexTasks(ITaskDefinition taskDef)
By a given task definition, deletes all task instances from the underlying engine
storage and synchronizes the existing ones from the TE with the index engine.
|
void |
reindexTasks(List<ITask> tasks)
Deletes the corresponding task instances from the underlying engine storage and
synchronizes them with the ones from the TE.
|
List<ITaskSearchRecord> |
searchTasks(ITaskSearchQueryExtended searchQuery,
SearchContext searchOptions)
Returns list of tasks matching a given criteria.
|
void |
stopReindex(ITaskDefinition taskDef)
Stops the reindexing operation on the underlying engine storage if there is already
a running one.
|
void |
updateTask(ITask task)
Updates (re-index) a task instance in the underlying engine storage.
|
void |
updateTasks(List<ITask> tasks)
Updates (re-index) multiple task instances in the underlying engine storage.
|
boolean isEnabled()
void configure(T configuration) throws PortalException
configuration
- - the provided configurationPortalException
- if any problem occurs during the operationT getConfiguration()
int countTasks(ITaskSearchQueryExtended searchQuery, SearchContext searchOptions) throws PortalException
searchQuery
- - the task querysearchOptions
- - the search option mapPortalException
- if any problem occurs during the operation executionvoid createIndex(ITaskDefinition taskDef) throws PortalException
taskDef
- - the task definitionPortalException
- if any problem occurs during the operation executionvoid deleteIndex(ITaskDefinition taskDef) throws PortalException
taskDef
- - the task definitionPortalException
- if any problem occurs during the operation executionvoid deleteTask(ITask task) throws PortalException
task
- - the task instance to be deletedPortalException
- if any problem occurs during the operation executionvoid deleteTasks(List<ITask> tasks) throws PortalException
tasks
- - the task instances to be deletedPortalException
- if any problem occurs during the operation executionvoid indexTask(ITask task, ITaskData taskData) throws PortalException
task
- - the task instance to be indexedtaskData
- - the task data of the task instancePortalException
- if any problem occurs during the operation executionvoid indexTasks(Map<ITask,ITaskData> tasks) throws PortalException
tasks
- - the map, containing the task instances and their corresponding
business dataPortalException
- if any problem occurs during the operation executionvoid reindexTasks(ITaskDefinition taskDef) throws PortalException
taskDef
- - the task definitionPortalException
- if any problem occurs during the operation executionvoid stopReindex(ITaskDefinition taskDef) throws PortalException
taskDef
- - the task definitionPortalException
- if any problem occurs during the operation executionvoid reindexTasks(List<ITask> tasks) throws PortalException
tasks
- - the task instances to be updatedPortalException
- if any problem occurs during the operation executionList<ITaskSearchRecord> searchTasks(ITaskSearchQueryExtended searchQuery, SearchContext searchOptions) throws PortalException
searchQuery
- - the task querysearchOptions
- - the search option mapPortalException
- if any problem occurs during the operation executionvoid updateTask(ITask task) throws PortalException
task
- - the task instance to be updatedPortalException
- if any problem occurs during the operation executionvoid updateTasks(List<ITask> tasks) throws PortalException
tasks
- - the task instances to be updatedPortalException
- if any problem occurs during the operation executionString getType()