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 GroupDataBinderbinderprotected EntityFactoryentityFactoryprotected GroupDAOgroupDAOprotected ImplementationDAOimplementationDAOprotected JobManagerjobManagerprotected GroupProvisioningManagerprovisioningManagerprotected SchedulerFactoryBeanschedulerprotected AnySearchDAOsearchDAOprotected SecurityPropertiessecurityPropertiesprotected TaskDAOtaskDAOprotected TaskDataBindertaskDataBinderprotected UserDAOuserDAO-
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)GroupTOlink(String key, Collection<String> resources)List<GroupTO>own()ProvisioningResult<GroupTO>provision(String key, List<String> resources, boolean changePwd, String password, boolean nullPriorityAsync)ExecTOprovisionMembers(String key, ProvisionAction action)GroupTOread(String key)protected GroupTOresolveReference(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)GroupTOunlink(String key, Collection<String> resources)ProvisioningResult<GroupTO>update(GroupUR req, boolean nullPriorityAsync)protected GroupTOupdateChecks(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:
readin 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:
searchin 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:
updatein classAbstractAnyLogic<GroupTO,GroupCR,GroupUR>
-
delete
@PreAuthorize("hasRole(\'GROUP_DELETE\')") public ProvisioningResult<GroupTO> delete(String key, boolean nullPriorityAsync)
- Specified by:
deletein classAbstractAnyLogic<GroupTO,GroupCR,GroupUR>
-
unlink
@PreAuthorize("hasRole(\'GROUP_UPDATE\')") public GroupTO unlink(String key, Collection<String> resources)
- Specified by:
unlinkin classAbstractResourceAssociator<GroupTO>
-
link
@PreAuthorize("hasRole(\'GROUP_UPDATE\')") public GroupTO link(String key, Collection<String> resources)
- Specified by:
linkin classAbstractResourceAssociator<GroupTO>
-
unassign
@PreAuthorize("hasRole(\'GROUP_UPDATE\')") public ProvisioningResult<GroupTO> unassign(String key, Collection<String> resources, boolean nullPriorityAsync)
- Specified by:
unassignin classAbstractResourceAssociator<GroupTO>
-
assign
@PreAuthorize("hasRole(\'GROUP_UPDATE\')") public ProvisioningResult<GroupTO> assign(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync)
- Specified by:
assignin classAbstractResourceAssociator<GroupTO>
-
deprovision
@PreAuthorize("hasRole(\'GROUP_UPDATE\')") public ProvisioningResult<GroupTO> deprovision(String key, List<String> resources, boolean nullPriorityAsync)
- Specified by:
deprovisionin classAbstractResourceAssociator<GroupTO>
-
provision
@PreAuthorize("hasRole(\'GROUP_UPDATE\')") public ProvisioningResult<GroupTO> provision(String key, List<String> resources, boolean changePwd, String password, boolean nullPriorityAsync)
- Specified by:
provisionin 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:
resolveReferencein classAbstractLogic<GroupTO>- Throws:
UnresolvedReferenceException
-
-