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 Modifier and Type Field Description protected GroupDAOgroupDAOprotected GroupLogiclogic-
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
Constructors Constructor Description GroupServiceImpl(SearchCondVisitor searchCondVisitor, GroupDAO groupDAO, GroupLogic logic)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Responsecreate(GroupCR createReq)Creates a new group.protected AnyDAO<?>getAnyDAO()protected AbstractAnyLogic<GroupTO,GroupCR,GroupUR>getAnyLogic()protected GroupURnewUpdateReq(String key)List<GroupTO>own()This method allows a user to read his own groups.ExecTOprovisionMembers(String key, ProvisionAction action)(De)provision all members of the given group from / onto all the resources associated to it.javax.ws.rs.core.Responseupdate(GroupUR updateReq)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, getOrderByClauses, getPreference, isNullPriorityAsync, modificationResponse
-
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 Detail
-
groupDAO
protected final GroupDAO groupDAO
-
logic
protected final GroupLogic logic
-
-
Constructor Detail
-
GroupServiceImpl
public GroupServiceImpl(SearchCondVisitor searchCondVisitor, GroupDAO groupDAO, GroupLogic logic)
-
-
Method Detail
-
getAnyDAO
protected AnyDAO<?> getAnyDAO()
- Specified by:
getAnyDAOin classAbstractAnyService<GroupTO,GroupCR,GroupUR>
-
getAnyLogic
protected AbstractAnyLogic<GroupTO,GroupCR,GroupUR> getAnyLogic()
- Specified by:
getAnyLogicin classAbstractAnyService<GroupTO,GroupCR,GroupUR>
-
newUpdateReq
protected GroupUR newUpdateReq(String key)
- Specified by:
newUpdateReqin classAbstractAnyService<GroupTO,GroupCR,GroupUR>
-
create
public javax.ws.rs.core.Response create(GroupCR createReq)
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
public javax.ws.rs.core.Response update(GroupUR updateReq)
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
public List<GroupTO> own()
Description copied from interface:GroupServiceThis method allows a user to read his own groups.- Specified by:
ownin interfaceGroupService- Returns:
- own groups
-
provisionMembers
public ExecTO provisionMembers(String key, ProvisionAction action)
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
-
-