Package org.ctan.site.resources.admin
Class Role3Resource
java.lang.Object
org.ctan.site.resources.admin.Role3Resource
The class
Role3Resource contains the CRUD controller for the
roles resource.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Role3Resource
public Role3Resource()
-
-
Method Details
-
get
@GET @Path("/role/{id}") @UnitOfWork("siteDb") public Role get(@NonNull @PathParam("id") @NonNull String id) The methodretrieveprovides means to retrieve a stop word.- Parameters:
id- the id- Returns:
trueiff 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 methodlistprovides means to retrieve a page of roles.- Parameters:
query- the name patternpage- the pagesize- the page sizeorderBy- the orderasc- the indicator for ascending- Returns:
- the page for the roles or
null
-