Package org.apache.syncope.core.logic
Class GroupLogic
java.lang.Object
org.apache.syncope.core.logic.AbstractLogic<GroupTO>
org.apache.syncope.core.logic.AbstractResourceAssociator<GroupTO>
org.apache.syncope.core.logic.AbstractAnyLogic<GroupTO,GroupCR,GroupUR>
org.apache.syncope.core.logic.GroupLogic
Note that this controller does not extend
AbstractTransactionalLogic
, hence does not provide any
Spring's Transactional logic at class level.-
Field Summary
Modifier and TypeFieldDescriptionprotected final GroupDataBinder
protected final EntityFactory
protected final GroupDAO
protected final ImplementationDAO
protected final JobManager
protected final GroupProvisioningManager
protected final SyncopeTaskScheduler
protected final AnySearchDAO
protected final SecurityProperties
protected final TaskDAO
protected final TaskDataBinder
protected final UserDAO
Fields inherited from class org.apache.syncope.core.logic.AbstractAnyLogic
anyTypeDAO, perContextActions, realmSearchDAO, REST_CONTEXT, templateUtils
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
Constructor Summary
ConstructorDescriptionGroupLogic
(RealmSearchDAO realmSearchDAO, AnyTypeDAO anyTypeDAO, TemplateUtils templateUtils, UserDAO userDAO, GroupDAO groupDAO, SecurityProperties securityProperties, AnySearchDAO searchDAO, ImplementationDAO implementationDAO, TaskDAO taskDAO, GroupDataBinder binder, GroupProvisioningManager provisioningManager, TaskDataBinder taskDataBinder, JobManager jobManager, SyncopeTaskScheduler scheduler, EntityFactory entityFactory) -
Method Summary
Modifier and TypeMethodDescriptionassign
(String key, Collection<String> resources, boolean changepwd, String password, boolean nullPriorityAsync) deprovision
(String key, List<String> resources, boolean nullPriorityAsync) link
(String key, Collection<String> resources) own()
provision
(String key, List<String> resources, boolean changePwd, String password, boolean nullPriorityAsync) provisionMembers
(String key, ProvisionAction action) protected GroupTO
resolveReference
(Method method, Object... args) org.springframework.data.domain.Page
<GroupTO> search
(SearchCond searchCond, org.springframework.data.domain.Pageable pageable, String realm, boolean recursive, boolean details) unassign
(String key, Collection<String> resources, boolean nullPriorityAsync) unlink
(String key, Collection<String> resources) 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 Details
-
userDAO
-
groupDAO
-
securityProperties
-
searchDAO
-
implementationDAO
-
taskDAO
-
binder
-
provisioningManager
-
taskDataBinder
-
jobManager
-
scheduler
-
entityFactory
-
-
Constructor Details
-
GroupLogic
public GroupLogic(RealmSearchDAO realmSearchDAO, AnyTypeDAO anyTypeDAO, TemplateUtils templateUtils, UserDAO userDAO, GroupDAO groupDAO, SecurityProperties securityProperties, AnySearchDAO searchDAO, ImplementationDAO implementationDAO, TaskDAO taskDAO, GroupDataBinder binder, GroupProvisioningManager provisioningManager, TaskDataBinder taskDataBinder, JobManager jobManager, SyncopeTaskScheduler scheduler, EntityFactory entityFactory)
-
-
Method Details
-
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 org.springframework.data.domain.Page<GroupTO> search(SearchCond searchCond, org.springframework.data.domain.Pageable pageable, 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>
-
updateChecks
-
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
-