Class WorkflowAdminServiceImpl

java.lang.Object
org.alfresco.repo.workflow.WorkflowAdminServiceImpl
All Implemented Interfaces:
WorkflowAdminService

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

  • Constructor Details

    • WorkflowAdminServiceImpl

      public WorkflowAdminServiceImpl()
  • Method Details

    • isEngineEnabled

      public boolean isEngineEnabled(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(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(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(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(Collection<String> engines)
      Setter for Spring
      Parameters:
      engines - All engine Ids to enable.
    • getEnabledEngines

      public Set<String> getEnabledEngines()
      Returns:
      the enabledEngines
    • setVisibleEngines

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

      public Set<String> getVisibleEngines()
      Returns:
      the visibleEngines
    • setWorkflowEngineConfigurations

      public void setWorkflowEngineConfigurations(List<Properties> props)