Class 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)  
    • 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:
        getWorkFlows 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
      • 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
      • start

        public void start()
        Specified by:
        start in interface org.picocontainer.Startable
      • createProcessSpace

        public void createProcessSpace​(org.exoplatform.portal.config.UserACL userACL)
                                throws Exception
        Throws:
        Exception
      • stop

        public void stop()
        Specified by:
        stop in interface org.picocontainer.Startable