Package org.apache.syncope.core.logic
Class UserLogic
java.lang.Object
org.apache.syncope.core.logic.AbstractLogic<UserTO>
org.apache.syncope.core.logic.AbstractResourceAssociator<UserTO>
org.apache.syncope.core.logic.AbstractAnyLogic<UserTO,UserCR,UserUR>
org.apache.syncope.core.logic.UserLogic
Note that this controller does not extend
AbstractTransactionalLogic
, hence does not provide any
Spring's Transactional logic at class level.-
Field Summary
Modifier and TypeFieldDescriptionprotected final AccessTokenDAO
protected final UserDataBinder
protected final ConfParamOps
protected final DelegationDAO
protected final GroupDAO
protected final UserProvisioningManager
protected final ExternalResourceDAO
protected final RuleProvider
protected final AnySearchDAO
protected final SyncopeLogic
protected final UserDAO
Fields inherited from class org.apache.syncope.core.logic.AbstractAnyLogic
anyTypeDAO, perContextActions, realmSearchDAO, REST_CONTEXT, templateUtils
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
Constructor Summary
ConstructorDescriptionUserLogic
(RealmSearchDAO realmSearchDAO, AnyTypeDAO anyTypeDAO, TemplateUtils templateUtils, UserDAO userDAO, GroupDAO groupDAO, AnySearchDAO searchDAO, ExternalResourceDAO resourceDAO, AccessTokenDAO accessTokenDAO, DelegationDAO delegationDAO, ConfParamOps confParamOps, UserDataBinder binder, UserProvisioningManager provisioningManager, SyncopeLogic syncopeLogic, RuleProvider ruleEnforcer) -
Method Summary
Modifier and TypeMethodDescriptionassign
(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync) void
compliance
(ComplianceQuery query) void
confirmPasswordReset
(String token, String password) deprovision
(String key, List<String> resources, boolean nullPriorityAsync) protected ProvisioningResult
<UserTO> protected ProvisioningResult
<UserTO> protected ProvisioningResult
<UserTO> link
(String key, Collection<String> resources) mustChangePassword
(PasswordPatch password, boolean nullPriorityAsync) provision
(String key, List<String> resources, boolean changePwd, String password, boolean nullPriorityAsync) void
requestPasswordReset
(String username, String securityAnswer) protected UserTO
resolveReference
(Method method, Object... args) org.springframework.data.domain.Page
<UserTO> search
(SearchCond searchCond, org.springframework.data.domain.Pageable pageable, String realm, boolean recursive, boolean details) selfCreate
(UserCR createReq, boolean nullPriorityAsync) selfDelete
(boolean nullPriorityAsync) selfRead()
selfStatus
(StatusR statusR, boolean nullPriorityAsync) selfUpdate
(UserUR userUR, boolean nullPriorityAsync) protected Pair
<String, List<PropagationStatus>> setStatusOnWfAdapter
(StatusR statusR, boolean nullPriorityAsync) unassign
(String key, Collection<String> resources, boolean nullPriorityAsync) unlink
(String key, Collection<String> resources) protected void
updateChecks
(String key) Methods inherited from class org.apache.syncope.core.logic.AbstractAnyLogic
afterCreate, afterDelete, afterUpdate, beforeCreate, beforeDelete, beforeUpdate, getActions
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
Field Details
-
userDAO
-
groupDAO
-
searchDAO
-
resourceDAO
-
accessTokenDAO
-
delegationDAO
-
confParamOps
-
binder
-
provisioningManager
-
syncopeLogic
-
ruleEnforcer
-
-
Constructor Details
-
UserLogic
public UserLogic(RealmSearchDAO realmSearchDAO, AnyTypeDAO anyTypeDAO, TemplateUtils templateUtils, UserDAO userDAO, GroupDAO groupDAO, AnySearchDAO searchDAO, ExternalResourceDAO resourceDAO, AccessTokenDAO accessTokenDAO, DelegationDAO delegationDAO, ConfParamOps confParamOps, UserDataBinder binder, UserProvisioningManager provisioningManager, SyncopeLogic syncopeLogic, RuleProvider ruleEnforcer)
-
-
Method Details
-
selfRead
@PreAuthorize("isAuthenticated() and not(hasRole(\'MUST_CHANGE_PASSWORD\'))") @Transactional(readOnly=true) public Triple<String,String, selfRead()UserTO> -
read
@PreAuthorize("hasRole(\'USER_READ\')") @Transactional(readOnly=true) public UserTO read(String key) - Specified by:
read
in classAbstractAnyLogic<UserTO,
UserCR, UserUR>
-
search
@PreAuthorize("hasRole(\'USER_SEARCH\')") @Transactional(readOnly=true) public org.springframework.data.domain.Page<UserTO> search(SearchCond searchCond, org.springframework.data.domain.Pageable pageable, String realm, boolean recursive, boolean details) - Specified by:
search
in classAbstractAnyLogic<UserTO,
UserCR, UserUR>
-
selfCreate
@PreAuthorize("hasRole(\'ANONYMOUS\')") public ProvisioningResult<UserTO> selfCreate(UserCR createReq, boolean nullPriorityAsync) -
create
@PreAuthorize("hasRole(\'USER_CREATE\')") public ProvisioningResult<UserTO> create(UserCR createReq, boolean nullPriorityAsync) -
doCreate
protected ProvisioningResult<UserTO> doCreate(UserCR userCR, boolean self, boolean nullPriorityAsync) -
selfUpdate
@PreAuthorize("isAuthenticated() and not(hasRole(\'ANONYMOUS\')) and not(hasRole(\'MUST_CHANGE_PASSWORD\'))") public ProvisioningResult<UserTO> selfUpdate(UserUR userUR, boolean nullPriorityAsync) -
update
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> update(UserUR userUR, boolean nullPriorityAsync) - Specified by:
update
in classAbstractAnyLogic<UserTO,
UserCR, UserUR>
-
groups
-
doUpdate
protected ProvisioningResult<UserTO> doUpdate(UserUR userUR, boolean self, boolean nullPriorityAsync) -
setStatusOnWfAdapter
protected Pair<String,List<PropagationStatus>> setStatusOnWfAdapter(StatusR statusR, boolean nullPriorityAsync) -
status
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> status(StatusR statusR, boolean nullPriorityAsync) -
selfStatus
@PreAuthorize("isAuthenticated() and not(hasRole(\'MUST_CHANGE_PASSWORD\'))") public ProvisioningResult<UserTO> selfStatus(StatusR statusR, boolean nullPriorityAsync) -
mustChangePassword
@PreAuthorize("hasRole(\'MUST_CHANGE_PASSWORD\')") public ProvisioningResult<UserTO> mustChangePassword(PasswordPatch password, boolean nullPriorityAsync) -
compliance
@PreAuthorize("hasRole(\'ANONYMOUS\')") @Transactional(readOnly=true) public void compliance(ComplianceQuery query) -
requestPasswordReset
@PreAuthorize("hasRole(\'ANONYMOUS\')") @Transactional public void requestPasswordReset(String username, String securityAnswer) -
confirmPasswordReset
@PreAuthorize("hasRole(\'ANONYMOUS\')") @Transactional public void confirmPasswordReset(String token, String password) -
selfDelete
@PreAuthorize("isAuthenticated() and not(hasRole(\'ANONYMOUS\')) and not(hasRole(\'MUST_CHANGE_PASSWORD\'))") public ProvisioningResult<UserTO> selfDelete(boolean nullPriorityAsync) -
delete
@PreAuthorize("hasRole(\'USER_DELETE\')") public ProvisioningResult<UserTO> delete(String key, boolean nullPriorityAsync) - Specified by:
delete
in classAbstractAnyLogic<UserTO,
UserCR, UserUR>
-
doDelete
protected ProvisioningResult<UserTO> doDelete(UserTO userTO, boolean self, boolean nullPriorityAsync) -
updateChecks
-
unlink
@PreAuthorize("hasRole(\'USER_UPDATE\')") public UserTO unlink(String key, Collection<String> resources) - Specified by:
unlink
in classAbstractResourceAssociator<UserTO>
-
link
@PreAuthorize("hasRole(\'USER_UPDATE\')") public UserTO link(String key, Collection<String> resources) - Specified by:
link
in classAbstractResourceAssociator<UserTO>
-
unassign
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> unassign(String key, Collection<String> resources, boolean nullPriorityAsync) - Specified by:
unassign
in classAbstractResourceAssociator<UserTO>
-
assign
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> assign(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync) - Specified by:
assign
in classAbstractResourceAssociator<UserTO>
-
deprovision
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> deprovision(String key, List<String> resources, boolean nullPriorityAsync) - Specified by:
deprovision
in classAbstractResourceAssociator<UserTO>
-
provision
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> provision(String key, List<String> resources, boolean changePwd, String password, boolean nullPriorityAsync) - Specified by:
provision
in classAbstractResourceAssociator<UserTO>
-
resolveReference
protected UserTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
resolveReference
in classAbstractLogic<UserTO>
- Throws:
UnresolvedReferenceException
-