Class Lug3Resource
java.lang.Object
org.ctan.site.resources.catalogue.Lug3Resource
@Path("/3.0")
@Produces({"application/json","application/xml"})
public class Lug3Resource
extends Object
The class
Lug3Resource contains the controller for the lugs
resource.-
Constructor Summary
ConstructorsConstructorDescriptionLug3Resource(@NonNull LugStore store) This is the constructor for the classLug3Resource. -
Method Summary
-
Constructor Details
-
Lug3Resource
This is the constructor for the classLug3Resource.- Parameters:
store- the underlying store
-
-
Method Details
-
getAllLugs
The methodgetAllLugsprovides means to retrieve a list of all lugs.- Returns:
- a list of matching lug summaries
-
getLugs
@GET @Path("/lugs/{pattern}") @PermitAll @UnitOfWork("siteDb") public List<Lug> getLugs(@NonNull @PathParam("pattern") @NonNull String pattern) The methodgetLugsprovides means to retrieve a list of lugs starting with a given pattern.- Parameters:
pattern- the initial string of the key- Returns:
- a list of matching lug summaries
-