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
FieldsModifier and TypeFieldDescriptionprotected final AccessTokenDAOprotected final UserDataBinderprotected final ConfParamOpsprotected final DelegationDAOprotected final EncryptorManagerprotected final GroupDAOprotected final UserProvisioningManagerprotected final ExternalResourceDAOprotected final RuleProviderprotected final AnySearchDAOprotected final SyncopeLogicprotected final UserDAOFields inherited from class org.apache.syncope.core.logic.AbstractAnyLogic
anyTypeDAO, perContextActions, realmSearchDAO, REST_CONTEXT, templateUtilsFields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG - 
Constructor Summary
ConstructorsConstructorDescriptionUserLogic(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, EncryptorManager encryptorManager)  - 
Method Summary
Modifier and TypeMethodDescriptionassign(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync) voidcompliance(ComplianceQuery query) voidconfirmPasswordReset(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) voidrequestPasswordReset(String username, String securityAnswer) protected UserTOresolveReference(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 voidupdateChecks(String key) voidverifySecurityAnswer(String username, String securityAnswer) Methods inherited from class org.apache.syncope.core.logic.AbstractAnyLogic
afterCreate, afterDelete, afterUpdate, beforeCreate, beforeDelete, beforeUpdate, getActionsMethods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference 
- 
Field Details
- 
userDAO
 - 
groupDAO
 - 
searchDAO
 - 
resourceDAO
 - 
accessTokenDAO
 - 
delegationDAO
 - 
confParamOps
 - 
binder
 - 
provisioningManager
 - 
syncopeLogic
 - 
ruleEnforcer
 - 
encryptorManager
 
 - 
 - 
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, EncryptorManager encryptorManager)  
 - 
 - 
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:
 readin 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:
 searchin 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:
 updatein 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:
 deletein 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:
 unlinkin classAbstractResourceAssociator<UserTO>
 - 
link
@PreAuthorize("hasRole(\'USER_UPDATE\')") public UserTO link(String key, Collection<String> resources) - Specified by:
 linkin classAbstractResourceAssociator<UserTO>
 - 
unassign
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> unassign(String key, Collection<String> resources, boolean nullPriorityAsync) - Specified by:
 unassignin classAbstractResourceAssociator<UserTO>
 - 
assign
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> assign(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync) - Specified by:
 assignin classAbstractResourceAssociator<UserTO>
 - 
deprovision
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> deprovision(String key, List<String> resources, boolean nullPriorityAsync) - Specified by:
 deprovisionin classAbstractResourceAssociator<UserTO>
 - 
provision
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> provision(String key, List<String> resources, boolean changePwd, String password, boolean nullPriorityAsync) - Specified by:
 provisionin classAbstractResourceAssociator<UserTO>
 - 
verifySecurityAnswer
@PreAuthorize("hasRole(\'USER_SEARCH\')") @Transactional(readOnly=true) public void verifySecurityAnswer(String username, String securityAnswer)  - 
resolveReference
protected UserTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
 resolveReferencein classAbstractLogic<UserTO>- Throws:
 UnresolvedReferenceException
 
 -