public class LeadsManagementService extends Object
| Constructor and Description |
|---|
LeadsManagementService(LeadDAO leadDAO,
FormDAO formDAO,
FieldDAO fieldDAO,
ResponseDAO responseDAO,
org.exoplatform.task.service.TaskService taskService,
org.exoplatform.task.service.StatusService statusService,
org.exoplatform.task.service.ProjectService projectService,
LeadCaptureSettingsService leadCaptureSettingsService,
org.exoplatform.services.listener.ListenerService listenerService) |
public LeadsManagementService(LeadDAO leadDAO, FormDAO formDAO, FieldDAO fieldDAO, ResponseDAO responseDAO, org.exoplatform.task.service.TaskService taskService, org.exoplatform.task.service.StatusService statusService, org.exoplatform.task.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 assigneLead(Long leadId, String assignee) throws Exception
Exceptionpublic LeadEntity updateStatus(Long leadId, String status) throws Exception
Exceptionpublic org.json.JSONArray getResponses(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 org.json.JSONArray getTaskComments(long taskId)
public 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 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.