Interface GroupService
- All Superinterfaces:
AnyService<org.apache.syncope.common.lib.to.GroupTO>,JAXRSService
@Path("groups")
public interface GroupService
extends AnyService<org.apache.syncope.common.lib.to.GroupTO>
REST operations for groups.
-
Field Summary
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 -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsecreate(@NotNull org.apache.syncope.common.lib.request.GroupCR createReq) Creates a new group.List<org.apache.syncope.common.lib.to.GroupTO> own()This method allows a user to read his own groups.org.apache.syncope.common.lib.to.ExecTOprovisionMembers(@NotNull String key, @NotNull org.apache.syncope.common.lib.types.ProvisionAction action) (De)provision all members of the given group from / onto all the resources associated to it.org.apache.syncope.common.lib.to.GroupTOReads the any object matching the provided key.org.apache.syncope.common.lib.to.PagedResult<org.apache.syncope.common.lib.to.GroupTO> Returns a paged list of any objects matching the given query.jakarta.ws.rs.core.Responseupdate(@NotNull org.apache.syncope.common.lib.request.GroupUR updateReq) Updates group matching the provided key.Methods inherited from interface org.apache.syncope.common.rest.api.service.AnyService
associate, deassociate, delete, delete, read, read, update
-
Method Details
-
read
Description copied from interface:AnyServiceReads the any object matching the provided key.- Specified by:
readin interfaceAnyService<org.apache.syncope.common.lib.to.GroupTO>- Parameters:
key- if value looks like a UUID then it is interpreted as key, otherwise as a (user)name- Returns:
- any object with matching key
-
search
org.apache.syncope.common.lib.to.PagedResult<org.apache.syncope.common.lib.to.GroupTO> search(AnyQuery anyQuery) Description copied from interface:AnyServiceReturns a paged list of any objects matching the given query.- Specified by:
searchin interfaceAnyService<org.apache.syncope.common.lib.to.GroupTO>- Parameters:
anyQuery- query conditions- Returns:
- paged list of any objects matching the given query
-
create
@POST @Produces({"application/json","application/yaml","application/xml"}) @Consumes({"application/json","application/yaml","application/xml"}) jakarta.ws.rs.core.Response create(@NotNull @NotNull org.apache.syncope.common.lib.request.GroupCR createReq) Creates a new group.- 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
@PATCH @Path("{key}") @Produces({"application/json","application/yaml","application/xml"}) @Consumes({"application/json","application/yaml","application/xml"}) jakarta.ws.rs.core.Response update(@NotNull @NotNull org.apache.syncope.common.lib.request.GroupUR updateReq) Updates group matching the provided key.- 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
@GET @Path("own") @Produces({"application/json","application/yaml","application/xml"}) List<org.apache.syncope.common.lib.to.GroupTO> own()This method allows a user to read his own groups.- Returns:
- own groups
-
provisionMembers
@POST @Path("{key}/members/{action}") @Produces({"application/json","application/yaml","application/xml"}) org.apache.syncope.common.lib.to.ExecTO provisionMembers(@NotNull @PathParam("key") @NotNull String key, @NotNull @PathParam("action") @NotNull org.apache.syncope.common.lib.types.ProvisionAction action) (De)provision all members of the given group from / onto all the resources associated to it.- Parameters:
key- group keyaction- action type to perform on all group members- Returns:
- execution report for the task generated on purpose
-