Package org.ctan.site.resources.admin
Class Blacklist3Resource
java.lang.Object
org.ctan.site.resources.admin.Blacklist3Resource
The class
Blacklist3Resource contains the CRUD controller for
the guest book black list resource.-
Constructor Summary
ConstructorsConstructorDescriptionBlacklist3Resource(@NonNull BlacklistStore store) This is the constructor for the classBlacklist3Resource. -
Method Summary
Modifier and TypeMethodDescriptionThe methodcreateprovides an end-point to create a stop word.The methodretrieveprovides means to retrieve a stop word.The methodlistprovides means to retrieve a page of stop words.booleanThe methodremoveprovides an end-point to remove a stop word.
-
Constructor Details
-
Blacklist3Resource
This is the constructor for the classBlacklist3Resource.- Parameters:
store- the underlying store
-
-
Method Details
-
create
@POST @Path("/blacklist") @UnitOfWork("siteDb") public Blacklist create(@NonNull @NonNull Blacklist stopword) The methodcreateprovides an end-point to create a stop word.- Parameters:
stopword- the stop word object to store- Returns:
- the updated stopword
-
get
@GET @Path("/blacklist/{id}") @UnitOfWork("siteDb") public Blacklist get(@NonNull @PathParam("id") @NonNull Long id) The methodretrieveprovides means to retrieve a stop word.- Parameters:
id- the id- Returns:
trueiff the user exists
-
list
@GET @Path("/blacklists") @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 stop words.- Parameters:
q- the name patternpage- the pagesize- the page sizeorderBy- the orderasc- the indicator for ascending- Returns:
- the page for the blacklist or
null
-
remove
@DELETE @Path("/blacklist/{id}") @UnitOfWork("siteDb") public boolean remove(@NonNull @PathParam("id") @NonNull Long id) The methodremoveprovides an end-point to remove a stop word.- Parameters:
id- the id- Returns:
trueiff the user has existed
-