Class MailTemplatesManagementRest

  • All Implemented Interfaces:
    org.exoplatform.services.rest.resource.ResourceContainer

    public class MailTemplatesManagementRest
    extends Object
    implements org.exoplatform.services.rest.resource.ResourceContainer
    • Method Detail

      • getTemplates

        @RolesAllowed("ux-team")
        public javax.ws.rs.core.Response getTemplates​(@Context
                                                      javax.ws.rs.core.UriInfo uriInfo)
                                               throws Exception
        Throws:
        Exception
      • add

        @RolesAllowed("ux-team")
        public javax.ws.rs.core.Response add​(@Context
                                             javax.ws.rs.core.UriInfo uriInfo,
                                             MailTemplateDTO templateDTO)
                                      throws Exception
        Throws:
        Exception
      • delete

        @RolesAllowed("ux-team")
        public javax.ws.rs.core.Response delete​(@Context
                                                javax.ws.rs.core.UriInfo uriInfo,
                                                Long id)
                                         throws Exception
        Throws:
        Exception
      • update

        @RolesAllowed("ux-team")
        public javax.ws.rs.core.Response update​(@Context
                                                javax.ws.rs.core.UriInfo uriInfo,
                                                MailTemplateDTO templateDTO)
                                         throws Exception
        Throws:
        Exception
      • importTemplates

        @RolesAllowed("administrators")
        public javax.ws.rs.core.Response importTemplates​(@Context
                                                         javax.ws.rs.core.UriInfo uriInfo,
                                                         List<MailTemplateDTO> templateDTOs)
                                                  throws Exception
        Throws:
        Exception