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 |
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 |
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) |
javax.ws.rs.core.Response |
getMarketers(javax.ws.rs.core.UriInfo uriInfo) |
javax.ws.rs.core.Response |
getResponses(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 |
suspend(javax.ws.rs.core.UriInfo uriInfo,
String headerToken,
Long id) |
javax.ws.rs.core.Response |
update(javax.ws.rs.core.UriInfo uriInfo,
Long id,
LeadDTO lead) |
javax.ws.rs.core.Response |
updateStatus(javax.ws.rs.core.UriInfo uriInfo,
LeadDTO lead) |
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) 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 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,
@HeaderParam(value="token")
String headerToken,
Long id)
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 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 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
ExceptionCopyright © 2003–2020 eXo Platform SAS. All rights reserved.