Package org.apache.syncope.core.logic
Class UserLogic
- All Implemented Interfaces:
AnyCRUDLogicOp<UserTO,,UserCR, UserUR> UserLogicOp
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 AnyTypeDAOprotected final UserDataBinderprotected final ConfParamOpsprotected final EncryptorManagerprotected final GroupDAOprotected final Map<String, LogicActions> protected final UserProvisioningManagerprotected final RealmSearchDAOprotected static final Stringprotected final AnySearchDAOprotected final TemplateUtilsprotected final UserDAOFields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG -
Constructor Summary
ConstructorsConstructorDescriptionUserLogic(RealmSearchDAO realmSearchDAO, AnyTypeDAO anyTypeDAO, TemplateUtils templateUtils, UserDAO userDAO, UserDataBinder binder, UserProvisioningManager provisioningManager, EncryptorManager encryptorManager, ConfParamOps confParamOps, GroupDAO groupDAO, AnySearchDAO searchDAO) -
Method Summary
Modifier and TypeMethodDescriptionprotected ProvisioningResult<UserTO> afterCreate(UserTO input, List<PropagationStatus> statuses, List<LogicActions> actions) protected ProvisioningResult<UserTO> afterDelete(UserTO input, List<PropagationStatus> statuses, List<LogicActions> actions) protected ProvisioningResult<UserTO> afterUpdate(UserTO input, List<PropagationStatus> statuses, List<LogicActions> actions) assign(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync) protected org.apache.syncope.core.logic.AbstractAnyLogic.BeforeResult<UserCR> beforeCreate(UserCR input) protected org.apache.syncope.core.logic.AbstractAnyLogic.BeforeResult<UserTO> beforeDelete(UserTO input) protected org.apache.syncope.core.logic.AbstractAnyLogic.BeforeResult<UserUR> beforeUpdate(UserUR input, String realmPath) deprovision(String key, List<String> resources, boolean nullPriorityAsync) protected ProvisioningResult<UserTO> protected ProvisioningResult<UserTO> protected ProvisioningResult<UserTO> protected ProvisioningResult<UserTO> protected List<LogicActions> getActions(Realm realm) link(String key, Collection<String> resources) provision(String key, List<String> resources, boolean changePwd, String password, boolean nullPriorityAsync) 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) protected ProvisioningManager.ProvisioningResult<String> 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.AbstractLogic
resolveBeanReference
-
Field Details
-
groupDAO
-
searchDAO
-
userDAO
-
binder
-
provisioningManager
-
encryptorManager
-
confParamOps
-
REST_CONTEXT
- See Also:
-
realmSearchDAO
-
anyTypeDAO
-
templateUtils
-
perContextActions
-
-
Constructor Details
-
UserLogic
public UserLogic(RealmSearchDAO realmSearchDAO, AnyTypeDAO anyTypeDAO, TemplateUtils templateUtils, UserDAO userDAO, UserDataBinder binder, UserProvisioningManager provisioningManager, EncryptorManager encryptorManager, ConfParamOps confParamOps, GroupDAO groupDAO, AnySearchDAO searchDAO)
-
-
Method Details
-
read
@PreAuthorize("hasRole(\'USER_READ\')") @Transactional(readOnly=true) public UserTO read(String key) - Specified by:
readin interfaceAnyCRUDLogicOp<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 interfaceAnyCRUDLogicOp<UserTO,UserCR, UserUR>
-
create
@PreAuthorize("hasRole(\'USER_CREATE\')") public ProvisioningResult<UserTO> create(UserCR createReq, boolean nullPriorityAsync) - Specified by:
createin interfaceAnyCRUDLogicOp<UserTO,UserCR, UserUR>
-
update
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> update(UserUR userUR, boolean nullPriorityAsync) - Specified by:
updatein interfaceAnyCRUDLogicOp<UserTO,UserCR, UserUR>
-
status
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> status(StatusR statusR, boolean nullPriorityAsync) - Specified by:
statusin interfaceUserLogicOp
-
updateChecks
-
unlink
@PreAuthorize("hasRole(\'USER_UPDATE\')") public UserTO unlink(String key, Collection<String> resources) - Specified by:
unlinkin interfaceAnyCRUDLogicOp<UserTO,UserCR, UserUR>
-
link
@PreAuthorize("hasRole(\'USER_UPDATE\')") public UserTO link(String key, Collection<String> resources) - Specified by:
linkin interfaceAnyCRUDLogicOp<UserTO,UserCR, UserUR>
-
unassign
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> unassign(String key, Collection<String> resources, boolean nullPriorityAsync) - Specified by:
unassignin interfaceAnyCRUDLogicOp<UserTO,UserCR, UserUR>
-
assign
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> assign(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync) - Specified by:
assignin interfaceAnyCRUDLogicOp<UserTO,UserCR, UserUR>
-
deprovision
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> deprovision(String key, List<String> resources, boolean nullPriorityAsync) - Specified by:
deprovisionin interfaceAnyCRUDLogicOp<UserTO,UserCR, UserUR>
-
provision
@PreAuthorize("hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> provision(String key, List<String> resources, boolean changePwd, String password, boolean nullPriorityAsync) - Specified by:
provisionin interfaceAnyCRUDLogicOp<UserTO,UserCR, UserUR>
-
delete
@PreAuthorize("hasRole(\'USER_DELETE\')") public ProvisioningResult<UserTO> delete(String key, boolean nullPriorityAsync) - Specified by:
deletein interfaceAnyCRUDLogicOp<UserTO,UserCR, UserUR>
-
verifySecurityAnswer
@PreAuthorize("hasRole(\'USER_SEARCH\')") @Transactional(readOnly=true) public void verifySecurityAnswer(String username, String securityAnswer) - Specified by:
verifySecurityAnswerin interfaceUserLogicOp
-
doCreate
protected ProvisioningResult<UserTO> doCreate(UserCR userCR, boolean self, boolean nullPriorityAsync) -
groups
-
doUpdate
protected ProvisioningResult<UserTO> doUpdate(UserUR userUR, boolean self, boolean nullPriorityAsync) -
setStatusOnWfAdapter
protected ProvisioningManager.ProvisioningResult<String> setStatusOnWfAdapter(StatusR statusR, boolean nullPriorityAsync) -
doStatus
-
doDelete
protected ProvisioningResult<UserTO> doDelete(UserTO userTO, boolean self, boolean nullPriorityAsync) -
resolveReference
protected UserTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
resolveReferencein classAbstractLogic<UserTO>- Throws:
UnresolvedReferenceException
-
getActions
-
beforeCreate
-
beforeUpdate
-
beforeDelete
-
afterCreate
protected ProvisioningResult<UserTO> afterCreate(UserTO input, List<PropagationStatus> statuses, List<LogicActions> actions) -
afterUpdate
protected ProvisioningResult<UserTO> afterUpdate(UserTO input, List<PropagationStatus> statuses, List<LogicActions> actions) -
afterDelete
protected ProvisioningResult<UserTO> afterDelete(UserTO input, List<PropagationStatus> statuses, List<LogicActions> actions)
-