Interface RoleByIdResource


  • public interface RoleByIdResource
    Sometimes its easier to just interact with roles by their ID instead of container/role-name
    Version:
    $Revision: 1 $
    Author:
    Bill Burke
    • Method Detail

      • getRole

        @Path("{role-id}")
        @GET
        @Produces("application/json")
        RoleRepresentation getRole​(@PathParam("role-id")
                                   String id)
      • deleteRole

        @Path("{role-id}")
        @DELETE
        void deleteRole​(@PathParam("role-id")
                        String id)
      • updateRole

        @Path("{role-id}")
        @PUT
        @Consumes("application/json")
        void updateRole​(@PathParam("role-id")
                        String id,
                        RoleRepresentation rep)
      • addComposites

        @Path("{role-id}/composites")
        @POST
        @Consumes("application/json")
        void addComposites​(@PathParam("role-id")
                           String id,
                           List<RoleRepresentation> roles)
      • getRoleComposites

        @Path("{role-id}/composites")
        @GET
        @Produces("application/json")
        Set<RoleRepresentation> getRoleComposites​(@PathParam("role-id")
                                                  String id)
      • searchRoleComposites

        @Path("{role-id}/composites")
        @GET
        @Produces("application/json")
        Set<RoleRepresentation> searchRoleComposites​(@PathParam("role-id")
                                                     String id,
                                                     @QueryParam("search")
                                                     String search,
                                                     @QueryParam("first")
                                                     Integer first,
                                                     @QueryParam("max")
                                                     Integer max)
      • getRealmRoleComposites

        @Path("{role-id}/composites/realm")
        @GET
        @Produces("application/json")
        Set<RoleRepresentation> getRealmRoleComposites​(@PathParam("role-id")
                                                       String id)
      • getClientRoleComposites

        @Path("{role-id}/composites/clients/{clientUuid}")
        @GET
        @Produces("application/json")
        Set<RoleRepresentation> getClientRoleComposites​(@PathParam("role-id")
                                                        String id,
                                                        @PathParam("clientUuid")
                                                        String clientUuid)
      • deleteComposites

        @Path("{role-id}/composites")
        @DELETE
        @Consumes("application/json")
        void deleteComposites​(@PathParam("role-id")
                              String id,
                              List<RoleRepresentation> roles)