Package org.gcube.service.idm.rest
Class RolesAPI
- java.lang.Object
-
- org.gcube.service.idm.rest.RolesAPI
-
@Path("roles") public class RolesAPI extends Object
-
-
Constructor Summary
Constructors Constructor Description RolesAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.ResponsemembersForRole(String role_name, int firstResult, int maxResults, KCUserController.REPR format)Returns the list of members (users + services_accounts) with the given role in the contextjakarta.ws.rs.core.Responserole(String role_name)Returns role by namejakarta.ws.rs.core.Responsesearch(String search, int firstResult, int maxResults, KCRolesController.REPR format)Returns roles in contextjakarta.ws.rs.core.ResponseservicesAccountsForRole(String role_name, int firstResult, int maxResults, KCUserController.REPR format)Returns the list of users with role in the contextjakarta.ws.rs.core.ResponseusersForRole(String role_name, int firstResult, int maxResults, KCUserController.REPR format)Returns the list of users with role in the context
-
-
-
Method Detail
-
search
@GET @Path("/") @Produces("application/json") public jakarta.ws.rs.core.Response search(@QueryParam("search") @DefaultValue("") String search, @QueryParam("first") @DefaultValue("0") int firstResult, @QueryParam("max") @DefaultValue("100") int maxResults, @QueryParam("format") @DefaultValue("name") KCRolesController.REPR format)Returns roles in context- Parameters:
format- roles response formatfirstResult- pagination offsetmaxResults- maximum results sizesearch- filter by name
-
role
@GET @Path("/{role_name}") @Produces({"application/json;charset=UTF-8","application/vnd.api+json"}) public jakarta.ws.rs.core.Response role(@PathParam("role_name") String role_name)Returns role by name
-
membersForRole
@GET @Path("/{role_name}/members") @Produces({"application/json;charset=UTF-8","application/vnd.api+json"}) public jakarta.ws.rs.core.Response membersForRole(@PathParam("role_name") String role_name, @QueryParam("first") @DefaultValue("0") int firstResult, @QueryParam("max") @DefaultValue("100") int maxResults, @QueryParam("format") @DefaultValue("username") KCUserController.REPR format)Returns the list of members (users + services_accounts) with the given role in the context- Parameters:
format- users response formatrole_name- the rolefirstResult- pagination offsetmaxResults- maximum results size
-
usersForRole
@GET @Path("/{role_name}/users") @Produces({"application/json;charset=UTF-8","application/vnd.api+json"}) public jakarta.ws.rs.core.Response usersForRole(@PathParam("role_name") String role_name, @QueryParam("first") @DefaultValue("0") int firstResult, @QueryParam("max") @DefaultValue("100") int maxResults, @QueryParam("format") @DefaultValue("username") KCUserController.REPR format)Returns the list of users with role in the context- Parameters:
format- users response formatrole_name- the rolefirstResult- pagination offsetmaxResults- maximum results size
-
servicesAccountsForRole
@GET @Path("/{role_name}/service_accounts") @Produces({"application/json;charset=UTF-8","application/vnd.api+json"}) public jakarta.ws.rs.core.Response servicesAccountsForRole(@PathParam("role_name") String role_name, @QueryParam("first") @DefaultValue("0") int firstResult, @QueryParam("max") @DefaultValue("100") int maxResults, @QueryParam("format") @DefaultValue("username") KCUserController.REPR format)Returns the list of users with role in the context- Parameters:
format- users response formatrole_name- the rolefirstResult- pagination offsetmaxResults- maximum results size
-
-