@Component public class GroupLogic extends AbstractAnyLogic<GroupTO,GroupPatch>
AbstractTransactionalLogic
, hence does not provide any
Spring's Transactional logic at class level.Modifier and Type | Field and Description |
---|---|
protected String |
adminUser |
protected GroupDataBinder |
binder |
protected ConfDAO |
confDAO |
protected EntityFactory |
entityFactory |
protected GroupDAO |
groupDAO |
protected ImplementationDAO |
implementationDAO |
protected JobManager |
jobManager |
protected static org.slf4j.Logger |
LOG |
protected GroupProvisioningManager |
provisioningManager |
protected SchedulerFactoryBean |
scheduler |
protected AnySearchDAO |
searchDAO |
protected TaskDAO |
taskDAO |
protected TaskDataBinder |
taskDataBinder |
protected UserDAO |
userDAO |
perContextActions
Constructor and Description |
---|
GroupLogic() |
Modifier and Type | Method and Description |
---|---|
ProvisioningResult<GroupTO> |
assign(String key,
Collection<String> resources,
boolean changepwd,
String password,
boolean nullPriorityAsync) |
ProvisioningResult<GroupTO> |
create(GroupTO groupTO,
boolean nullPriorityAsync) |
ProvisioningResult<GroupTO> |
delete(String key,
boolean nullPriorityAsync) |
ProvisioningResult<GroupTO> |
deprovision(String key,
Collection<String> resources,
boolean nullPriorityAsync) |
GroupTO |
link(String key,
Collection<String> resources) |
List<GroupTO> |
own() |
ProvisioningResult<GroupTO> |
provision(String key,
Collection<String> resources,
boolean changePwd,
String password,
boolean nullPriorityAsync) |
ExecTO |
provisionMembers(String key,
ProvisionAction action) |
GroupTO |
read(String key) |
T |
resolveBeanReference(Method method,
Object... args)
Resolves stored bean (if existing) referred by the given CUD method.
|
protected GroupTO |
resolveReference(Method method,
Object... args) |
Pair<Integer,List<GroupTO>> |
search(SearchCond searchCond,
int page,
int size,
List<OrderByClause> orderBy,
String realm,
boolean details) |
ProvisioningResult<GroupTO> |
unassign(String key,
Collection<String> resources,
boolean nullPriorityAsync) |
GroupTO |
unlink(String key,
Collection<String> resources) |
ProvisioningResult<GroupTO> |
update(GroupPatch groupPatch,
boolean nullPriorityAsync) |
protected GroupTO |
updateChecks(String key) |
afterCreate, afterDelete, afterUpdate, beforeCreate, beforeDelete, beforeUpdate, getActions
@Autowired protected UserDAO userDAO
@Autowired protected GroupDAO groupDAO
protected String adminUser
@Autowired protected AnySearchDAO searchDAO
@Autowired protected ImplementationDAO implementationDAO
@Autowired protected TaskDAO taskDAO
@Autowired protected ConfDAO confDAO
@Autowired protected GroupDataBinder binder
@Autowired protected GroupProvisioningManager provisioningManager
@Autowired protected TaskDataBinder taskDataBinder
@Autowired protected JobManager jobManager
@Autowired protected SchedulerFactoryBean scheduler
@Autowired protected EntityFactory entityFactory
protected static final org.slf4j.Logger LOG
@PreAuthorize(value="hasRole(\'GROUP_READ\')") @Transactional(readOnly=true) public GroupTO read(String key)
read
in class AbstractAnyLogic<GroupTO,GroupPatch>
@PreAuthorize(value="isAuthenticated() and not(hasRole(\'ANONYMOUS\'))") @Transactional(readOnly=true) public List<GroupTO> own()
@PreAuthorize(value="hasRole(\'GROUP_SEARCH\')") @Transactional(readOnly=true) public Pair<Integer,List<GroupTO>> search(SearchCond searchCond, int page, int size, List<OrderByClause> orderBy, String realm, boolean details)
search
in class AbstractAnyLogic<GroupTO,GroupPatch>
@PreAuthorize(value="hasRole(\'GROUP_CREATE\')") public ProvisioningResult<GroupTO> create(GroupTO groupTO, boolean nullPriorityAsync)
@PreAuthorize(value="hasRole(\'GROUP_UPDATE\')") public ProvisioningResult<GroupTO> update(GroupPatch groupPatch, boolean nullPriorityAsync)
update
in class AbstractAnyLogic<GroupTO,GroupPatch>
@PreAuthorize(value="hasRole(\'GROUP_DELETE\')") public ProvisioningResult<GroupTO> delete(String key, boolean nullPriorityAsync)
delete
in class AbstractAnyLogic<GroupTO,GroupPatch>
@PreAuthorize(value="hasRole(\'GROUP_UPDATE\')") public GroupTO unlink(String key, Collection<String> resources)
unlink
in class AbstractResourceAssociator<GroupTO>
@PreAuthorize(value="hasRole(\'GROUP_UPDATE\')") public GroupTO link(String key, Collection<String> resources)
link
in class AbstractResourceAssociator<GroupTO>
@PreAuthorize(value="hasRole(\'GROUP_UPDATE\')") public ProvisioningResult<GroupTO> unassign(String key, Collection<String> resources, boolean nullPriorityAsync)
unassign
in class AbstractResourceAssociator<GroupTO>
@PreAuthorize(value="hasRole(\'GROUP_UPDATE\')") public ProvisioningResult<GroupTO> assign(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync)
assign
in class AbstractResourceAssociator<GroupTO>
@PreAuthorize(value="hasRole(\'GROUP_UPDATE\')") public ProvisioningResult<GroupTO> deprovision(String key, Collection<String> resources, boolean nullPriorityAsync)
deprovision
in class AbstractResourceAssociator<GroupTO>
@PreAuthorize(value="hasRole(\'GROUP_UPDATE\')") public ProvisioningResult<GroupTO> provision(String key, Collection<String> resources, boolean changePwd, String password, boolean nullPriorityAsync)
provision
in class AbstractResourceAssociator<GroupTO>
@PreAuthorize(value="hasRole(\'TASK_CREATE\') and hasRole(\'TASK_EXECUTE\')") @Transactional public ExecTO provisionMembers(String key, ProvisionAction action)
protected GroupTO 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.