Class ProcessesServiceImpl
- java.lang.Object
-
- org.exoplatform.processes.service.ProcessesServiceImpl
-
- All Implemented Interfaces:
org.exoplatform.processes.service.ProcessesService,org.picocontainer.Startable
public class ProcessesServiceImpl extends Object implements org.exoplatform.processes.service.ProcessesService, org.picocontainer.Startable
-
-
Constructor Summary
Constructors Constructor Description ProcessesServiceImpl(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.processes.storage.ProcessesStorage processesStorage, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.services.organization.OrganizationService organizationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcountWorksByWorkflow(Long projectId, Boolean isCompleted)voidcreateProcessSpace(org.exoplatform.portal.config.UserACL userACL)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>getAvailableWorkStatuses()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)voidstart()voidstop()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 Detail
-
ProcessesServiceImpl
public ProcessesServiceImpl(org.exoplatform.container.xml.InitParams initParams, org.exoplatform.processes.storage.ProcessesStorage processesStorage, org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.services.organization.OrganizationService organizationService)
-
-
Method Detail
-
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
-
getWorkFlow
public org.exoplatform.processes.model.WorkFlow getWorkFlow(long id) throws IllegalAccessException- 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
public void deleteWorkflowById(Long workflowId)
- Specified by:
deleteWorkflowByIdin interfaceorg.exoplatform.processes.service.ProcessesService
-
countWorksByWorkflow
public int countWorksByWorkflow(Long projectId, Boolean isCompleted) throws Exception
- Specified by:
countWorksByWorkflowin interfaceorg.exoplatform.processes.service.ProcessesService- Throws:
Exception
-
deleteWorkById
public void deleteWorkById(Long workId)
- Specified by:
deleteWorkByIdin interfaceorg.exoplatform.processes.service.ProcessesService
-
updateWorkCompleted
public org.exoplatform.processes.model.Work updateWorkCompleted(Long workId, boolean completed)
- 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
public void deleteWorkDraftById(Long draftId)
- Specified by:
deleteWorkDraftByIdin interfaceorg.exoplatform.processes.service.ProcessesService
-
getAvailableWorkStatuses
public List<org.exoplatform.processes.model.WorkStatus> getAvailableWorkStatuses()
- Specified by:
getAvailableWorkStatusesin interfaceorg.exoplatform.processes.service.ProcessesService
-
getWorkById
public org.exoplatform.processes.model.Work getWorkById(long userIdentityId, Long workId)- 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
-
start
public void start()
- Specified by:
startin interfaceorg.picocontainer.Startable
-
createProcessSpace
public void createProcessSpace(org.exoplatform.portal.config.UserACL userACL) throws Exception- Throws:
Exception
-
stop
public void stop()
- Specified by:
stopin interfaceorg.picocontainer.Startable
-
-