Package org.apache.unomi.rest.endpoints
Class UserListServiceEndPoint
java.lang.Object
org.apache.unomi.rest.endpoints.UserListServiceEndPoint
@Produces("application/json")
@Consumes("application/json")
@Path("/userList")
public class UserListServiceEndPoint
extends Object
A JAX-RS endpoint to manage
UserLists.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUserListsMetadatas(int offset, int size, String sortBy) Retrieves the 50 firstUserListmetadatas.voidsetUserListService(UserListService userListService)
-
Constructor Details
-
UserListServiceEndPoint
public UserListServiceEndPoint()
-
-
Method Details
-
setUserListService
-
getUserListsMetadatas
@GET @Path("/") public List<Metadata> getUserListsMetadatas(@QueryParam("offset") @DefaultValue("0") int offset, @QueryParam("size") @DefaultValue("50") int size, @QueryParam("sort") String sortBy) Retrieves the 50 firstUserListmetadatas.- Parameters:
offset- zero or a positive integer specifying the position of the first element in the total ordered collection of matching elementssize- a positive integer specifying how many matching elements should be retrieved or-1if all of them should be retrievedsortBy- an optional (nullif no sorting is required) String of comma (,) separated property names on which ordering should be performed, ordering elements according to the property order in the String, considering each in turn and moving on to the next one in case of equality of all preceding ones. Each property name is optionally followed by a column (:) and an order specifier:ascordesc.- Returns:
- a List of the 50 first
UserListmetadata
-