Class AbstractProvisioningJobDelegate<T extends ProvisioningTask<T>>
java.lang.Object
org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate<T>
org.apache.syncope.core.provisioning.java.pushpull.AbstractProvisioningJobDelegate<T>
- All Implemented Interfaces:
SchedTaskJobDelegate
- Direct Known Subclasses:
LiveSyncJobDelegate
,PullJobDelegate
,PushJobDelegate
public abstract class AbstractProvisioningJobDelegate<T extends ProvisioningTask<T>>
extends AbstractSchedTaskJobDelegate<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected AnyTypeDAO
protected AnyUtilsFactory
protected Connector
protected ConnectorManager
protected EntityFactory
protected Optional
<ProvisionSorter> protected PolicyDAO
protected ExternalResourceDAO
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 String
createReport
(Collection<ProvisioningReport> provResults, ExternalResource resource, boolean dryRun) Create a textual report of the provisioning operation, based on the trace level.protected String
generate
(Collection<ProvisioningReport> results, TraceLevel level) Helper method to invoke logging per provisioning result, for the given trace level.protected ProvisionSorter
getProvisionSorter
(T task) protected boolean
hasToBeRegistered
(TaskExec<?> execution) Template method to determine whether this job's task execution has to be persisted or not.protected void
init
(TaskType taskType, String taskKey, JobExecutionContext context) Methods inherited from class org.apache.syncope.core.provisioning.java.job.AbstractSchedTaskJobDelegate
doExecute, end, endExecution, execute, initExecution, register, setStatus
-
Field Details
-
connectorManager
-
anyTypeDAO
-
resourceDAO
-
entityFactory
-
anyUtilsFactory
-
policyDAO
-
perContextProvisionSorter
-
connector
-
-
Constructor Details
-
AbstractProvisioningJobDelegate
public AbstractProvisioningJobDelegate()
-
-
Method Details
-
init
protected void init(TaskType taskType, String taskKey, JobExecutionContext context) throws JobExecutionException - Overrides:
init
in classAbstractSchedTaskJobDelegate<T extends ProvisioningTask<T>>
- Throws:
JobExecutionException
-
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<T extends ProvisioningTask<T>>
- Parameters:
execution
- task execution- Returns:
- whether to persist or not
-
getProvisionSorter
-
generate
Helper method to invoke logging per provisioning result, for the given trace level.- Parameters:
results
- provisioning resultslevel
- trace level- Returns:
- report as string
-
createReport
protected String createReport(Collection<ProvisioningReport> provResults, ExternalResource resource, boolean dryRun) Create a textual report of the provisioning operation, based on the trace level.- Parameters:
provResults
- Provisioning resultsresource
- Provisioning resourcedryRun
- dry run?- Returns:
- report as string
-