Package org.exoplatform.leadcapture.rest
Class LeadsManagementRest
java.lang.Object
org.exoplatform.leadcapture.rest.LeadsManagementRest
- All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer
public class LeadsManagementRest
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer
-
Constructor Summary
ConstructorsConstructorDescriptionLeadsManagementRest(LeadsManagementService leadsManagementService, LeadCaptureSettingsService leadCaptureSettingsService) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Responsejavax.ws.rs.core.ResponseaddComment(javax.ws.rs.core.UriInfo uriInfo, long taskId, String comment) javax.ws.rs.core.ResponseaddPersonalTask(javax.ws.rs.core.UriInfo uriInfo, PersonalTask task) javax.ws.rs.core.ResponseallowCORS(javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsecreateLead(javax.ws.rs.core.UriInfo uriInfo, LeadDTO lead) javax.ws.rs.core.ResponsedeleteLead(javax.ws.rs.core.UriInfo uriInfo, Long id) javax.ws.rs.core.ResponsedeleteLeads(javax.ws.rs.core.UriInfo uriInfo, List<Long> ids) javax.ws.rs.core.ResponseexportLeads(javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsegetComments(javax.ws.rs.core.UriInfo uriInfo, long taskId) javax.ws.rs.core.Responsejavax.ws.rs.core.ResponsegetLeads(javax.ws.rs.core.UriInfo uriInfo, String search, String status, String owner, String captureMethod, String from, String to, String zone, int min, int max, Boolean notassigned, String sortBy, Boolean sortDesc, int page, int limit, Boolean export) javax.ws.rs.core.ResponsegetMarketers(javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponsegetPersonalTasks(javax.ws.rs.core.UriInfo uriInfo, long id) javax.ws.rs.core.ResponsegetResponses(javax.ws.rs.core.UriInfo uriInfo, Long id) javax.ws.rs.core.ResponsegetTask(javax.ws.rs.core.UriInfo uriInfo, long taskId) javax.ws.rs.core.ResponsegetTimeLine(javax.ws.rs.core.UriInfo uriInfo, Long id) javax.ws.rs.core.ResponseimportLeads(javax.ws.rs.core.UriInfo uriInfo, List<FormInfo> leads) booleanisBlacklisted(LeadDTO lead) javax.ws.rs.core.ResponsemergeZone(javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.Responsejavax.ws.rs.core.Responsejavax.ws.rs.core.Responsejavax.ws.rs.core.ResponseupdateMethodes(javax.ws.rs.core.UriInfo uriInfo) javax.ws.rs.core.ResponseupdateStatus(javax.ws.rs.core.UriInfo uriInfo, LeadDTO lead) javax.ws.rs.core.ResponseupdateTask(javax.ws.rs.core.UriInfo uriInfo, Long id, PersonalTask task)
-
Constructor Details
-
LeadsManagementRest
public LeadsManagementRest(LeadsManagementService leadsManagementService, LeadCaptureSettingsService leadCaptureSettingsService)
-
-
Method Details
-
allowCORS
public javax.ws.rs.core.Response allowCORS(@Context javax.ws.rs.core.UriInfo uriInfo) throws Exception - Throws:
Exception
-
getLeads
@RolesAllowed("ux-team") public javax.ws.rs.core.Response getLeads(@Context javax.ws.rs.core.UriInfo uriInfo, String search, String status, String owner, String captureMethod, String from, String to, String zone, int min, int max, Boolean notassigned, String sortBy, Boolean sortDesc, int page, int limit, Boolean export) 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
-
suspend
public javax.ws.rs.core.Response suspend(@Context javax.ws.rs.core.UriInfo uriInfo, Map<String, String> obj) 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
-
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
-