@Transactional(rollbackFor=java.lang.Throwable.class) public class PropagationManagerImpl extends Object implements PropagationManager
Modifier and Type | Field and Description |
---|---|
protected AnyUtilsFactory |
anyUtilsFactory |
protected ConnObjectUtils |
connObjectUtils |
protected DerAttrHandler |
derAttrHandler |
protected EntityFactory |
entityFactory |
protected static org.slf4j.Logger |
LOG |
protected MappingManager |
mappingManager |
protected ExternalResourceDAO |
resourceDAO |
protected VirSchemaDAO |
virSchemaDAO |
Constructor and Description |
---|
PropagationManagerImpl() |
Modifier and Type | Method and Description |
---|---|
protected List<PropagationTaskInfo> |
createTasks(Any<?> any,
String password,
boolean changePwd,
Boolean enable,
PropagationByResource<String> propByRes,
PropagationByResource<Pair<String,String>> propByLinkedAccount,
Collection<AttrTO> vAttrs)
Create propagation tasks.
|
List<PropagationTaskInfo> |
createTasks(Realm realm,
PropagationByResource<String> propByRes,
Collection<String> noPropResourceKeys)
Create the needed tasks for the realm for each resource associated, unless in
noPropResourceKeys . |
protected List<PropagationTaskInfo> |
getCreateTasks(Any<?> any,
String password,
Boolean enable,
PropagationByResource<String> propByRes,
PropagationByResource<Pair<String,String>> propByLinkedAccount,
Collection<AttrTO> vAttrs,
Collection<String> noPropResourceKeys) |
List<PropagationTaskInfo> |
getCreateTasks(AnyTypeKind kind,
String key,
Boolean enable,
PropagationByResource<String> propByRes,
Collection<AttrTO> vAttrs,
Collection<String> noPropResourceKeys)
Create the any object tasks for every associated resource, unless in
noPropResourceKeys . |
protected List<PropagationTaskInfo> |
getDeleteTasks(Any<?> any,
PropagationByResource<String> propByRes,
PropagationByResource<Pair<String,String>> propByLinkedAccount,
Collection<String> noPropResourceKeys) |
List<PropagationTaskInfo> |
getDeleteTasks(AnyTypeKind kind,
String key,
PropagationByResource<String> propByRes,
PropagationByResource<Pair<String,String>> propByLinkedAccount,
Collection<String> noPropResourceKeys)
Create the delete tasks for the any object from each resource associated, unless in
noPropResourceKeys . |
protected List<PropagationTaskInfo> |
getUpdateTasks(Any<?> any,
String password,
boolean changePwd,
Boolean enable,
PropagationByResource<String> propByRes,
PropagationByResource<Pair<String,String>> propByLinkedAccount,
Collection<AttrTO> vAttrs,
Collection<String> noPropResourceKeys) |
List<PropagationTaskInfo> |
getUpdateTasks(AnyTypeKind kind,
String key,
boolean changePwd,
Boolean enable,
PropagationByResource<String> propByRes,
PropagationByResource<Pair<String,String>> propByLinkedAccount,
Collection<AttrTO> vAttrs,
Collection<String> noPropResourceKeys)
Create the update tasks for the any object on each resource associated, unless in
noPropResourceKeys . |
List<PropagationTaskInfo> |
getUserCreateTasks(String key,
String password,
Boolean enable,
PropagationByResource<String> propByRes,
PropagationByResource<Pair<String,String>> propByLinkedAccount,
Collection<AttrTO> vAttrs,
Collection<String> noPropResourceKeys)
Create the user tasks for every associated resource, unless in
noPropResourceKeys . |
List<PropagationTaskInfo> |
getUserUpdateTasks(UserWorkflowResult<Pair<UserPatch,Boolean>> wfResult)
Create the update tasks for the user on each resource associated; propagate password update only to requested
resources.
|
List<PropagationTaskInfo> |
getUserUpdateTasks(UserWorkflowResult<Pair<UserPatch,Boolean>> wfResult,
boolean changePwd,
Collection<String> noPropResourceKeys)
Create the update tasks for the user on each resource associated, unless in
noPropResourceKeys . |
PropagationTaskInfo |
newTask(DerAttrHandler derAttrHandler,
Any<?> any,
ExternalResource resource,
ResourceOperation operation,
Provision provision,
Stream<? extends Item> mappingItems,
Pair<String,Set<Attribute>> preparedAttrs) |
protected static final org.slf4j.Logger LOG
@Autowired protected VirSchemaDAO virSchemaDAO
@Autowired protected ExternalResourceDAO resourceDAO
@Autowired protected EntityFactory entityFactory
@Autowired protected ConnObjectUtils connObjectUtils
@Autowired protected MappingManager mappingManager
@Autowired protected DerAttrHandler derAttrHandler
@Autowired protected AnyUtilsFactory anyUtilsFactory
public List<PropagationTaskInfo> getCreateTasks(AnyTypeKind kind, String key, Boolean enable, PropagationByResource<String> propByRes, Collection<AttrTO> vAttrs, Collection<String> noPropResourceKeys)
PropagationManager
noPropResourceKeys
.getCreateTasks
in interface PropagationManager
kind
- any object type kindkey
- any object keyenable
- whether any object should be enabled or notpropByRes
- operation to be performed per resourcevAttrs
- virtual attributes to be setnoPropResourceKeys
- external resources performing not to be considered for propagationpublic List<PropagationTaskInfo> getUserCreateTasks(String key, String password, Boolean enable, PropagationByResource<String> propByRes, PropagationByResource<Pair<String,String>> propByLinkedAccount, Collection<AttrTO> vAttrs, Collection<String> noPropResourceKeys)
PropagationManager
noPropResourceKeys
.getUserCreateTasks
in interface PropagationManager
key
- user keypassword
- to be setenable
- whether user must be enabled or notpropByRes
- operation to be performed per resourcepropByLinkedAccount
- operation to be performed for linked accountsvAttrs
- virtual attributes to be setnoPropResourceKeys
- external resources not to be considered for propagationprotected List<PropagationTaskInfo> getCreateTasks(Any<?> any, String password, Boolean enable, PropagationByResource<String> propByRes, PropagationByResource<Pair<String,String>> propByLinkedAccount, Collection<AttrTO> vAttrs, Collection<String> noPropResourceKeys)
public List<PropagationTaskInfo> getUpdateTasks(AnyTypeKind kind, String key, boolean changePwd, Boolean enable, PropagationByResource<String> propByRes, PropagationByResource<Pair<String,String>> propByLinkedAccount, Collection<AttrTO> vAttrs, Collection<String> noPropResourceKeys)
PropagationManager
noPropResourceKeys
.getUpdateTasks
in interface PropagationManager
kind
- any object type kindkey
- any object keychangePwd
- whether password should be included for propagation attributes or notenable
- whether any object should be enabled or not, may be null to leave unchangedpropByRes
- operation to be performed per resourcepropByLinkedAccount
- operation to be performed for linked accountsvAttrs
- virtual attributes to be setnoPropResourceKeys
- external resource keys not to be considered for propagationpublic List<PropagationTaskInfo> getUserUpdateTasks(UserWorkflowResult<Pair<UserPatch,Boolean>> wfResult, boolean changePwd, Collection<String> noPropResourceKeys)
PropagationManager
noPropResourceKeys
.getUserUpdateTasks
in interface PropagationManager
wfResult
- user to be propagated (and info associated), as per result from workflowchangePwd
- whether password should be included for propagation attributes or notnoPropResourceKeys
- external resources not to be considered for propagationpublic List<PropagationTaskInfo> getUserUpdateTasks(UserWorkflowResult<Pair<UserPatch,Boolean>> wfResult)
PropagationManager
getUserUpdateTasks
in interface PropagationManager
wfResult
- user to be propagated (and info associated), as per result from workflowprotected List<PropagationTaskInfo> getUpdateTasks(Any<?> any, String password, boolean changePwd, Boolean enable, PropagationByResource<String> propByRes, PropagationByResource<Pair<String,String>> propByLinkedAccount, Collection<AttrTO> vAttrs, Collection<String> noPropResourceKeys)
public List<PropagationTaskInfo> getDeleteTasks(AnyTypeKind kind, String key, PropagationByResource<String> propByRes, PropagationByResource<Pair<String,String>> propByLinkedAccount, Collection<String> noPropResourceKeys)
PropagationManager
noPropResourceKeys
.getDeleteTasks
in interface PropagationManager
kind
- any object type kindkey
- any object keypropByRes
- operation to be performed per resourcepropByLinkedAccount
- operation to be performed for linked accountsnoPropResourceKeys
- external resource keys not to be considered for propagationprotected List<PropagationTaskInfo> getDeleteTasks(Any<?> any, PropagationByResource<String> propByRes, PropagationByResource<Pair<String,String>> propByLinkedAccount, Collection<String> noPropResourceKeys)
public PropagationTaskInfo newTask(DerAttrHandler derAttrHandler, Any<?> any, ExternalResource resource, ResourceOperation operation, Provision provision, Stream<? extends Item> mappingItems, Pair<String,Set<Attribute>> preparedAttrs)
newTask
in interface PropagationManager
protected List<PropagationTaskInfo> createTasks(Any<?> any, String password, boolean changePwd, Boolean enable, PropagationByResource<String> propByRes, PropagationByResource<Pair<String,String>> propByLinkedAccount, Collection<AttrTO> vAttrs)
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 setpublic List<PropagationTaskInfo> createTasks(Realm realm, PropagationByResource<String> propByRes, Collection<String> noPropResourceKeys)
PropagationManager
noPropResourceKeys
.createTasks
in interface PropagationManager
realm
- realmpropByRes
- operation to be performed per resourcenoPropResourceKeys
- external resource keys not to be considered for propagationCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.