public class LeadsManagementRest extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Constructor and Description |
|---|
LeadsManagementRest(LeadsManagementService leadsManagementService,
LeadCaptureSettingsService leadCaptureSettingsService) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
add(javax.ws.rs.core.UriInfo uriInfo,
String headerToken,
FormInfo lead) |
javax.ws.rs.core.Response |
addComment(javax.ws.rs.core.UriInfo uriInfo,
long taskId,
String comment) |
javax.ws.rs.core.Response |
addPersonalTask(javax.ws.rs.core.UriInfo uriInfo,
PersonalTask task) |
javax.ws.rs.core.Response |
allowCORS(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
assign(javax.ws.rs.core.UriInfo uriInfo,
LeadDTO lead) |
javax.ws.rs.core.Response |
createLead(javax.ws.rs.core.UriInfo uriInfo,
LeadDTO lead) |
javax.ws.rs.core.Response |
deleteLead(javax.ws.rs.core.UriInfo uriInfo,
Long id) |
javax.ws.rs.core.Response |
deleteLeads(javax.ws.rs.core.UriInfo uriInfo,
List<Long> ids) |
javax.ws.rs.core.Response |
exportLeads(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getComments(javax.ws.rs.core.UriInfo uriInfo,
long taskId) |
javax.ws.rs.core.Response |
getLead(javax.ws.rs.core.UriInfo uriInfo,
Long id) |
javax.ws.rs.core.Response |
getLeads(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.Response |
getMarketers(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getPersonalTasks(javax.ws.rs.core.UriInfo uriInfo,
long id) |
javax.ws.rs.core.Response |
getResponses(javax.ws.rs.core.UriInfo uriInfo,
Long id) |
javax.ws.rs.core.Response |
getTask(javax.ws.rs.core.UriInfo uriInfo,
long taskId) |
javax.ws.rs.core.Response |
getTimeLine(javax.ws.rs.core.UriInfo uriInfo,
Long id) |
javax.ws.rs.core.Response |
importLeads(javax.ws.rs.core.UriInfo uriInfo,
List<FormInfo> leads) |
boolean |
isBlacklisted(String leadMail) |
javax.ws.rs.core.Response |
mergeZone(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
suspend(javax.ws.rs.core.UriInfo uriInfo,
Map<String,String> obj) |
javax.ws.rs.core.Response |
update(javax.ws.rs.core.UriInfo uriInfo,
Long id,
LeadDTO lead) |
javax.ws.rs.core.Response |
updateMethodes(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
updateStatus(javax.ws.rs.core.UriInfo uriInfo,
LeadDTO lead) |
javax.ws.rs.core.Response |
updateTask(javax.ws.rs.core.UriInfo uriInfo,
Long id,
PersonalTask task) |
public LeadsManagementRest(LeadsManagementService leadsManagementService, LeadCaptureSettingsService leadCaptureSettingsService)
public javax.ws.rs.core.Response allowCORS(@Context
javax.ws.rs.core.UriInfo uriInfo)
throws Exception
Exception@RolesAllowed(value="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
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response getLead(@Context javax.ws.rs.core.UriInfo uriInfo, Long id) throws Exception
Exceptionpublic javax.ws.rs.core.Response add(@Context
javax.ws.rs.core.UriInfo uriInfo,
@HeaderParam(value="token")
String headerToken,
FormInfo lead)
throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response deleteLead(@Context javax.ws.rs.core.UriInfo uriInfo, Long id) throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response deleteLeads(@Context javax.ws.rs.core.UriInfo uriInfo, List<Long> ids) throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response update(@Context javax.ws.rs.core.UriInfo uriInfo, Long id, LeadDTO lead) throws Exception
Exceptionpublic javax.ws.rs.core.Response suspend(@Context
javax.ws.rs.core.UriInfo uriInfo,
Map<String,String> obj)
throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response assign(@Context javax.ws.rs.core.UriInfo uriInfo, LeadDTO lead) throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response updateStatus(@Context javax.ws.rs.core.UriInfo uriInfo, LeadDTO lead) throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response getResponses(@Context javax.ws.rs.core.UriInfo uriInfo, Long id) throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response getTimeLine(@Context javax.ws.rs.core.UriInfo uriInfo, Long id) throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response addPersonalTask(@Context javax.ws.rs.core.UriInfo uriInfo, PersonalTask task) throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response updateTask(@Context javax.ws.rs.core.UriInfo uriInfo, Long id, PersonalTask task) throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response getPersonalTasks(@Context javax.ws.rs.core.UriInfo uriInfo, long id) throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response addComment(@Context javax.ws.rs.core.UriInfo uriInfo, long taskId, String comment) throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response getComments(@Context javax.ws.rs.core.UriInfo uriInfo, long taskId) throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response getTask(@Context javax.ws.rs.core.UriInfo uriInfo, long taskId) throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response getMarketers(@Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
Exceptionpublic boolean isBlacklisted(String leadMail)
@RolesAllowed(value="administrators") public javax.ws.rs.core.Response importLeads(@Context javax.ws.rs.core.UriInfo uriInfo, List<FormInfo> leads) throws Exception
Exception@RolesAllowed(value="administrators") public javax.ws.rs.core.Response exportLeads(@Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
Exception@RolesAllowed(value="ux-team") public javax.ws.rs.core.Response createLead(@Context javax.ws.rs.core.UriInfo uriInfo, LeadDTO lead) throws Exception
Exception@RolesAllowed(value="administrators") public javax.ws.rs.core.Response updateMethodes(@Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
Exception@RolesAllowed(value="administrators") public javax.ws.rs.core.Response mergeZone(@Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
ExceptionCopyright © 2003–2021 eXo Platform SAS. All rights reserved.