@Component public class UserLogic extends AbstractAnyLogic<UserTO,UserPatch>
AbstractTransactionalLogic
, hence does not provide any
Spring's Transactional logic at class level.Modifier and Type | Field and Description |
---|---|
protected AccessTokenDAO |
accessTokenDAO |
protected UserDataBinder |
binder |
protected ConfDAO |
confDAO |
protected DelegationDAO |
delegationDAO |
protected GroupDAO |
groupDAO |
protected static org.slf4j.Logger |
LOG |
protected UserProvisioningManager |
provisioningManager |
protected AnySearchDAO |
searchDAO |
protected SyncopeLogic |
syncopeLogic |
protected UserDAO |
userDAO |
perContextActions
Constructor and Description |
---|
UserLogic() |
Modifier and Type | Method and Description |
---|---|
ProvisioningResult<UserTO> |
assign(String key,
Collection<String> resources,
boolean changepwd,
String password,
boolean nullPriorityAsync) |
void |
confirmPasswordReset(String token,
String password) |
ProvisioningResult<UserTO> |
create(UserTO userTO,
boolean storePassword,
boolean nullPriorityAsync) |
ProvisioningResult<UserTO> |
delete(String key,
boolean nullPriorityAsync) |
ProvisioningResult<UserTO> |
deprovision(String key,
Collection<String> resources,
boolean nullPriorityAsync) |
protected ProvisioningResult<UserTO> |
doCreate(UserTO userTO,
boolean storePassword,
boolean self,
boolean nullPriorityAsync) |
protected ProvisioningResult<UserTO> |
doDelete(UserTO userTO,
boolean self,
boolean nullPriorityAsync) |
protected ProvisioningResult<UserTO> |
doUpdate(UserPatch userPatch,
boolean self,
boolean nullPriorityAsync) |
protected Set<String> |
groups(UserTO userTO) |
UserTO |
link(String key,
Collection<String> resources) |
ProvisioningResult<UserTO> |
mustChangePassword(String password,
boolean nullPriorityAsync) |
ProvisioningResult<UserTO> |
provision(String key,
Collection<String> resources,
boolean changePwd,
String password,
boolean nullPriorityAsync) |
UserTO |
read(String key) |
void |
requestPasswordReset(String username,
String securityAnswer) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected UserTO |
resolveReference(Method method,
Object... args) |
Pair<Integer,List<UserTO>> |
search(SearchCond searchCond,
int page,
int size,
List<OrderByClause> orderBy,
String realm,
boolean details) |
ProvisioningResult<UserTO> |
selfCreate(UserTO userTO,
boolean storePassword,
boolean nullPriorityAsync) |
ProvisioningResult<UserTO> |
selfDelete(boolean nullPriorityAsync) |
Triple<String,String,UserTO> |
selfRead() |
ProvisioningResult<UserTO> |
selfStatus(StatusPatch statusPatch,
boolean nullPriorityAsync) |
ProvisioningResult<UserTO> |
selfUpdate(UserPatch userPatch,
boolean nullPriorityAsync) |
protected Pair<String,List<PropagationStatus>> |
setStatusOnWfAdapter(StatusPatch statusPatch,
boolean nullPriorityAsync) |
ProvisioningResult<UserTO> |
status(StatusPatch statusPatch,
boolean nullPriorityAsync) |
ProvisioningResult<UserTO> |
unassign(String key,
Collection<String> resources,
boolean nullPriorityAsync) |
UserTO |
unlink(String key,
Collection<String> resources) |
ProvisioningResult<UserTO> |
update(UserPatch userPatch,
boolean nullPriorityAsync) |
protected void |
updateChecks(String key) |
afterCreate, afterDelete, afterUpdate, beforeCreate, beforeDelete, beforeUpdate, getActions
@Autowired protected UserDAO userDAO
@Autowired protected GroupDAO groupDAO
@Autowired protected AnySearchDAO searchDAO
@Autowired protected ConfDAO confDAO
@Autowired protected AccessTokenDAO accessTokenDAO
@Autowired protected DelegationDAO delegationDAO
@Autowired protected UserDataBinder binder
@Autowired protected UserProvisioningManager provisioningManager
@Autowired protected SyncopeLogic syncopeLogic
protected static final org.slf4j.Logger LOG
@PreAuthorize(value="isAuthenticated() and not(hasRole(\'MUST_CHANGE_PASSWORD\'))") @Transactional(readOnly=true) public Triple<String,String,UserTO> selfRead()
@PreAuthorize(value="hasRole(\'USER_READ\')") @Transactional(readOnly=true) public UserTO read(String key)
read
in class AbstractAnyLogic<UserTO,UserPatch>
@PreAuthorize(value="hasRole(\'USER_SEARCH\')") @Transactional(readOnly=true) public Pair<Integer,List<UserTO>> search(SearchCond searchCond, int page, int size, List<OrderByClause> orderBy, String realm, boolean details)
search
in class AbstractAnyLogic<UserTO,UserPatch>
@PreAuthorize(value="isAnonymous() or hasRole(\'ANONYMOUS\')") public ProvisioningResult<UserTO> selfCreate(UserTO userTO, boolean storePassword, boolean nullPriorityAsync)
@PreAuthorize(value="hasRole(\'USER_CREATE\')") public ProvisioningResult<UserTO> create(UserTO userTO, boolean storePassword, boolean nullPriorityAsync)
protected ProvisioningResult<UserTO> doCreate(UserTO userTO, boolean storePassword, boolean self, boolean nullPriorityAsync)
@PreAuthorize(value="isAuthenticated() and not(hasRole(\'ANONYMOUS\')) and not(hasRole(\'MUST_CHANGE_PASSWORD\'))") public ProvisioningResult<UserTO> selfUpdate(UserPatch userPatch, boolean nullPriorityAsync)
@PreAuthorize(value="hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> update(UserPatch userPatch, boolean nullPriorityAsync)
update
in class AbstractAnyLogic<UserTO,UserPatch>
protected ProvisioningResult<UserTO> doUpdate(UserPatch userPatch, boolean self, boolean nullPriorityAsync)
protected Pair<String,List<PropagationStatus>> setStatusOnWfAdapter(StatusPatch statusPatch, boolean nullPriorityAsync)
@PreAuthorize(value="hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> status(StatusPatch statusPatch, boolean nullPriorityAsync)
@PreAuthorize(value="isAuthenticated() and not(hasRole(\'MUST_CHANGE_PASSWORD\'))") public ProvisioningResult<UserTO> selfStatus(StatusPatch statusPatch, boolean nullPriorityAsync)
@PreAuthorize(value="hasRole(\'MUST_CHANGE_PASSWORD\')") public ProvisioningResult<UserTO> mustChangePassword(String password, boolean nullPriorityAsync)
@PreAuthorize(value="isAnonymous() or hasRole(\'ANONYMOUS\')") @Transactional public void requestPasswordReset(String username, String securityAnswer)
@PreAuthorize(value="isAnonymous() or hasRole(\'ANONYMOUS\')") @Transactional public void confirmPasswordReset(String token, String password)
@PreAuthorize(value="isAuthenticated() and not(hasRole(\'ANONYMOUS\')) and not(hasRole(\'MUST_CHANGE_PASSWORD\'))") public ProvisioningResult<UserTO> selfDelete(boolean nullPriorityAsync)
@PreAuthorize(value="hasRole(\'USER_DELETE\')") public ProvisioningResult<UserTO> delete(String key, boolean nullPriorityAsync)
delete
in class AbstractAnyLogic<UserTO,UserPatch>
protected ProvisioningResult<UserTO> doDelete(UserTO userTO, boolean self, boolean nullPriorityAsync)
protected void updateChecks(String key)
@PreAuthorize(value="hasRole(\'USER_UPDATE\')") public UserTO unlink(String key, Collection<String> resources)
unlink
in class AbstractResourceAssociator<UserTO>
@PreAuthorize(value="hasRole(\'USER_UPDATE\')") public UserTO link(String key, Collection<String> resources)
link
in class AbstractResourceAssociator<UserTO>
@PreAuthorize(value="hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> unassign(String key, Collection<String> resources, boolean nullPriorityAsync)
unassign
in class AbstractResourceAssociator<UserTO>
@PreAuthorize(value="hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> assign(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync)
assign
in class AbstractResourceAssociator<UserTO>
@PreAuthorize(value="hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> deprovision(String key, Collection<String> resources, boolean nullPriorityAsync)
deprovision
in class AbstractResourceAssociator<UserTO>
@PreAuthorize(value="hasRole(\'USER_UPDATE\')") public ProvisioningResult<UserTO> provision(String key, Collection<String> resources, boolean changePwd, String password, boolean nullPriorityAsync)
provision
in class AbstractResourceAssociator<UserTO>
protected UserTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
UnresolvedReferenceException
public T resolveBeanReference(Method method, Object... args) throws UnresolvedReferenceException
method
- method.args
- method arguments.UnresolvedReferenceException
- in case of failures, read-only methods and unresolved bean.Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.