Class GroupServiceImpl
java.lang.Object
org.apache.syncope.core.rest.cxf.service.AbstractService
org.apache.syncope.core.rest.cxf.service.AbstractSearchService
org.apache.syncope.core.rest.cxf.service.AbstractAnyService<GroupTO,GroupCR,GroupUR>
org.apache.syncope.core.rest.cxf.service.GroupServiceImpl
- All Implemented Interfaces:
AnyService<GroupTO>
,GroupService
,JAXRSService
@Service
public class GroupServiceImpl
extends AbstractAnyService<GroupTO,GroupCR,GroupUR>
implements GroupService
-
Field Summary
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractSearchService
searchCondVisitor
Fields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfo
Fields inherited from interface org.apache.syncope.common.rest.api.service.JAXRSService
CRLF, DOUBLE_DASH, PARAM_ANYTYPE_KIND, PARAM_ANYTYPEKEY, PARAM_CONNID_PAGED_RESULTS_COOKIE, PARAM_DETAILS, PARAM_ENTITY_KEY, PARAM_FIQL, PARAM_KEYWORD, PARAM_MAX, PARAM_NOTIFICATION, PARAM_ORDERBY, PARAM_PAGE, PARAM_REALM, PARAM_RECURSIVE, PARAM_RESOURCE, PARAM_SIZE, PARAM_USER
-
Constructor Summary
ConstructorDescriptionGroupServiceImpl
(SearchCondVisitor searchCondVisitor, GroupDAO groupDAO, GroupLogic logic) -
Method Summary
Modifier and TypeMethodDescriptionCreates a new group.protected AnyDAO
<?> protected AbstractAnyLogic
<GroupTO, GroupCR, GroupUR> protected GroupUR
newUpdateReq
(String key) own()
This method allows a user to read his own groups.provisionMembers
(String key, ProvisionAction action) (De)provision all members of the given group from / onto all the resources associated to it.Updates group matching the provided key.Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractAnyService
addUpdateOrReplaceAttr, associate, deassociate, delete, delete, doUpdate, findLastChange, read, read, read, search, update
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractSearchService
getSearchCond
Methods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getPreference, isNullPriorityAsync, modificationResponse, pageable, pageable, sort
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.syncope.common.rest.api.service.AnyService
associate, deassociate, delete, delete, read, read, update
Methods inherited from interface org.apache.syncope.common.rest.api.service.GroupService
read, search
-
Field Details
-
groupDAO
-
logic
-
-
Constructor Details
-
GroupServiceImpl
-
-
Method Details
-
getAnyDAO
- Specified by:
getAnyDAO
in classAbstractAnyService<GroupTO,
GroupCR, GroupUR>
-
getAnyLogic
- Specified by:
getAnyLogic
in classAbstractAnyService<GroupTO,
GroupCR, GroupUR>
-
newUpdateReq
- Specified by:
newUpdateReq
in classAbstractAnyService<GroupTO,
GroupCR, GroupUR>
-
create
Description copied from interface:GroupService
Creates a new group.- Specified by:
create
in interfaceGroupService
- Parameters:
createReq
- group create request- Returns:
- Response object featuring Location header of created group as well as the any object itself enriched with propagation status information
-
update
Description copied from interface:GroupService
Updates group matching the provided key.- Specified by:
update
in interfaceGroupService
- Parameters:
updateReq
- modification to be applied to group matching the provided key- Returns:
- Response object featuring the updated group enriched with propagation status information
-
own
Description copied from interface:GroupService
This method allows a user to read his own groups.- Specified by:
own
in interfaceGroupService
- Returns:
- own groups
-
provisionMembers
Description copied from interface:GroupService
(De)provision all members of the given group from / onto all the resources associated to it.- Specified by:
provisionMembers
in interfaceGroupService
- Parameters:
key
- group keyaction
- action type to perform on all group members- Returns:
- execution report for the task generated on purpose
-