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

@Path("/widgets/MailingList/{pk}") public class MailingListResource extends AbstractRestResource
  • Constructor Details

  • 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

      @Autowired(required=false) public void setAdditionalAllowedPaths(List<String> additionalAllowedPaths)