Package org.apache.syncope.core.logic
Class GroupLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<A>
-
- org.apache.syncope.core.logic.AbstractResourceAssociator<TO>
-
- org.apache.syncope.core.logic.AbstractAnyLogic<GroupTO,GroupCR,GroupUR>
-
- org.apache.syncope.core.logic.GroupLogic
-
public class GroupLogic extends AbstractAnyLogic<GroupTO,GroupCR,GroupUR>
Note that this controller does not extendAbstractTransactionalLogic
, hence does not provide any Spring's Transactional logic at class level.
-
-
Field Summary
Fields Modifier and Type Field Description protected GroupDataBinder
binder
protected EntityFactory
entityFactory
protected GroupDAO
groupDAO
protected ImplementationDAO
implementationDAO
protected JobManager
jobManager
protected GroupProvisioningManager
provisioningManager
protected SchedulerFactoryBean
scheduler
protected AnySearchDAO
searchDAO
protected SecurityProperties
securityProperties
protected TaskDAO
taskDAO
protected TaskDataBinder
taskDataBinder
protected UserDAO
userDAO
-
Fields inherited from class org.apache.syncope.core.logic.AbstractAnyLogic
anyTypeDAO, perContextActions, realmDAO, REST_CONTEXT, templateUtils
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description GroupLogic(RealmDAO realmDAO, AnyTypeDAO anyTypeDAO, TemplateUtils templateUtils, UserDAO userDAO, GroupDAO groupDAO, SecurityProperties securityProperties, AnySearchDAO searchDAO, ImplementationDAO implementationDAO, TaskDAO taskDAO, GroupDataBinder binder, GroupProvisioningManager provisioningManager, TaskDataBinder taskDataBinder, JobManager jobManager, SchedulerFactoryBean scheduler, EntityFactory entityFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProvisioningResult<GroupTO>
assign(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync)
ProvisioningResult<GroupTO>
create(GroupCR createReq, boolean nullPriorityAsync)
ProvisioningResult<GroupTO>
delete(String key, boolean nullPriorityAsync)
ProvisioningResult<GroupTO>
deprovision(String key, List<String> resources, boolean nullPriorityAsync)
GroupTO
link(String key, Collection<String> resources)
List<GroupTO>
own()
ProvisioningResult<GroupTO>
provision(String key, List<String> resources, boolean changePwd, String password, boolean nullPriorityAsync)
ExecTO
provisionMembers(String key, ProvisionAction action)
GroupTO
read(String key)
protected GroupTO
resolveReference(Method method, Object... args)
Pair<Integer,List<GroupTO>>
search(SearchCond searchCond, int page, int size, List<OrderByClause> orderBy, String realm, boolean recursive, boolean details)
ProvisioningResult<GroupTO>
unassign(String key, Collection<String> resources, boolean nullPriorityAsync)
GroupTO
unlink(String key, Collection<String> resources)
ProvisioningResult<GroupTO>
update(GroupUR req, boolean nullPriorityAsync)
protected GroupTO
updateChecks(String key)
-
Methods inherited from class org.apache.syncope.core.logic.AbstractAnyLogic
afterCreate, afterDelete, afterUpdate, beforeCreate, beforeDelete, beforeUpdate, getActions
-
Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
-
-
-
Field Detail
-
userDAO
protected final UserDAO userDAO
-
groupDAO
protected final GroupDAO groupDAO
-
securityProperties
protected final SecurityProperties securityProperties
-
searchDAO
protected final AnySearchDAO searchDAO
-
implementationDAO
protected final ImplementationDAO implementationDAO
-
taskDAO
protected final TaskDAO taskDAO
-
binder
protected final GroupDataBinder binder
-
provisioningManager
protected final GroupProvisioningManager provisioningManager
-
taskDataBinder
protected final TaskDataBinder taskDataBinder
-
jobManager
protected final JobManager jobManager
-
scheduler
protected final SchedulerFactoryBean scheduler
-
entityFactory
protected final EntityFactory entityFactory
-
-
Constructor Detail
-
GroupLogic
public GroupLogic(RealmDAO realmDAO, AnyTypeDAO anyTypeDAO, TemplateUtils templateUtils, UserDAO userDAO, GroupDAO groupDAO, SecurityProperties securityProperties, AnySearchDAO searchDAO, ImplementationDAO implementationDAO, TaskDAO taskDAO, GroupDataBinder binder, GroupProvisioningManager provisioningManager, TaskDataBinder taskDataBinder, JobManager jobManager, SchedulerFactoryBean scheduler, EntityFactory entityFactory)
-
-
Method Detail
-
read
@PreAuthorize("hasRole(\'GROUP_READ\')") @Transactional(readOnly=true) public GroupTO read(String key)
- Specified by:
read
in classAbstractAnyLogic<GroupTO,GroupCR,GroupUR>
-
own
@PreAuthorize("isAuthenticated() and not(hasRole(\'ANONYMOUS\'))") @Transactional(readOnly=true) public List<GroupTO> own()
-
search
@PreAuthorize("hasRole(\'GROUP_SEARCH\')") @Transactional(readOnly=true) public Pair<Integer,List<GroupTO>> search(SearchCond searchCond, int page, int size, List<OrderByClause> orderBy, String realm, boolean recursive, boolean details)
- Specified by:
search
in classAbstractAnyLogic<GroupTO,GroupCR,GroupUR>
-
create
@PreAuthorize("hasRole(\'GROUP_CREATE\')") public ProvisioningResult<GroupTO> create(GroupCR createReq, boolean nullPriorityAsync)
-
update
@PreAuthorize("hasRole(\'GROUP_UPDATE\')") public ProvisioningResult<GroupTO> update(GroupUR req, boolean nullPriorityAsync)
- Specified by:
update
in classAbstractAnyLogic<GroupTO,GroupCR,GroupUR>
-
delete
@PreAuthorize("hasRole(\'GROUP_DELETE\')") public ProvisioningResult<GroupTO> delete(String key, boolean nullPriorityAsync)
- Specified by:
delete
in classAbstractAnyLogic<GroupTO,GroupCR,GroupUR>
-
unlink
@PreAuthorize("hasRole(\'GROUP_UPDATE\')") public GroupTO unlink(String key, Collection<String> resources)
- Specified by:
unlink
in classAbstractResourceAssociator<GroupTO>
-
link
@PreAuthorize("hasRole(\'GROUP_UPDATE\')") public GroupTO link(String key, Collection<String> resources)
- Specified by:
link
in classAbstractResourceAssociator<GroupTO>
-
unassign
@PreAuthorize("hasRole(\'GROUP_UPDATE\')") public ProvisioningResult<GroupTO> unassign(String key, Collection<String> resources, boolean nullPriorityAsync)
- Specified by:
unassign
in classAbstractResourceAssociator<GroupTO>
-
assign
@PreAuthorize("hasRole(\'GROUP_UPDATE\')") public ProvisioningResult<GroupTO> assign(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync)
- Specified by:
assign
in classAbstractResourceAssociator<GroupTO>
-
deprovision
@PreAuthorize("hasRole(\'GROUP_UPDATE\')") public ProvisioningResult<GroupTO> deprovision(String key, List<String> resources, boolean nullPriorityAsync)
- Specified by:
deprovision
in classAbstractResourceAssociator<GroupTO>
-
provision
@PreAuthorize("hasRole(\'GROUP_UPDATE\')") public ProvisioningResult<GroupTO> provision(String key, List<String> resources, boolean changePwd, String password, boolean nullPriorityAsync)
- Specified by:
provision
in classAbstractResourceAssociator<GroupTO>
-
provisionMembers
@PreAuthorize("hasRole(\'TASK_CREATE\') and hasRole(\'TASK_EXECUTE\')") @Transactional public ExecTO provisionMembers(String key, ProvisionAction action)
-
resolveReference
protected GroupTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
- Specified by:
resolveReference
in classAbstractLogic<GroupTO>
- Throws:
UnresolvedReferenceException
-
-