Class WorkflowAdminServiceImpl

  • All Implemented Interfaces:
    WorkflowAdminService

    public class WorkflowAdminServiceImpl
    extends java.lang.Object
    implements WorkflowAdminService
    Default implementation of the workflow admin service.
    Since:
    4.0
    Author:
    Gavin Cornwell, Nick Smith
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ENABLED  
      static java.lang.String ENGINE  
      static java.lang.String NAME  
      static java.lang.String VISIBLE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getEnabledEngines()  
      java.util.Set<java.lang.String> getVisibleEngines()  
      boolean isEngineEnabled​(java.lang.String engineId)
      Determines whether the engine with the given id is enabled.
      boolean isEngineVisible​(java.lang.String engineId)
      Determines whether the workflow definitions are visible for the engine with the given id.
      void setEnabledEngines​(java.util.Collection<java.lang.String> engines)
      Setter for Spring
      void setEngineEnabled​(java.lang.String engineId, boolean isEnabled)
      Enables/disables the engine with the given id.
      void setEngineVisibility​(java.lang.String engineId, boolean isVisible)
      Sets the visiblity of workflow definitions for the engine with the given id.
      void setVisibleEngines​(java.util.Collection<java.lang.String> engines)
      Setter for Spring.
      void setWorkflowEngineConfigurations​(java.util.List<java.util.Properties> props)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WorkflowAdminServiceImpl

        public WorkflowAdminServiceImpl()
    • Method Detail

      • isEngineEnabled

        public boolean isEngineEnabled​(java.lang.String engineId)
        Determines whether the engine with the given id is enabled.
        Specified by:
        isEngineEnabled in interface WorkflowAdminService
        Parameters:
        engineId - The id of a workflow engine
        Returns:
        true if the engine id is valid and is enabled
      • setEngineEnabled

        public void setEngineEnabled​(java.lang.String engineId,
                                     boolean isEnabled)
        Enables/disables the engine with the given id.
        Specified by:
        setEngineEnabled in interface WorkflowAdminService
        Parameters:
        engineId - The id of a workflow engine
        isEnabled - true to enable the engine, false to disable
      • isEngineVisible

        public boolean isEngineVisible​(java.lang.String engineId)
        Determines whether the workflow definitions are visible for the engine with the given id. NOTE: Workflow definitions can always be retrieved directly i.e. via name or id
        Specified by:
        isEngineVisible in interface WorkflowAdminService
        Parameters:
        engineId - The id of a workflow engine
        Returns:
        true if the definitions are visible
      • setEngineVisibility

        public void setEngineVisibility​(java.lang.String engineId,
                                        boolean isVisible)
        Sets the visiblity of workflow definitions for the engine with the given id. NOTE: Workflow definitions can always be retrieved directly i.e. via name or id
        Specified by:
        setEngineVisibility in interface WorkflowAdminService
        Parameters:
        engineId - The id of a workflow engine
        isVisible - true if the definitions are visible
      • setEnabledEngines

        public void setEnabledEngines​(java.util.Collection<java.lang.String> engines)
        Setter for Spring
        Parameters:
        engines - All engine Ids to enable.
      • getEnabledEngines

        public java.util.Set<java.lang.String> getEnabledEngines()
        Returns:
        the enabledEngines
      • setVisibleEngines

        public void setVisibleEngines​(java.util.Collection<java.lang.String> engines)
        Setter for Spring.
        Parameters:
        engines - All engineIds to set visible.
      • getVisibleEngines

        public java.util.Set<java.lang.String> getVisibleEngines()
        Returns:
        the visibleEngines
      • setWorkflowEngineConfigurations

        public void setWorkflowEngineConfigurations​(java.util.List<java.util.Properties> props)