Class TemplatesRestService

Object
TemplatesRestService

@DeclareRoles("deputy") @RolesAllowed("deputy") @Path("/administration/templates") public class TemplatesRestService extends Object
The REST service for dealing with Templates.
Author:
maartenl
  • Constructor Details

    • TemplatesRestService

      public TemplatesRestService()
  • Method Details

    • edit

      @PUT @Path("{id}") @Consumes("application/json") public void edit(@PathParam("id") Long id, AdminTemplate template)
    • find

      @GET @Path("{id}") @Produces("application/json") public String find(@PathParam("id") Long id)
    • findHistory

      @GET @Path("{id}/history") @Produces("application/json") public String findHistory(@PathParam("id") Long id)
    • findAll

      @GET @Produces("application/json") public String findAll()
    • getEntityManager

      protected EntityManager getEntityManager()