Class DefaultUserProvisioningManager
- java.lang.Object
-
- org.apache.syncope.core.provisioning.java.DefaultUserProvisioningManager
-
- All Implemented Interfaces:
ProvisioningManager<UserCR,UserUR>
,UserProvisioningManager
public class DefaultUserProvisioningManager extends Object implements UserProvisioningManager
-
-
Field Summary
Fields Modifier and Type Field Description protected static Logger
LOG
protected PropagationManager
propagationManager
protected PropagationTaskExecutor
taskExecutor
protected UserDAO
userDAO
protected UserWorkflowAdapter
uwfAdapter
protected VirAttrHandler
virtAttrHandler
-
Constructor Summary
Constructors Constructor Description DefaultUserProvisioningManager(UserWorkflowAdapter uwfAdapter, PropagationManager propagationManager, PropagationTaskExecutor taskExecutor, UserDAO userDAO, VirAttrHandler virtAttrHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Pair<String,List<PropagationStatus>>
activate(StatusR statusR, boolean nullPriorityAsync, String updater, String context)
void
confirmPasswordReset(String key, String token, String password, String updater, String context)
Pair<String,List<PropagationStatus>>
create(UserCR userCR, boolean disablePwdPolicyCheck, Boolean enabled, Set<String> excludedResources, boolean nullPriorityAsync, String creator, String context)
Pair<String,List<PropagationStatus>>
create(UserCR userCR, boolean nullPriorityAsync, String creator, String context)
List<PropagationStatus>
delete(String key, boolean nullPriorityAsync, String eraser, String context)
List<PropagationStatus>
delete(String key, Set<String> excludedResources, boolean nullPriorityAsync, String eraser, String context)
List<PropagationStatus>
deprovision(String key, Collection<String> resources, boolean nullPriorityAsync, String executor)
void
internalSuspend(String key, String updater, String context)
String
link(UserUR userUR, String updater, String context)
protected List<PropagationStatus>
propagateStatus(StatusR statusR, boolean nullPriorityAsync, String updater)
List<PropagationStatus>
provision(String key, boolean changePwd, String password, Collection<String> resources, boolean nullPriorityAsync, String executor)
Pair<String,List<PropagationStatus>>
reactivate(StatusR statusR, boolean nullPriorityAsync, String updater, String context)
void
requestPasswordReset(String key, String updater, String context)
Pair<String,List<PropagationStatus>>
suspend(StatusR statusR, boolean nullPriorityAsync, String updater, String context)
String
unlink(UserUR userUR, String updater, String context)
Pair<UserUR,List<PropagationStatus>>
update(UserUR userUR, boolean nullPriorityAsync, String updater, String context)
Pair<UserUR,List<PropagationStatus>>
update(UserUR userUR, Set<String> excludedResources, boolean nullPriorityAsync, String updater, String context)
Pair<UserUR,List<PropagationStatus>>
update(UserUR userUR, ProvisioningReport result, Boolean enabled, Set<String> excludedResources, boolean nullPriorityAsync, String updater, String context)
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
uwfAdapter
protected final UserWorkflowAdapter uwfAdapter
-
propagationManager
protected final PropagationManager propagationManager
-
taskExecutor
protected final PropagationTaskExecutor taskExecutor
-
userDAO
protected final UserDAO userDAO
-
virtAttrHandler
protected final VirAttrHandler virtAttrHandler
-
-
Constructor Detail
-
DefaultUserProvisioningManager
public DefaultUserProvisioningManager(UserWorkflowAdapter uwfAdapter, PropagationManager propagationManager, PropagationTaskExecutor taskExecutor, UserDAO userDAO, VirAttrHandler virtAttrHandler)
-
-
Method Detail
-
create
public Pair<String,List<PropagationStatus>> create(UserCR userCR, boolean nullPriorityAsync, String creator, String context)
- Specified by:
create
in interfaceProvisioningManager<UserCR,UserUR>
-
create
@Transactional(propagation=REQUIRES_NEW) public Pair<String,List<PropagationStatus>> create(UserCR userCR, boolean disablePwdPolicyCheck, Boolean enabled, Set<String> excludedResources, boolean nullPriorityAsync, String creator, String context)
- Specified by:
create
in interfaceUserProvisioningManager
-
update
public Pair<UserUR,List<PropagationStatus>> update(UserUR userUR, boolean nullPriorityAsync, String updater, String context)
- Specified by:
update
in interfaceUserProvisioningManager
-
update
public Pair<UserUR,List<PropagationStatus>> update(UserUR userUR, Set<String> excludedResources, boolean nullPriorityAsync, String updater, String context)
- Specified by:
update
in interfaceProvisioningManager<UserCR,UserUR>
-
update
@Transactional(propagation=REQUIRES_NEW) public Pair<UserUR,List<PropagationStatus>> update(UserUR userUR, ProvisioningReport result, Boolean enabled, Set<String> excludedResources, boolean nullPriorityAsync, String updater, String context)
- Specified by:
update
in interfaceUserProvisioningManager
-
delete
public List<PropagationStatus> delete(String key, boolean nullPriorityAsync, String eraser, String context)
- Specified by:
delete
in interfaceProvisioningManager<UserCR,UserUR>
-
delete
@Transactional(propagation=REQUIRES_NEW) public List<PropagationStatus> delete(String key, Set<String> excludedResources, boolean nullPriorityAsync, String eraser, String context)
- Specified by:
delete
in interfaceProvisioningManager<UserCR,UserUR>
-
unlink
public String unlink(UserUR userUR, String updater, String context)
- Specified by:
unlink
in interfaceProvisioningManager<UserCR,UserUR>
-
link
public String link(UserUR userUR, String updater, String context)
- Specified by:
link
in interfaceProvisioningManager<UserCR,UserUR>
-
activate
public Pair<String,List<PropagationStatus>> activate(StatusR statusR, boolean nullPriorityAsync, String updater, String context)
- Specified by:
activate
in interfaceUserProvisioningManager
-
reactivate
public Pair<String,List<PropagationStatus>> reactivate(StatusR statusR, boolean nullPriorityAsync, String updater, String context)
- Specified by:
reactivate
in interfaceUserProvisioningManager
-
suspend
public Pair<String,List<PropagationStatus>> suspend(StatusR statusR, boolean nullPriorityAsync, String updater, String context)
- Specified by:
suspend
in interfaceUserProvisioningManager
-
propagateStatus
protected List<PropagationStatus> propagateStatus(StatusR statusR, boolean nullPriorityAsync, String updater)
-
internalSuspend
public void internalSuspend(String key, String updater, String context)
- Specified by:
internalSuspend
in interfaceUserProvisioningManager
-
provision
public List<PropagationStatus> provision(String key, boolean changePwd, String password, Collection<String> resources, boolean nullPriorityAsync, String executor)
- Specified by:
provision
in interfaceUserProvisioningManager
-
deprovision
public List<PropagationStatus> deprovision(String key, Collection<String> resources, boolean nullPriorityAsync, String executor)
- Specified by:
deprovision
in interfaceProvisioningManager<UserCR,UserUR>
-
requestPasswordReset
public void requestPasswordReset(String key, String updater, String context)
- Specified by:
requestPasswordReset
in interfaceUserProvisioningManager
-
confirmPasswordReset
public void confirmPasswordReset(String key, String token, String password, String updater, String context)
- Specified by:
confirmPasswordReset
in interfaceUserProvisioningManager
-
-