Class Role3Resource

java.lang.Object
org.ctan.site.resources.admin.Role3Resource

@Path("/3.0/admin") @Produces("application/json") public class Role3Resource extends Object
The class Role3Resource contains the CRUD controller for the roles resource.
  • Constructor Details

    • Role3Resource

      public Role3Resource()
  • Method Details

    • get

      @GET @Path("/role/{id}") @UnitOfWork("siteDb") public Role get(@NonNull @PathParam("id") @NonNull String id)
      The method retrieve provides means to retrieve a stop word.
      Parameters:
      id - the id
      Returns:
      true iff the user exists
    • list

      @GET @Path("/roles") @UnitOfWork("siteDb") public GeneralPage list(@QueryParam("q") String query, @QueryParam("page") int page, @QueryParam("size") long size, @QueryParam("order") String orderBy, @QueryParam("asc") boolean asc)
      The method list provides means to retrieve a page of roles.
      Parameters:
      query - the name pattern
      page - the page
      size - the page size
      orderBy - the order
      asc - the indicator for ascending
      Returns:
      the page for the roles or null