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
-
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
-
add
-
deleteLead
-
deleteLeads
-
update
-
suspend
-
assign
-
updateStatus
-
resetTask
-
getResponses
-
getTimeLine
-
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
-
addComment
-
getComments
-
getTask
-
getMarketers
-
isBlacklisted
-
importLeads
-
exportLeads
-
createLead
-
updateMethodes
-
mergeZone
-