public class LeadsManagementService extends Object
| Constructor and Description |
|---|
LeadsManagementService(LeadDAO leadDAO,
FormDAO formDAO,
FieldDAO fieldDAO,
ResponseDAO responseDAO,
org.exoplatform.task.legacy.service.TaskService taskService,
org.exoplatform.task.legacy.service.StatusService statusService,
org.exoplatform.task.legacy.service.ProjectService projectService,
LeadCaptureSettingsService leadCaptureSettingsService,
org.exoplatform.services.listener.ListenerService listenerService) |
public LeadsManagementService(LeadDAO leadDAO, FormDAO formDAO, FieldDAO fieldDAO, ResponseDAO responseDAO, org.exoplatform.task.legacy.service.TaskService taskService, org.exoplatform.task.legacy.service.StatusService statusService, org.exoplatform.task.legacy.service.ProjectService projectService, LeadCaptureSettingsService leadCaptureSettingsService, org.exoplatform.services.listener.ListenerService listenerService)
public LeadEntity addLeadInfo(FormInfo leadInfo, boolean broadcast) throws Exception
Exceptionpublic LeadEntity createLead(LeadDTO lead)
public void deleteLead(LeadEntity lead) throws Exception
Exceptionpublic void deleteAllLeads(List<LeadEntity> leadEntityList) throws Exception
Exceptionpublic void assigneLead(Long leadId, String assignee) throws Exception
Exceptionpublic LeadEntity suspendLead(String mail, String cause) throws Exception
Exceptionpublic LeadEntity updateStatus(Long leadId, String status) throws Exception
Exceptionpublic LeadsAccessList getLeads(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)
public org.json.JSONArray getResponses(long leadId)
public org.json.JSONArray getTimeLine(long leadId)
public void addResponse(ResponseDTO responseDTO, LeadEntity leadEntity) throws Exception
Exceptionpublic List<ResponseEntity> getAllResponses()
public FormEntity createForm(FormEntity formEntity)
public FormEntity updateForm(FormEntity formEntity)
public ResponseEntity createResponse(ResponseEntity responseEntity)
public LeadEntity getLeadbyId(long id)
public LeadEntity getLeadByMail(String mail)
public LeadEntity getLeadByTask(Long taslId)
public List<LeadEntity> getLeadsByStatus(String status)
public org.json.JSONArray getTaskComments(long taskId)
public org.exoplatform.task.domain.Task getTask(long taskId)
throws Exception
Exceptionpublic org.json.JSONObject addTaskComment(long taskId,
String username,
String comment)
throws Exception
Exceptionpublic void updateTaskStatus(Long taskId, String status) throws Exception
Exceptionpublic org.exoplatform.task.domain.Task createTask(LeadEntity lead) throws Exception
Exceptionpublic List<PersonalTask> getPersonalTasks(long id, String userId) throws Exception
Exceptionpublic PersonalTask createPersonalTask(PersonalTask personalTask) throws Exception
Exceptionpublic org.exoplatform.task.domain.Task updatePersonalTask(PersonalTask pTask) throws Exception
Exceptionpublic LeadEntity mergeLead(LeadEntity leadEntity, LeadDTO leadDTO)
public org.json.JSONObject toFormJson(FormEntity formEntity) throws org.json.JSONException
org.json.JSONExceptionpublic LeadDTO toLeadDto(LeadEntity leadEntity)
public LeadEntity toLeadEntity(LeadDTO leadDTO)
public FieldDTO toFieldDto(FieldEntity fieldEntity)
public FieldEntity toFieldEntity(FieldDTO fieldDTO)
public FormDTO toFormDto(FormEntity formEntity)
public FormEntity toFormEntity(FormDTO formDTO)
public ResponseDTO toResponseDto(ResponseEntity responseEntity)
public ResponseEntity toResponseEntity(ResponseDTO responseDTO)
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.