Package org.ctan.site.resources.admin
Class CrudTopic3Resource
java.lang.Object
org.ctan.site.resources.admin.CrudTopic3Resource
The class
CrudTopic3Resource contains the CRUD controller for
the topics resource.-
Constructor Summary
ConstructorsConstructorDescriptionCrudTopic3Resource(@NonNull TopicStore store) This is the constructor for the classCrudLicense3Resource. -
Method Summary
Modifier and TypeMethodDescriptionThe methodcreateprovides an end-point to create a license.The methodgetprovides an end-point to get a license.The methodlistprovides means to retrieve a page of topics.booleanThe methodremoveprovides an end-point to remove a ticket.
-
Constructor Details
-
CrudTopic3Resource
This is the constructor for the classCrudLicense3Resource.- Parameters:
store- the underlying store
-
-
Method Details
-
create
The methodcreateprovides an end-point to create a license.- Parameters:
topic- the topic object to store- Returns:
- the updated entity
-
get
@GET @Path("/topic/{id}") @UnitOfWork("siteDb") public Topic get(@NonNull @PathParam("id") @NonNull Long id) The methodgetprovides an end-point to get a license.- Parameters:
id- the id- Returns:
- the license
-
list
@GET @Path("/topics") @UnitOfWork("siteDb") public GeneralPage list(@QueryParam("q") String q, @QueryParam("page") int page, @QueryParam("size") int size, @QueryParam("order") String orderBy, @QueryParam("asc") boolean asc) The methodlistprovides means to retrieve a page of topics.- Parameters:
q- the name patternpage- the pagesize- the page sizeorderBy- the orderasc- the indicator for ascending- Returns:
- the page for the topics or
null
-
remove
The methodremoveprovides an end-point to remove a ticket.- Parameters:
id- the id- Returns:
trueiff the user has existed
-