Class DefaultPropagationManager
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.propagation.DefaultPropagationManager
-
- All Implemented Interfaces:
org.apache.syncope.core.provisioning.api.propagation.PropagationManager
@Transactional(rollbackFor=java.lang.Throwable.class) public class DefaultPropagationManager extends Object implements org.apache.syncope.core.provisioning.api.propagation.PropagationManager
Manage the data propagation to external resources.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory
anyUtilsFactory
protected ConnObjectUtils
connObjectUtils
protected org.apache.syncope.core.provisioning.api.DerAttrHandler
derAttrHandler
protected org.apache.syncope.core.persistence.api.entity.EntityFactory
entityFactory
protected static org.slf4j.Logger
LOG
protected org.apache.syncope.core.provisioning.api.MappingManager
mappingManager
protected org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO
resourceDAO
protected org.apache.syncope.core.persistence.api.dao.VirSchemaDAO
virSchemaDAO
-
Constructor Summary
Constructors Constructor Description DefaultPropagationManager(org.apache.syncope.core.persistence.api.dao.VirSchemaDAO virSchemaDAO, org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO resourceDAO, org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory, ConnObjectUtils connObjectUtils, org.apache.syncope.core.provisioning.api.MappingManager mappingManager, org.apache.syncope.core.provisioning.api.DerAttrHandler derAttrHandler, org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory anyUtilsFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo>
createTasks(org.apache.syncope.core.persistence.api.entity.Any<?> any, String password, boolean changePwd, Boolean enable, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>> propByLinkedAccount, Collection<org.apache.syncope.common.lib.Attr> vAttrs)
Create propagation tasks.List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo>
createTasks(org.apache.syncope.core.persistence.api.entity.Realm realm, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, Collection<String> noPropResourceKeys)
List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo>
getCreateTasks(org.apache.syncope.common.lib.types.AnyTypeKind kind, String key, Boolean enable, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, Collection<org.apache.syncope.common.lib.Attr> vAttrs, Collection<String> noPropResourceKeys)
protected List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo>
getCreateTasks(org.apache.syncope.core.persistence.api.entity.Any<?> any, String password, Boolean enable, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>> propByLinkedAccount, Collection<org.apache.syncope.common.lib.Attr> vAttrs, Collection<String> noPropResourceKeys)
List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo>
getDeleteTasks(org.apache.syncope.common.lib.types.AnyTypeKind kind, String key, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>> propByLinkedAccount, Collection<String> noPropResourceKeys)
protected List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo>
getDeleteTasks(org.apache.syncope.core.persistence.api.entity.Any<?> any, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>> propByLinkedAccount, Collection<String> noPropResourceKeys)
List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo>
getUpdateTasks(org.apache.syncope.common.lib.types.AnyTypeKind kind, String key, boolean changePwd, Boolean enable, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>> propByLinkedAccount, Collection<org.apache.syncope.common.lib.Attr> vAttrs, Collection<String> noPropResourceKeys)
protected List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo>
getUpdateTasks(org.apache.syncope.core.persistence.api.entity.Any<?> any, String password, boolean changePwd, Boolean enable, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>> propByLinkedAccount, Collection<org.apache.syncope.common.lib.Attr> vAttrs, Collection<String> noPropResourceKeys)
List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo>
getUserCreateTasks(String key, String password, Boolean enable, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>> propByLinkedAccount, Collection<org.apache.syncope.common.lib.Attr> vAttrs, Collection<String> noPropResourceKeys)
List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo>
getUserUpdateTasks(org.apache.syncope.core.provisioning.api.UserWorkflowResult<org.apache.commons.lang3.tuple.Pair<org.apache.syncope.common.lib.request.UserUR,Boolean>> wfResult)
List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo>
getUserUpdateTasks(org.apache.syncope.core.provisioning.api.UserWorkflowResult<org.apache.commons.lang3.tuple.Pair<org.apache.syncope.common.lib.request.UserUR,Boolean>> wfResult, boolean changePwd, Collection<String> noPropResourceKeys)
org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo
newTask(org.apache.syncope.core.provisioning.api.DerAttrHandler derAttrHandler, org.apache.syncope.core.persistence.api.entity.Any<?> any, org.apache.syncope.core.persistence.api.entity.ExternalResource resource, org.apache.syncope.common.lib.types.ResourceOperation operation, org.apache.syncope.common.lib.to.Provision provision, Stream<org.apache.syncope.common.lib.to.Item> mappingItems, org.apache.commons.lang3.tuple.Pair<String,Set<org.identityconnectors.framework.common.objects.Attribute>> preparedAttrs)
-
-
-
Field Detail
-
LOG
protected static final org.slf4j.Logger LOG
-
virSchemaDAO
protected final org.apache.syncope.core.persistence.api.dao.VirSchemaDAO virSchemaDAO
-
resourceDAO
protected final org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO resourceDAO
-
entityFactory
protected final org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory
-
connObjectUtils
protected final ConnObjectUtils connObjectUtils
-
mappingManager
protected final org.apache.syncope.core.provisioning.api.MappingManager mappingManager
-
derAttrHandler
protected final org.apache.syncope.core.provisioning.api.DerAttrHandler derAttrHandler
-
anyUtilsFactory
protected final org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory anyUtilsFactory
-
-
Constructor Detail
-
DefaultPropagationManager
public DefaultPropagationManager(org.apache.syncope.core.persistence.api.dao.VirSchemaDAO virSchemaDAO, org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO resourceDAO, org.apache.syncope.core.persistence.api.entity.EntityFactory entityFactory, ConnObjectUtils connObjectUtils, org.apache.syncope.core.provisioning.api.MappingManager mappingManager, org.apache.syncope.core.provisioning.api.DerAttrHandler derAttrHandler, org.apache.syncope.core.persistence.api.entity.AnyUtilsFactory anyUtilsFactory)
-
-
Method Detail
-
getCreateTasks
public List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo> getCreateTasks(org.apache.syncope.common.lib.types.AnyTypeKind kind, String key, Boolean enable, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, Collection<org.apache.syncope.common.lib.Attr> vAttrs, Collection<String> noPropResourceKeys)
- Specified by:
getCreateTasks
in interfaceorg.apache.syncope.core.provisioning.api.propagation.PropagationManager
-
getUserCreateTasks
public List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo> getUserCreateTasks(String key, String password, Boolean enable, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>> propByLinkedAccount, Collection<org.apache.syncope.common.lib.Attr> vAttrs, Collection<String> noPropResourceKeys)
- Specified by:
getUserCreateTasks
in interfaceorg.apache.syncope.core.provisioning.api.propagation.PropagationManager
-
getCreateTasks
protected List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo> getCreateTasks(org.apache.syncope.core.persistence.api.entity.Any<?> any, String password, Boolean enable, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>> propByLinkedAccount, Collection<org.apache.syncope.common.lib.Attr> vAttrs, Collection<String> noPropResourceKeys)
-
getUpdateTasks
public List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo> getUpdateTasks(org.apache.syncope.common.lib.types.AnyTypeKind kind, String key, boolean changePwd, Boolean enable, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>> propByLinkedAccount, Collection<org.apache.syncope.common.lib.Attr> vAttrs, Collection<String> noPropResourceKeys)
- Specified by:
getUpdateTasks
in interfaceorg.apache.syncope.core.provisioning.api.propagation.PropagationManager
-
getUserUpdateTasks
public List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo> getUserUpdateTasks(org.apache.syncope.core.provisioning.api.UserWorkflowResult<org.apache.commons.lang3.tuple.Pair<org.apache.syncope.common.lib.request.UserUR,Boolean>> wfResult, boolean changePwd, Collection<String> noPropResourceKeys)
- Specified by:
getUserUpdateTasks
in interfaceorg.apache.syncope.core.provisioning.api.propagation.PropagationManager
-
getUserUpdateTasks
public List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo> getUserUpdateTasks(org.apache.syncope.core.provisioning.api.UserWorkflowResult<org.apache.commons.lang3.tuple.Pair<org.apache.syncope.common.lib.request.UserUR,Boolean>> wfResult)
- Specified by:
getUserUpdateTasks
in interfaceorg.apache.syncope.core.provisioning.api.propagation.PropagationManager
-
getUpdateTasks
protected List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo> getUpdateTasks(org.apache.syncope.core.persistence.api.entity.Any<?> any, String password, boolean changePwd, Boolean enable, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>> propByLinkedAccount, Collection<org.apache.syncope.common.lib.Attr> vAttrs, Collection<String> noPropResourceKeys)
-
getDeleteTasks
public List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo> getDeleteTasks(org.apache.syncope.common.lib.types.AnyTypeKind kind, String key, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>> propByLinkedAccount, Collection<String> noPropResourceKeys)
- Specified by:
getDeleteTasks
in interfaceorg.apache.syncope.core.provisioning.api.propagation.PropagationManager
-
getDeleteTasks
protected List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo> getDeleteTasks(org.apache.syncope.core.persistence.api.entity.Any<?> any, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>> propByLinkedAccount, Collection<String> noPropResourceKeys)
-
newTask
public org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo newTask(org.apache.syncope.core.provisioning.api.DerAttrHandler derAttrHandler, org.apache.syncope.core.persistence.api.entity.Any<?> any, org.apache.syncope.core.persistence.api.entity.ExternalResource resource, org.apache.syncope.common.lib.types.ResourceOperation operation, org.apache.syncope.common.lib.to.Provision provision, Stream<org.apache.syncope.common.lib.to.Item> mappingItems, org.apache.commons.lang3.tuple.Pair<String,Set<org.identityconnectors.framework.common.objects.Attribute>> preparedAttrs)
- Specified by:
newTask
in interfaceorg.apache.syncope.core.provisioning.api.propagation.PropagationManager
-
createTasks
protected List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo> createTasks(org.apache.syncope.core.persistence.api.entity.Any<?> any, String password, boolean changePwd, Boolean enable, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, org.apache.syncope.core.provisioning.api.PropagationByResource<org.apache.commons.lang3.tuple.Pair<String,String>> propByLinkedAccount, Collection<org.apache.syncope.common.lib.Attr> vAttrs)
Create propagation tasks.- Parameters:
any
- to be provisionedpassword
- clear text password to be provisionedchangePwd
- whether password should be included for propagation attributes or notenable
- whether user must be enabled or notpropByRes
- operation to be performed per resourcepropByLinkedAccount
- operation to be performed on linked accountsvAttrs
- virtual attributes to be set- Returns:
- list of propagation tasks created
-
createTasks
public List<org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo> createTasks(org.apache.syncope.core.persistence.api.entity.Realm realm, org.apache.syncope.core.provisioning.api.PropagationByResource<String> propByRes, Collection<String> noPropResourceKeys)
- Specified by:
createTasks
in interfaceorg.apache.syncope.core.provisioning.api.propagation.PropagationManager
-
-