Package org.ctan.site.resources.admin
Class TexArchiveNotes3Resource
java.lang.Object
org.ctan.site.resources.admin.TexArchiveNotes3Resource
@Path("/3.0/admin")
@Produces("application/json")
@RolesAllowed("ADMIN")
public class TexArchiveNotes3Resource
extends Object
The class
TexArchiveNotes3Resource
contains the CRUD controller
for the tex-archive notes resource.-
Constructor Summary
ConstructorsConstructorDescriptionTexArchiveNotes3Resource
(@NonNull TexArchiveNotesStore store) This is the constructor for the classTexArchiveNotes3Resource
. -
Method Summary
Modifier and TypeMethodDescriptionThe methodretrieve
provides means to retrieve a texarchive-notes.The methodlist
provides means to retrieve a page of texarchive-notes.boolean
The methodremove
provides an end-point to remove a texarchive-notes.save
(@NonNull TexArchiveNotes notes) The methodsave
provides an end-point to create a notes object.
-
Constructor Details
-
TexArchiveNotes3Resource
This is the constructor for the classTexArchiveNotes3Resource
.- Parameters:
store
- the underlying store
-
-
Method Details
-
get
@GET @Path("/tex-archive-note/{id}") @UnitOfWork("siteDb") public TexArchiveNotes get(@NonNull @PathParam("id") @NonNull Long id) The methodretrieve
provides means to retrieve a texarchive-notes.- Parameters:
id
- the id- Returns:
true
iff the texarchive-note exists
-
list
@GET @Path("/tex-archive-notes") @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 methodlist
provides means to retrieve a page of texarchive-notes.- Parameters:
q
- the name patternpage
- the pagesize
- the page sizeorderBy
- the orderasc
- the indicator for ascending- Returns:
- the page for the texarchive-notes or
null
-
remove
@DELETE @Path("/tex-archive-note/{id}") @UnitOfWork("siteDb") public boolean remove(@NonNull @PathParam("id") @NonNull Long id) The methodremove
provides an end-point to remove a texarchive-notes.- Parameters:
id
- the id- Returns:
true
iff the texarchive-notes has existed
-
save
@POST @Path("/tex-archive-note") @UnitOfWork("siteDb") public TexArchiveNotes save(@NonNull @NonNull TexArchiveNotes notes) The methodsave
provides an end-point to create a notes object.- Parameters:
notes
- the notes object to store- Returns:
true
iff something has been removed
-