Class ProcessesServiceImpl
java.lang.Object
org.exoplatform.processes.service.ProcessesServiceImpl
- All Implemented Interfaces:
org.exoplatform.processes.service.ProcessesService
public class ProcessesServiceImpl
extends Object
implements org.exoplatform.processes.service.ProcessesService
-
Constructor Summary
ConstructorsConstructorDescriptionProcessesServiceImpl(org.exoplatform.processes.storage.ProcessesStorage processesStorage) -
Method Summary
Modifier and TypeMethodDescriptionintcountWorkFlows(org.exoplatform.processes.model.ProcessesFilter filter, long userIdentityId) intcountWorksByWorkflow(Long projectId, Boolean isCompleted) org.exoplatform.processes.model.WorkcreateWork(org.exoplatform.processes.model.Work work, long userId) org.exoplatform.processes.model.WorkcreateWorkDraft(org.exoplatform.processes.model.Work work, long userId) org.exoplatform.processes.model.WorkFlowcreateWorkFlow(org.exoplatform.processes.model.WorkFlow workFlow, long userId) voiddeleteWorkById(Long workId) voiddeleteWorkDraftById(Long draftId) voiddeleteWorkflowById(Long workflowId) List<org.exoplatform.processes.model.WorkStatus> org.exoplatform.processes.model.IllustrativeAttachmentgetIllustrationImageById(Long illustrationId) org.exoplatform.processes.model.WorkgetWorkById(long userIdentityId, Long workId) List<org.exoplatform.processes.model.Work> getWorkDrafts(long userIdentityId, org.exoplatform.processes.model.WorkFilter workFilter, int offset, int limit) org.exoplatform.processes.model.WorkFlowgetWorkFlow(long id) org.exoplatform.processes.model.WorkFlowgetWorkFlowByProjectId(long projectId) List<org.exoplatform.processes.model.WorkFlow> getWorkFlows(org.exoplatform.processes.model.ProcessesFilter filter, int offset, int limit, long userIdentityId) List<org.exoplatform.processes.model.Work> getWorks(long userIdentityId, org.exoplatform.processes.model.WorkFilter workFilter, int offset, int limit) org.exoplatform.processes.model.WorkupdateWork(org.exoplatform.processes.model.Work work, long userId) org.exoplatform.processes.model.WorkupdateWorkCompleted(Long workId, boolean completed) org.exoplatform.processes.model.WorkupdateWorkDraft(org.exoplatform.processes.model.Work work, long userId) org.exoplatform.processes.model.WorkFlowupdateWorkFlow(org.exoplatform.processes.model.WorkFlow workFlow, long userId)
-
Constructor Details
-
ProcessesServiceImpl
public ProcessesServiceImpl(org.exoplatform.processes.storage.ProcessesStorage processesStorage)
-
-
Method Details
-
getWorkFlows
public List<org.exoplatform.processes.model.WorkFlow> getWorkFlows(org.exoplatform.processes.model.ProcessesFilter filter, int offset, int limit, long userIdentityId) throws IllegalAccessException - Specified by:
getWorkFlowsin interfaceorg.exoplatform.processes.service.ProcessesService- Throws:
IllegalAccessException
-
countWorkFlows
public int countWorkFlows(org.exoplatform.processes.model.ProcessesFilter filter, long userIdentityId) throws IllegalAccessException - Specified by:
countWorkFlowsin interfaceorg.exoplatform.processes.service.ProcessesService- Throws:
IllegalAccessException
-
getWorkFlow
- Specified by:
getWorkFlowin interfaceorg.exoplatform.processes.service.ProcessesService- Throws:
IllegalAccessException
-
createWorkFlow
public org.exoplatform.processes.model.WorkFlow createWorkFlow(org.exoplatform.processes.model.WorkFlow workFlow, long userId) throws IllegalAccessException - Specified by:
createWorkFlowin interfaceorg.exoplatform.processes.service.ProcessesService- Throws:
IllegalAccessException
-
updateWorkFlow
public org.exoplatform.processes.model.WorkFlow updateWorkFlow(org.exoplatform.processes.model.WorkFlow workFlow, long userId) throws IllegalArgumentException, org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Specified by:
updateWorkFlowin interfaceorg.exoplatform.processes.service.ProcessesService- Throws:
IllegalArgumentExceptionorg.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
getWorks
public List<org.exoplatform.processes.model.Work> getWorks(long userIdentityId, org.exoplatform.processes.model.WorkFilter workFilter, int offset, int limit) throws Exception - Specified by:
getWorksin interfaceorg.exoplatform.processes.service.ProcessesService- Throws:
Exception
-
getWorkFlowByProjectId
public org.exoplatform.processes.model.WorkFlow getWorkFlowByProjectId(long projectId) - Specified by:
getWorkFlowByProjectIdin interfaceorg.exoplatform.processes.service.ProcessesService
-
createWork
public org.exoplatform.processes.model.Work createWork(org.exoplatform.processes.model.Work work, long userId) throws IllegalAccessException - Specified by:
createWorkin interfaceorg.exoplatform.processes.service.ProcessesService- Throws:
IllegalAccessException
-
updateWork
public org.exoplatform.processes.model.Work updateWork(org.exoplatform.processes.model.Work work, long userId) throws IllegalArgumentException, org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException - Specified by:
updateWorkin interfaceorg.exoplatform.processes.service.ProcessesService- Throws:
IllegalArgumentExceptionorg.exoplatform.commons.exception.ObjectNotFoundExceptionIllegalAccessException
-
deleteWorkflowById
- Specified by:
deleteWorkflowByIdin interfaceorg.exoplatform.processes.service.ProcessesService
-
countWorksByWorkflow
- Specified by:
countWorksByWorkflowin interfaceorg.exoplatform.processes.service.ProcessesService- Throws:
Exception
-
deleteWorkById
- Specified by:
deleteWorkByIdin interfaceorg.exoplatform.processes.service.ProcessesService
-
updateWorkCompleted
- Specified by:
updateWorkCompletedin interfaceorg.exoplatform.processes.service.ProcessesService
-
createWorkDraft
public org.exoplatform.processes.model.Work createWorkDraft(org.exoplatform.processes.model.Work work, long userId) throws IllegalArgumentException - Specified by:
createWorkDraftin interfaceorg.exoplatform.processes.service.ProcessesService- Throws:
IllegalArgumentException
-
updateWorkDraft
public org.exoplatform.processes.model.Work updateWorkDraft(org.exoplatform.processes.model.Work work, long userId) throws IllegalArgumentException, org.exoplatform.commons.exception.ObjectNotFoundException - Specified by:
updateWorkDraftin interfaceorg.exoplatform.processes.service.ProcessesService- Throws:
IllegalArgumentExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
getWorkDrafts
public List<org.exoplatform.processes.model.Work> getWorkDrafts(long userIdentityId, org.exoplatform.processes.model.WorkFilter workFilter, int offset, int limit) - Specified by:
getWorkDraftsin interfaceorg.exoplatform.processes.service.ProcessesService
-
deleteWorkDraftById
- Specified by:
deleteWorkDraftByIdin interfaceorg.exoplatform.processes.service.ProcessesService
-
getAvailableWorkStatuses
- Specified by:
getAvailableWorkStatusesin interfaceorg.exoplatform.processes.service.ProcessesService
-
getWorkById
- Specified by:
getWorkByIdin interfaceorg.exoplatform.processes.service.ProcessesService
-
getIllustrationImageById
public org.exoplatform.processes.model.IllustrativeAttachment getIllustrationImageById(Long illustrationId) throws org.exoplatform.commons.file.services.FileStorageException, org.exoplatform.commons.exception.ObjectNotFoundException, IOException - Specified by:
getIllustrationImageByIdin interfaceorg.exoplatform.processes.service.ProcessesService- Throws:
org.exoplatform.commons.file.services.FileStorageExceptionorg.exoplatform.commons.exception.ObjectNotFoundExceptionIOException
-