Class AbstractPullResultHandler
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.pushpull.AbstractSyncopeResultHandler<org.apache.syncope.core.persistence.api.entity.task.PullTask,org.apache.syncope.core.provisioning.api.pushpull.PullActions>
-
- org.apache.syncope.core.provisioning.java.pushpull.AbstractPullResultHandler
-
- All Implemented Interfaces:
org.apache.syncope.core.provisioning.api.pushpull.SyncopePullResultHandler
,org.apache.syncope.core.provisioning.api.pushpull.SyncopeResultHandler<org.apache.syncope.core.persistence.api.entity.task.PullTask,org.apache.syncope.core.provisioning.api.pushpull.PullActions>
,org.identityconnectors.framework.common.objects.SyncResultsHandler
- Direct Known Subclasses:
DefaultAnyObjectPullResultHandler
,DefaultGroupPullResultHandler
,DefaultUserPullResultHandler
@Transactional(rollbackFor=java.lang.Throwable.class) public abstract class AbstractPullResultHandler extends AbstractSyncopeResultHandler<org.apache.syncope.core.persistence.api.entity.task.PullTask,org.apache.syncope.core.provisioning.api.pushpull.PullActions> implements org.apache.syncope.core.provisioning.api.pushpull.SyncopePullResultHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.syncope.core.persistence.api.dao.AnyTypeDAO
anyTypeDAO
protected org.apache.syncope.core.provisioning.api.AuditManager
auditManager
protected ConnObjectUtils
connObjectUtils
protected org.apache.syncope.core.persistence.api.entity.EntityFactory
entityFactory
protected org.apache.syncope.core.provisioning.api.pushpull.SyncopePullExecutor
executor
protected InboundMatcher
inboundMatcher
protected org.apache.syncope.common.lib.types.AuditElements.Result
latestResult
protected org.apache.syncope.core.provisioning.api.notification.NotificationManager
notificationManager
protected org.apache.syncope.core.persistence.api.dao.RemediationDAO
remediationDAO
protected org.apache.syncope.core.persistence.api.dao.TaskDAO
taskDAO
protected org.apache.syncope.core.persistence.api.dao.UserDAO
userDAO
protected org.apache.syncope.core.provisioning.api.cache.VirAttrCache
virAttrCache
protected org.apache.syncope.core.persistence.api.dao.VirSchemaDAO
virSchemaDAO
-
Fields inherited from class org.apache.syncope.core.provisioning.java.pushpull.AbstractSyncopeResultHandler
anyObjectDataBinder, anyUtilsFactory, awfAdapter, groupDataBinder, gwfAdapter, LOG, profile, propagationManager, securityProperties, taskExecutor, userDataBinder, uwfAdapter
-
-
Constructor Summary
Constructors Constructor Description AbstractPullResultHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
createRemediation(String anyType, String anyKey, org.apache.syncope.common.lib.request.AnyCR anyCR, org.apache.syncope.common.lib.request.AnyUR anyUR, org.apache.syncope.core.persistence.api.entity.task.PullTask pullTask, org.apache.syncope.common.lib.to.ProvisioningReport result, org.identityconnectors.framework.common.objects.SyncDelta delta)
protected void
createRemediation(String anyType, org.apache.syncope.common.lib.request.AnyCR anyCR, org.apache.syncope.core.persistence.api.entity.task.PullTask pullTask, org.apache.syncope.common.lib.to.ProvisioningReport result, org.identityconnectors.framework.common.objects.SyncDelta delta)
protected void
createRemediation(String anyType, org.apache.syncope.common.lib.request.AnyUR anyUR, org.apache.syncope.core.persistence.api.entity.task.PullTask pullTask, org.apache.syncope.common.lib.to.ProvisioningReport result, org.identityconnectors.framework.common.objects.SyncDelta delta)
protected void
createRemediationIfNeeded(org.apache.syncope.common.lib.request.AnyUR anyUR, org.identityconnectors.framework.common.objects.SyncDelta delta, org.apache.syncope.common.lib.to.ProvisioningReport result)
protected List<org.apache.syncope.common.lib.to.ProvisioningReport>
delete(org.identityconnectors.framework.common.objects.SyncDelta delta, List<org.apache.syncope.core.persistence.api.dao.PullMatch> matches, org.apache.syncope.common.lib.to.Provision provision)
protected List<org.apache.syncope.common.lib.to.ProvisioningReport>
deprovision(org.apache.syncope.common.lib.types.MatchingRule matchingRule, org.identityconnectors.framework.common.objects.SyncDelta delta, List<org.apache.syncope.core.persistence.api.dao.PullMatch> matches, org.apache.syncope.common.lib.to.Provision provision)
protected abstract org.apache.syncope.common.lib.to.AnyTO
doCreate(org.apache.syncope.common.lib.request.AnyCR anyCR, org.identityconnectors.framework.common.objects.SyncDelta delta)
protected void
doHandle(org.identityconnectors.framework.common.objects.SyncDelta delta, org.apache.syncope.common.lib.to.Provision provision, org.apache.syncope.common.lib.types.AnyTypeKind anyTypeKind)
Look into SyncDelta and take necessary profile.getActions() (create / update / delete) on any object(s).protected abstract org.apache.syncope.common.lib.request.AnyUR
doUpdate(org.apache.syncope.common.lib.to.AnyTO before, org.apache.syncope.common.lib.request.AnyUR anyUR, org.identityconnectors.framework.common.objects.SyncDelta delta, org.apache.syncope.common.lib.to.ProvisioningReport result)
protected void
end(String anyType, String event, org.apache.syncope.common.lib.types.AuditElements.Result result, Object before, Object output, org.identityconnectors.framework.common.objects.SyncDelta delta, Object... furtherInput)
protected abstract String
getName(org.apache.syncope.common.lib.request.AnyCR anyCR)
protected abstract String
getName(org.apache.syncope.common.lib.to.AnyTO anyTO)
protected abstract org.apache.syncope.core.provisioning.api.ProvisioningManager<?,?>
getProvisioningManager()
boolean
handle(org.identityconnectors.framework.common.objects.SyncDelta delta)
protected void
handleAnys(org.identityconnectors.framework.common.objects.SyncDelta delta, List<org.apache.syncope.core.persistence.api.dao.PullMatch> matches, org.apache.syncope.common.lib.types.AnyTypeKind anyTypeKind, org.apache.syncope.common.lib.to.Provision provision)
protected void
handleLinkedAccounts(org.identityconnectors.framework.common.objects.SyncDelta delta, List<org.apache.syncope.core.persistence.api.dao.PullMatch> matches, org.apache.syncope.common.lib.to.Provision provision)
protected List<org.apache.syncope.common.lib.to.ProvisioningReport>
ignore(org.identityconnectors.framework.common.objects.SyncDelta delta, List<org.apache.syncope.core.persistence.api.dao.PullMatch> matches, org.apache.syncope.common.lib.to.Provision provision, boolean matching, String... message)
protected List<org.apache.syncope.common.lib.to.ProvisioningReport>
link(org.identityconnectors.framework.common.objects.SyncDelta delta, List<org.apache.syncope.core.persistence.api.dao.PullMatch> matches, org.apache.syncope.common.lib.to.Provision provision, boolean unlink)
protected List<org.apache.syncope.common.lib.to.ProvisioningReport>
provision(org.apache.syncope.common.lib.types.UnmatchingRule rule, org.identityconnectors.framework.common.objects.SyncDelta delta, org.apache.syncope.common.lib.types.AnyTypeKind anyTypeKind, org.apache.syncope.common.lib.to.Provision provision)
void
setPullExecutor(org.apache.syncope.core.provisioning.api.pushpull.SyncopePullExecutor executor)
protected void
throwIgnoreProvisionException(org.identityconnectors.framework.common.objects.SyncDelta delta, Exception exception)
protected List<org.apache.syncope.common.lib.to.ProvisioningReport>
update(org.identityconnectors.framework.common.objects.SyncDelta delta, List<org.apache.syncope.core.persistence.api.dao.PullMatch> matches, org.apache.syncope.common.lib.to.Provision provision)
-
Methods inherited from class org.apache.syncope.core.provisioning.java.pushpull.AbstractSyncopeResultHandler
getAnyTO, getAnyUtils, getContext, getProfile, setProfile, update
-
-
-
-
Field Detail
-
inboundMatcher
@Autowired protected InboundMatcher inboundMatcher
-
notificationManager
@Autowired protected org.apache.syncope.core.provisioning.api.notification.NotificationManager notificationManager
-
auditManager
@Autowired protected org.apache.syncope.core.provisioning.api.AuditManager auditManager
-
connObjectUtils
@Autowired protected ConnObjectUtils connObjectUtils
-
userDAO
@Autowired protected org.apache.syncope.core.persistence.api.dao.UserDAO userDAO
-
anyTypeDAO
@Autowired protected org.apache.syncope.core.persistence.api.dao.AnyTypeDAO anyTypeDAO
-
taskDAO
@Autowired protected org.apache.syncope.core.persistence.api.dao.TaskDAO taskDAO
-
remediationDAO
@Autowired protected org.apache.syncope.core.persistence.api.dao.RemediationDAO remediationDAO
-
virSchemaDAO
@Autowired protected org.apache.syncope.core.persistence.api.dao.VirSchemaDAO virSchemaDAO
-
virAttrCache
@Autowired protected org.apache.syncope.core.provisioning.api.cache.VirAttrCache virAttrCache
-
entityFactory
@Autowired protected org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory
-
executor
protected org.apache.syncope.core.provisioning.api.pushpull.SyncopePullExecutor executor
-
latestResult
protected org.apache.syncope.common.lib.types.AuditElements.Result latestResult
-
-
Method Detail
-
getName
protected abstract String getName(org.apache.syncope.common.lib.to.AnyTO anyTO)
-
getName
protected abstract String getName(org.apache.syncope.common.lib.request.AnyCR anyCR)
-
getProvisioningManager
protected abstract org.apache.syncope.core.provisioning.api.ProvisioningManager<?,?> getProvisioningManager()
-
doCreate
protected abstract org.apache.syncope.common.lib.to.AnyTO doCreate(org.apache.syncope.common.lib.request.AnyCR anyCR, org.identityconnectors.framework.common.objects.SyncDelta delta)
-
doUpdate
protected abstract org.apache.syncope.common.lib.request.AnyUR doUpdate(org.apache.syncope.common.lib.to.AnyTO before, org.apache.syncope.common.lib.request.AnyUR anyUR, org.identityconnectors.framework.common.objects.SyncDelta delta, org.apache.syncope.common.lib.to.ProvisioningReport result)
-
setPullExecutor
public void setPullExecutor(org.apache.syncope.core.provisioning.api.pushpull.SyncopePullExecutor executor)
- Specified by:
setPullExecutor
in interfaceorg.apache.syncope.core.provisioning.api.pushpull.SyncopePullResultHandler
-
handle
public boolean handle(org.identityconnectors.framework.common.objects.SyncDelta delta)
- Specified by:
handle
in interfaceorg.apache.syncope.core.provisioning.api.pushpull.SyncopePullResultHandler
- Specified by:
handle
in interfaceorg.identityconnectors.framework.common.objects.SyncResultsHandler
-
provision
protected List<org.apache.syncope.common.lib.to.ProvisioningReport> provision(org.apache.syncope.common.lib.types.UnmatchingRule rule, org.identityconnectors.framework.common.objects.SyncDelta delta, org.apache.syncope.common.lib.types.AnyTypeKind anyTypeKind, org.apache.syncope.common.lib.to.Provision provision) throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
-
throwIgnoreProvisionException
protected void throwIgnoreProvisionException(org.identityconnectors.framework.common.objects.SyncDelta delta, Exception exception) throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
-
update
protected List<org.apache.syncope.common.lib.to.ProvisioningReport> update(org.identityconnectors.framework.common.objects.SyncDelta delta, List<org.apache.syncope.core.persistence.api.dao.PullMatch> matches, org.apache.syncope.common.lib.to.Provision provision) throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
-
deprovision
protected List<org.apache.syncope.common.lib.to.ProvisioningReport> deprovision(org.apache.syncope.common.lib.types.MatchingRule matchingRule, org.identityconnectors.framework.common.objects.SyncDelta delta, List<org.apache.syncope.core.persistence.api.dao.PullMatch> matches, org.apache.syncope.common.lib.to.Provision provision) throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
-
link
protected List<org.apache.syncope.common.lib.to.ProvisioningReport> link(org.identityconnectors.framework.common.objects.SyncDelta delta, List<org.apache.syncope.core.persistence.api.dao.PullMatch> matches, org.apache.syncope.common.lib.to.Provision provision, boolean unlink) throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
-
delete
protected List<org.apache.syncope.common.lib.to.ProvisioningReport> delete(org.identityconnectors.framework.common.objects.SyncDelta delta, List<org.apache.syncope.core.persistence.api.dao.PullMatch> matches, org.apache.syncope.common.lib.to.Provision provision) throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
-
ignore
protected List<org.apache.syncope.common.lib.to.ProvisioningReport> ignore(org.identityconnectors.framework.common.objects.SyncDelta delta, List<org.apache.syncope.core.persistence.api.dao.PullMatch> matches, org.apache.syncope.common.lib.to.Provision provision, boolean matching, String... message) throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
-
handleAnys
protected void handleAnys(org.identityconnectors.framework.common.objects.SyncDelta delta, List<org.apache.syncope.core.persistence.api.dao.PullMatch> matches, org.apache.syncope.common.lib.types.AnyTypeKind anyTypeKind, org.apache.syncope.common.lib.to.Provision provision) throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
-
handleLinkedAccounts
protected void handleLinkedAccounts(org.identityconnectors.framework.common.objects.SyncDelta delta, List<org.apache.syncope.core.persistence.api.dao.PullMatch> matches, org.apache.syncope.common.lib.to.Provision provision) throws org.quartz.JobExecutionException
- Throws:
org.quartz.JobExecutionException
-
doHandle
protected void doHandle(org.identityconnectors.framework.common.objects.SyncDelta delta, org.apache.syncope.common.lib.to.Provision provision, org.apache.syncope.common.lib.types.AnyTypeKind anyTypeKind) throws org.quartz.JobExecutionException
Look into SyncDelta and take necessary profile.getActions() (create / update / delete) on any object(s).- Parameters:
delta
- returned by the underlying profile.getConnector()provision
- provisioning infoanyTypeKind
- any type kind- Throws:
org.quartz.JobExecutionException
- in case of pull failure.
-
end
protected void end(String anyType, String event, org.apache.syncope.common.lib.types.AuditElements.Result result, Object before, Object output, org.identityconnectors.framework.common.objects.SyncDelta delta, Object... furtherInput)
-
createRemediationIfNeeded
protected void createRemediationIfNeeded(org.apache.syncope.common.lib.request.AnyUR anyUR, org.identityconnectors.framework.common.objects.SyncDelta delta, org.apache.syncope.common.lib.to.ProvisioningReport result)
-
createRemediation
protected void createRemediation(String anyType, org.apache.syncope.common.lib.request.AnyCR anyCR, org.apache.syncope.core.persistence.api.entity.task.PullTask pullTask, org.apache.syncope.common.lib.to.ProvisioningReport result, org.identityconnectors.framework.common.objects.SyncDelta delta)
-
createRemediation
protected void createRemediation(String anyType, org.apache.syncope.common.lib.request.AnyUR anyUR, org.apache.syncope.core.persistence.api.entity.task.PullTask pullTask, org.apache.syncope.common.lib.to.ProvisioningReport result, org.identityconnectors.framework.common.objects.SyncDelta delta)
-
createRemediation
protected void createRemediation(String anyType, String anyKey, org.apache.syncope.common.lib.request.AnyCR anyCR, org.apache.syncope.common.lib.request.AnyUR anyUR, org.apache.syncope.core.persistence.api.entity.task.PullTask pullTask, org.apache.syncope.common.lib.to.ProvisioningReport result, org.identityconnectors.framework.common.objects.SyncDelta delta)
-
-