Class LeadsManagementService
java.lang.Object
org.exoplatform.leadcapture.services.LeadsManagementService
-
Constructor Summary
ConstructorsConstructorDescriptionLeadsManagementService(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, org.exoplatform.task.service.LabelService labelService, org.exoplatform.task.service.CommentService commentService, LeadCaptureSettingsService leadCaptureSettingsService, org.exoplatform.services.listener.ListenerService listenerService) -
Method Summary
Modifier and TypeMethodDescriptionaddLeadInfo(FormInfo leadInfo, boolean broadcast) voidaddResponse(ResponseDTO responseDTO, LeadEntity leadEntity) org.json.JSONObjectaddTaskComment(long taskId, String username, String comment) voidassigneLead(Long leadId, String assignee) static StringbuildTaskURL(org.exoplatform.task.dto.TaskDto task) voidcompleteTask(Long id) createForm(FormEntity formEntity) createLead(LeadDTO lead) createLead(LeadDTO lead, String creator) createPersonalTask(PersonalTask personalTask) createResponse(ResponseEntity responseEntity) org.exoplatform.task.dto.TaskDtocreateTask(LeadEntity lead) voiddeleteAllLeads(List<LeadEntity> leadEntityList) voiddeleteLead(LeadEntity lead) getLeadbyId(long id) getLeadByMail(String mail) getLeadByTask(Long taslId) getLeads()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) getLeadsByStatus(String status) getPersonalTasks(long id, String userId) org.json.JSONArraygetResponses(long leadId) org.exoplatform.task.dto.TaskDtogetTask(long taskId) org.json.JSONArraygetTaskComments(long taskId) org.json.JSONArraygetTimeLine(long leadId) mergeLead(LeadEntity leadEntity, LeadDTO leadDTO) booleanvoidsuspendLead(String mail, String cause) toFieldDto(FieldEntity fieldEntity) toFieldEntity(FieldDTO fieldDTO) toFormDto(FormEntity formEntity) toFormEntity(FormDTO formDTO) org.json.JSONObjecttoFormJson(FormEntity formEntity) toLeadDto(LeadEntity leadEntity) toLeadEntity(LeadDTO leadDTO) toResponseDto(ResponseEntity responseEntity) toResponseEntity(ResponseDTO responseDTO) updateForm(FormEntity formEntity) voidupdateLead(LeadDTO lead) booleanorg.exoplatform.task.dto.TaskDtoupdatePersonalTask(PersonalTask pTask) updateStatus(Long leadId, String status, String userName) voidupdateTaskStatus(Long taskId, String status)
-
Constructor Details
-
LeadsManagementService
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, org.exoplatform.task.service.LabelService labelService, org.exoplatform.task.service.CommentService commentService, LeadCaptureSettingsService leadCaptureSettingsService, org.exoplatform.services.listener.ListenerService listenerService)
-
-
Method Details
-
addLeadInfo
- Throws:
Exception
-
createLead
-
createLead
- Throws:
Exception
-
deleteLead
- Throws:
Exception
-
deleteAllLeads
- Throws:
Exception
-
updateLead
- Throws:
Exception
-
assigneLead
- Throws:
Exception
-
resetTask
- Throws:
Exception
-
suspendLead
- Throws:
Exception
-
updateStatus
- Throws:
Exception
-
buildTaskURL
-
getLeads
-
getLeads
-
getResponses
public org.json.JSONArray getResponses(long leadId) -
getTimeLine
public org.json.JSONArray getTimeLine(long leadId) -
addResponse
- Throws:
Exception
-
getAllResponses
-
createForm
-
updateForm
-
createResponse
-
getLeadbyId
-
getLeadByMail
-
getLeadByTask
-
getLeadsByStatus
-
getTaskComments
public org.json.JSONArray getTaskComments(long taskId) -
getTask
- Throws:
Exception
-
addTaskComment
public org.json.JSONObject addTaskComment(long taskId, String username, String comment) throws Exception - Throws:
Exception
-
updateTaskStatus
- Throws:
Exception
-
createTask
- Throws:
Exception
-
completeTask
- Throws:
Exception
-
getPersonalTasks
- Throws:
Exception
-
createPersonalTask
- Throws:
Exception
-
updatePersonalTask
- Throws:
Exception
-
mergeLead
-
toFormJson
- Throws:
org.json.JSONException
-
toLeadDto
-
toLeadEntity
-
toFieldDto
-
toFieldEntity
-
toFormDto
-
toFormEntity
-
toResponseDto
-
toResponseEntity
-
updateMethodes
- Throws:
Exception
-
mergezone
- Throws:
Exception
-