Package org.apache.syncope.core.logic
Class UserSelfLogic
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AccessTokenDAOprotected final AnyTypeDAOprotected final UserDataBinderprotected final ConfParamOpsprotected final DelegationDAOprotected final EncryptorManagerprotected final Map<String, LogicActions> protected final UserProvisioningManagerprotected final RealmSearchDAOprotected final ExternalResourceDAOprotected static final Stringprotected final RuleProviderprotected final TemplateUtilsprotected final UserDAOFields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG -
Constructor Summary
ConstructorsConstructorDescriptionUserSelfLogic(RealmSearchDAO realmSearchDAO, AnyTypeDAO anyTypeDAO, TemplateUtils templateUtils, UserDAO userDAO, UserDataBinder binder, UserProvisioningManager provisioningManager, EncryptorManager encryptorManager, ConfParamOps confParamOps, DelegationDAO delegationDAO, AccessTokenDAO accessTokenDAO, ExternalResourceDAO resourceDAO, RuleProvider ruleProvider) -
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) 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) voidcompliance(ComplianceQuery query) voidconfirmPasswordReset(String token, String password) delete(boolean nullPriorityAsync) protected ProvisioningResult<UserTO> protected ProvisioningResult<UserTO> protected ProvisioningResult<UserTO> protected ProvisioningResult<UserTO> protected List<LogicActions> getActions(Realm realm) mustChangePassword(PasswordPatch password, boolean nullPriorityAsync) read()voidrequestPasswordReset(String username, String securityAnswer) protected UserTOresolveReference(Method method, Object... args) protected ProvisioningManager.ProvisioningResult<String> setStatusOnWfAdapter(StatusR statusR, boolean nullPriorityAsync) protected static voidthrowMfaWasSet(String username) Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
Field Details
-
delegationDAO
-
accessTokenDAO
-
resourceDAO
-
ruleProvider
-
userDAO
-
binder
-
provisioningManager
-
encryptorManager
-
confParamOps
-
REST_CONTEXT
- See Also:
-
realmSearchDAO
-
anyTypeDAO
-
templateUtils
-
perContextActions
-
-
Constructor Details
-
UserSelfLogic
public UserSelfLogic(RealmSearchDAO realmSearchDAO, AnyTypeDAO anyTypeDAO, TemplateUtils templateUtils, UserDAO userDAO, UserDataBinder binder, UserProvisioningManager provisioningManager, EncryptorManager encryptorManager, ConfParamOps confParamOps, DelegationDAO delegationDAO, AccessTokenDAO accessTokenDAO, ExternalResourceDAO resourceDAO, RuleProvider ruleProvider)
-
-
Method Details
-
throwMfaWasSet
-
read
@PreAuthorize("isAuthenticated() and not(hasRole(\'MFA_ENROLL\')) and not(hasRole(\'MUST_CHANGE_PASSWORD\'))") @Transactional(readOnly=true) public UserSelfLogic.Self read() -
create
@PreAuthorize("hasRole(\'ANONYMOUS\')") public ProvisioningResult<UserTO> create(UserCR createReq, boolean nullPriorityAsync) -
update
@PreAuthorize("isAuthenticated() and not(hasRole(\'ANONYMOUS\')) and not(hasRole(\'MFA_ENROLL\')) and not(hasRole(\'MUST_CHANGE_PASSWORD\'))") public ProvisioningResult<UserTO> update(UserUR userUR, boolean nullPriorityAsync) -
status
@PreAuthorize("isAuthenticated() and not(hasRole(\'ANONYMOUS\')) and not(hasRole(\'MFA_ENROLL\')) and not(hasRole(\'MUST_CHANGE_PASSWORD\'))") public ProvisioningResult<UserTO> status(StatusR statusR, boolean nullPriorityAsync) -
delete
@PreAuthorize("isAuthenticated() and not(hasRole(\'ANONYMOUS\')) and not(hasRole(\'MFA_ENROLL\')) and not(hasRole(\'MUST_CHANGE_PASSWORD\'))") public ProvisioningResult<UserTO> delete(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) -
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)
-