Class MailingListResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.optional.event.impl.widget.mailinglist.MailingListResource
- All Implemented Interfaces:
RestResource
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionMailingListResource
(Context context, RestSearchService restSearchService, QueryBuilderFactory queryBuilderFactory, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescriptioncountRequirements
(String eventPk) void
setAdditionalAllowedPaths
(List<String> additionalAllowedPaths) Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
MailingListResource
public MailingListResource(Context context, RestSearchService restSearchService, QueryBuilderFactory queryBuilderFactory, SecurityManager securityManager)
-
-
Method Details
-
getUsers
@GET @Path("/users") @Produces("application/json") public CollectionBean getUsers(@PathParam("pk") String eventPk) - Parameters:
eventPk
- the key of the event to load from- Returns:
- the collection bean filled with all users found
-
countRequirements
@GET @Path("/users/count") @Produces("application/json") public CountBean countRequirements(@PathParam("pk") String eventPk) - Parameters:
eventPk
- the key of the event to load from- Returns:
- the count bean filled with all users found
-
setAdditionalAllowedPaths
-