Class OpenSearchReindex
java.lang.Object
org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate<SchedTask>
org.apache.syncope.core.provisioning.java.job.OpenSearchReindex
- All Implemented Interfaces:
SchedTaskJobDelegate
Remove and rebuild all OpenSearch indexes with information from existing users, groups and any objects.
-
Field Summary
Modifier and TypeFieldDescriptionprotected AnyObjectDAO
protected org.opensearch.client.opensearch.OpenSearchClient
protected GroupDAO
protected OpenSearchIndexManager
protected RealmDAO
protected UserDAO
protected OpenSearchUtils
Fields inherited from class org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate
auditManager, executor, LOG, manageOperationId, notificationManager, publisher, securityProperties, task, taskDAO, taskExecDAO, taskType, taskUtilsFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.opensearch.client.opensearch._types.mapping.TypeMapping
protected org.opensearch.client.opensearch.indices.IndexSettings
protected org.opensearch.client.opensearch._types.mapping.TypeMapping
protected org.opensearch.client.opensearch.indices.IndexSettings
protected String
doExecute
(JobExecutionContext context) The actual execution, delegated to child classes.protected org.opensearch.client.opensearch._types.mapping.TypeMapping
protected org.opensearch.client.opensearch.indices.IndexSettings
protected boolean
hasToBeRegistered
(TaskExec<?> execution) Template method to determine whether this job's task execution has to be persisted or not.protected org.opensearch.client.opensearch._types.mapping.TypeMapping
protected org.opensearch.client.opensearch.indices.IndexSettings
protected org.opensearch.client.opensearch._types.mapping.TypeMapping
protected org.opensearch.client.opensearch.indices.IndexSettings
Methods inherited from class org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate
end, endExecution, execute, init, initExecution, register, setStatus
-
Field Details
-
client
-
indexManager
-
utils
-
userDAO
-
groupDAO
-
anyObjectDAO
-
realmDAO
-
-
Constructor Details
-
OpenSearchReindex
public OpenSearchReindex()
-
-
Method Details
-
userSettings
protected org.opensearch.client.opensearch.indices.IndexSettings userSettings() -
groupSettings
protected org.opensearch.client.opensearch.indices.IndexSettings groupSettings() -
anyObjectSettings
protected org.opensearch.client.opensearch.indices.IndexSettings anyObjectSettings() -
realmSettings
protected org.opensearch.client.opensearch.indices.IndexSettings realmSettings() -
auditSettings
protected org.opensearch.client.opensearch.indices.IndexSettings auditSettings() -
userMapping
protected org.opensearch.client.opensearch._types.mapping.TypeMapping userMapping() -
groupMapping
protected org.opensearch.client.opensearch._types.mapping.TypeMapping groupMapping() -
anyObjectMapping
protected org.opensearch.client.opensearch._types.mapping.TypeMapping anyObjectMapping() -
realmMapping
protected org.opensearch.client.opensearch._types.mapping.TypeMapping realmMapping() -
auditMapping
protected org.opensearch.client.opensearch._types.mapping.TypeMapping auditMapping() -
doExecute
Description copied from class:AbstractSchedTaskJobDelegate
The actual execution, delegated to child classes.- Specified by:
doExecute
in classAbstractSchedTaskJobDelegate<SchedTask>
- Parameters:
context
- job execution context, can be used to pass parameters to the job- Returns:
- the task execution status to be set
- Throws:
JobExecutionException
- if anything goes wrong
-
hasToBeRegistered
Description copied from class:AbstractSchedTaskJobDelegate
Template method to determine whether this job's task execution has to be persisted or not.- Overrides:
hasToBeRegistered
in classAbstractSchedTaskJobDelegate<SchedTask>
- Parameters:
execution
- task execution- Returns:
- whether to persist or not
-