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

    Constructors
    Constructor
    Description
    ProcessesServiceImpl(org.exoplatform.processes.storage.ProcessesStorage processesStorage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    countWorkFlows(org.exoplatform.processes.model.ProcessesFilter filter, long userIdentityId)
     
    int
    countWorksByWorkflow(Long projectId, Boolean isCompleted)
    org.exoplatform.processes.model.Work
    createWork(org.exoplatform.processes.model.Work work, long userId)
    org.exoplatform.processes.model.Work
    createWorkDraft(org.exoplatform.processes.model.Work work, long userId)
    org.exoplatform.processes.model.WorkFlow
    createWorkFlow(org.exoplatform.processes.model.WorkFlow workFlow, long userId)
     
    void
    void
    void
    List<org.exoplatform.processes.model.WorkStatus>
    org.exoplatform.processes.model.IllustrativeAttachment
    org.exoplatform.processes.model.Work
    getWorkById(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.WorkFlow
    getWorkFlow(long id)
     
    org.exoplatform.processes.model.WorkFlow
    getWorkFlowByProjectId(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.Work
    updateWork(org.exoplatform.processes.model.Work work, long userId)
     
    org.exoplatform.processes.model.Work
    updateWorkCompleted(Long workId, boolean completed)
    org.exoplatform.processes.model.Work
    updateWorkDraft(org.exoplatform.processes.model.Work work, long userId)
    org.exoplatform.processes.model.WorkFlow
    updateWorkFlow(org.exoplatform.processes.model.WorkFlow workFlow, long userId)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      getWorkFlows in interface org.exoplatform.processes.service.ProcessesService
      Throws:
      IllegalAccessException
    • countWorkFlows

      public int countWorkFlows(org.exoplatform.processes.model.ProcessesFilter filter, long userIdentityId) throws IllegalAccessException
      Specified by:
      countWorkFlows in interface org.exoplatform.processes.service.ProcessesService
      Throws:
      IllegalAccessException
    • getWorkFlow

      public org.exoplatform.processes.model.WorkFlow getWorkFlow(long id) throws IllegalAccessException
      Specified by:
      getWorkFlow in interface org.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:
      createWorkFlow in interface org.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:
      updateWorkFlow in interface org.exoplatform.processes.service.ProcessesService
      Throws:
      IllegalArgumentException
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • 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:
      getWorks in interface org.exoplatform.processes.service.ProcessesService
      Throws:
      Exception
    • getWorkFlowByProjectId

      public org.exoplatform.processes.model.WorkFlow getWorkFlowByProjectId(long projectId)
      Specified by:
      getWorkFlowByProjectId in interface org.exoplatform.processes.service.ProcessesService
    • createWork

      public org.exoplatform.processes.model.Work createWork(org.exoplatform.processes.model.Work work, long userId) throws IllegalAccessException
      Specified by:
      createWork in interface org.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:
      updateWork in interface org.exoplatform.processes.service.ProcessesService
      Throws:
      IllegalArgumentException
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • deleteWorkflowById

      public void deleteWorkflowById(Long workflowId)
      Specified by:
      deleteWorkflowById in interface org.exoplatform.processes.service.ProcessesService
    • countWorksByWorkflow

      public int countWorksByWorkflow(Long projectId, Boolean isCompleted) throws Exception
      Specified by:
      countWorksByWorkflow in interface org.exoplatform.processes.service.ProcessesService
      Throws:
      Exception
    • deleteWorkById

      public void deleteWorkById(Long workId)
      Specified by:
      deleteWorkById in interface org.exoplatform.processes.service.ProcessesService
    • updateWorkCompleted

      public org.exoplatform.processes.model.Work updateWorkCompleted(Long workId, boolean completed)
      Specified by:
      updateWorkCompleted in interface org.exoplatform.processes.service.ProcessesService
    • createWorkDraft

      public org.exoplatform.processes.model.Work createWorkDraft(org.exoplatform.processes.model.Work work, long userId) throws IllegalArgumentException
      Specified by:
      createWorkDraft in interface org.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:
      updateWorkDraft in interface org.exoplatform.processes.service.ProcessesService
      Throws:
      IllegalArgumentException
      org.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:
      getWorkDrafts in interface org.exoplatform.processes.service.ProcessesService
    • deleteWorkDraftById

      public void deleteWorkDraftById(Long draftId)
      Specified by:
      deleteWorkDraftById in interface org.exoplatform.processes.service.ProcessesService
    • getAvailableWorkStatuses

      public List<org.exoplatform.processes.model.WorkStatus> getAvailableWorkStatuses()
      Specified by:
      getAvailableWorkStatuses in interface org.exoplatform.processes.service.ProcessesService
    • getWorkById

      public org.exoplatform.processes.model.Work getWorkById(long userIdentityId, Long workId)
      Specified by:
      getWorkById in interface org.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:
      getIllustrationImageById in interface org.exoplatform.processes.service.ProcessesService
      Throws:
      org.exoplatform.commons.file.services.FileStorageException
      org.exoplatform.commons.exception.ObjectNotFoundException
      IOException