Interface RoleService

    • Method Detail

      • list

        @GET
        @Produces({"application/json","application/yaml","application/xml"})
        List<RoleTO> list()
        Returns a list of all roles.
        Returns:
        list of all roles.
      • read

        @GET
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        RoleTO read​(@NotNull @PathParam("key")
                    @NotNull String key)
        Returns role with matching key.
        Parameters:
        key - role key to be read
        Returns:
        role with matching key
      • create

        @POST
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        javax.ws.rs.core.Response create​(@NotNull
                                         @NotNull RoleTO roleTO)
        Creates a new role.
        Parameters:
        roleTO - role to be created
        Returns:
        Response object featuring Location header of created role
      • update

        @PUT
        @Path("{key}")
        @Consumes({"application/json","application/yaml","application/xml"})
        @Produces({"application/json","application/yaml","application/xml"})
        void update​(@NotNull
                    @NotNull RoleTO roleTO)
        Updates the role matching the provided key.
        Parameters:
        roleTO - role to be stored
      • delete

        @DELETE
        @Path("{key}")
        @Produces({"application/json","application/yaml","application/xml"})
        void delete​(@NotNull @PathParam("key")
                    @NotNull String key)
        Deletes the role matching the provided key.
        Parameters:
        key - role key to be deleted
      • getAnyLayout

        @GET
        @Path("{key}/anyLayout")
        @Produces("application/json")
        javax.ws.rs.core.Response getAnyLayout​(@NotNull @PathParam("key")
                                               @NotNull String key)
        Gets the console layout information as JSON string for the role with the given key, if available.
        Parameters:
        key - role key
        Returns:
        console layout information as JSON string for the role with the given key, if available
      • setAnyLayout

        @PUT
        @Path("{key}/anyLayout")
        @Consumes("application/json")
        @Produces({"application/json","application/yaml","application/xml"})
        void setAnyLayout​(@NotNull @PathParam("key")
                          @NotNull String key,
                          InputStream anyLayoutIn)
        Sets the console layout information as JSON string for the role with the given key, if available.
        Parameters:
        key - role key
        anyLayoutIn - console layout information to be set
      • removeAnyLayout

        @DELETE
        @Path("{key}/anyLayout")
        @Produces({"application/json","application/yaml","application/xml"})
        void removeAnyLayout​(@NotNull @PathParam("key")
                             @NotNull String key)
        Removes the console layout information for the role with the given key, if available.
        Parameters:
        key - role key