Class LeadsManagementRest

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

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

      • allowCORS

        public javax.ws.rs.core.Response allowCORS​(@Context
                                                   javax.ws.rs.core.UriInfo uriInfo)
                                            throws Exception
        Throws:
        Exception
      • getLead

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

        public javax.ws.rs.core.Response add​(@Context
                                             javax.ws.rs.core.UriInfo uriInfo,
                                             @HeaderParam("token")
                                             String headerToken,
                                             FormInfo lead)
                                      throws Exception
        Throws:
        Exception
      • deleteLead

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

        @RolesAllowed("ux-team")
        public javax.ws.rs.core.Response deleteLeads​(@Context
                                                     javax.ws.rs.core.UriInfo uriInfo,
                                                     List<Long> ids)
                                              throws Exception
        Throws:
        Exception
      • update

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

        @RolesAllowed("ux-team")
        public javax.ws.rs.core.Response assign​(@Context
                                                javax.ws.rs.core.UriInfo uriInfo,
                                                LeadDTO lead)
                                         throws Exception
        Throws:
        Exception
      • updateStatus

        @RolesAllowed("ux-team")
        public javax.ws.rs.core.Response updateStatus​(@Context
                                                      javax.ws.rs.core.UriInfo uriInfo,
                                                      LeadDTO lead)
                                               throws Exception
        Throws:
        Exception
      • resetTask

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

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

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

        @RolesAllowed("ux-team")
        public javax.ws.rs.core.Response addPersonalTask​(@Context
                                                         javax.ws.rs.core.UriInfo uriInfo,
                                                         PersonalTask task)
                                                  throws Exception
        Throws:
        Exception
      • updateTask

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

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

        @RolesAllowed("ux-team")
        public javax.ws.rs.core.Response addComment​(@Context
                                                    javax.ws.rs.core.UriInfo uriInfo,
                                                    long taskId,
                                                    String comment)
                                             throws Exception
        Throws:
        Exception
      • getComments

        @RolesAllowed("ux-team")
        public javax.ws.rs.core.Response getComments​(@Context
                                                     javax.ws.rs.core.UriInfo uriInfo,
                                                     long taskId)
                                              throws Exception
        Throws:
        Exception
      • getTask

        @RolesAllowed("ux-team")
        public javax.ws.rs.core.Response getTask​(@Context
                                                 javax.ws.rs.core.UriInfo uriInfo,
                                                 long taskId)
                                          throws Exception
        Throws:
        Exception
      • getMarketers

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

        public boolean isBlacklisted​(LeadDTO lead)
      • importLeads

        @RolesAllowed("administrators")
        public javax.ws.rs.core.Response importLeads​(@Context
                                                     javax.ws.rs.core.UriInfo uriInfo,
                                                     List<FormInfo> leads)
                                              throws Exception
        Throws:
        Exception
      • exportLeads

        @RolesAllowed("administrators")
        public javax.ws.rs.core.Response exportLeads​(@Context
                                                     javax.ws.rs.core.UriInfo uriInfo)
                                              throws Exception
        Throws:
        Exception
      • createLead

        @RolesAllowed("ux-team")
        public javax.ws.rs.core.Response createLead​(@Context
                                                    javax.ws.rs.core.UriInfo uriInfo,
                                                    LeadDTO lead)
                                             throws Exception
        Throws:
        Exception
      • updateMethodes

        @RolesAllowed("administrators")
        public javax.ws.rs.core.Response updateMethodes​(@Context
                                                        javax.ws.rs.core.UriInfo uriInfo)
                                                 throws Exception
        Throws:
        Exception
      • mergeZone

        @RolesAllowed("administrators")
        public javax.ws.rs.core.Response mergeZone​(@Context
                                                   javax.ws.rs.core.UriInfo uriInfo)
                                            throws Exception
        Throws:
        Exception