Interface GroupService
-
- All Known Implementing Classes:
DefaultGroupService
@Path("/groups") public interface GroupService
- Since:
- 3.0
- Author:
- Olivier Lamy, Martin Stockhammer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.ws.rs.core.Response
addGroupMapping(GroupMapping groupMapping, javax.ws.rs.core.UriInfo uriInfo)
javax.ws.rs.core.Response
addRolesToGroupMapping(String groupName, String roleId)
List<String>
getGroupMapping(String group)
List<GroupMapping>
getGroupMappings()
org.apache.archiva.components.rest.model.PagedResult<Group>
getGroups(String searchTerm, Integer offset, Integer limit, List<String> orderBy, String order)
void
removeGroupMapping(String group)
javax.ws.rs.core.Response
updateGroupMapping(String groupName, List<String> roles)
-
-
-
Method Detail
-
getGroups
@Path("") @GET @Produces("application/json") org.apache.archiva.components.rest.model.PagedResult<Group> getGroups(@QueryParam("q") @DefaultValue("") String searchTerm, @QueryParam("offset") @DefaultValue("0") Integer offset, @QueryParam("limit") @DefaultValue("100") Integer limit, @QueryParam("orderBy") @DefaultValue("name") List<String> orderBy, @QueryParam("order") @DefaultValue("asc") String order) throws RedbackServiceException
- Throws:
RedbackServiceException
-
getGroupMappings
@Path("mappings") @GET @Produces("application/json") List<GroupMapping> getGroupMappings() throws RedbackServiceException
- Throws:
RedbackServiceException
-
addGroupMapping
@Path("mappings") @POST @Consumes("application/json") @Produces("application/json") javax.ws.rs.core.Response addGroupMapping(GroupMapping groupMapping, @Context javax.ws.rs.core.UriInfo uriInfo) throws RedbackServiceException
- Throws:
RedbackServiceException
-
getGroupMapping
@Path("mappings/{group}") @GET @Produces("application/json") List<String> getGroupMapping(@PathParam("group") String group) throws RedbackServiceException
- Throws:
RedbackServiceException
-
removeGroupMapping
@Path("mappings/{group}") @DELETE @Consumes("application/json") @Produces("application/json") void removeGroupMapping(@PathParam("group") String group) throws RedbackServiceException
- Throws:
RedbackServiceException
-
updateGroupMapping
@Path("mappings/{group}") @PUT @Consumes("application/json") @Produces("application/json") javax.ws.rs.core.Response updateGroupMapping(@PathParam("group") String groupName, List<String> roles) throws RedbackServiceException
- Throws:
RedbackServiceException
-
addRolesToGroupMapping
@Path("mappings/{group}/roles/{roleId}") @PUT @Consumes("application/json") @Produces("application/json") javax.ws.rs.core.Response addRolesToGroupMapping(@PathParam("group") String groupName, @PathParam("roleId") String roleId) throws RedbackServiceException
- Throws:
RedbackServiceException
-
-