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
public class GroupServiceImpl
extends AbstractAnyService<GroupTO,GroupCR,GroupUR>
implements GroupService
-
Field Summary
FieldsFields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractSearchService
searchCondVisitorFields inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
LOG, messageContext, OPTIONS_ALLOW, searchContext, uriInfoFields 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
ConstructorsConstructorDescriptionGroupServiceImpl(SearchCondVisitor searchCondVisitor, GroupDAO groupDAO, GroupLogic logic) -
Method Summary
Modifier and TypeMethodDescriptionCreates a new group.protected AnyDAO<?> protected AbstractAnyLogic<GroupTO, GroupCR, GroupUR> protected GroupURnewUpdateReq(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, updateMethods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractSearchService
getSearchCondMethods inherited from class org.apache.syncope.core.rest.cxf.service.AbstractService
applyPreference, buildPagedResult, checkETag, createResponse, findActualKey, getPreference, isNullPriorityAsync, modificationResponse, pageable, pageable, sortMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.syncope.common.rest.api.service.AnyService
associate, deassociate, delete, delete, read, read, updateMethods 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:
getAnyDAOin classAbstractAnyService<GroupTO,GroupCR, GroupUR>
-
getAnyLogic
- Specified by:
getAnyLogicin classAbstractAnyService<GroupTO,GroupCR, GroupUR>
-
newUpdateReq
- Specified by:
newUpdateReqin classAbstractAnyService<GroupTO,GroupCR, GroupUR>
-
create
Description copied from interface:GroupServiceCreates a new group.- Specified by:
createin 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:GroupServiceUpdates group matching the provided key.- Specified by:
updatein 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:GroupServiceThis method allows a user to read his own groups.- Specified by:
ownin 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:
provisionMembersin interfaceGroupService- Parameters:
key- group keyaction- action type to perform on all group members- Returns:
- execution report for the task generated on purpose
-