Package org.alfresco.repo.workflow
Class WorkflowAdminServiceImpl
- java.lang.Object
-
- org.alfresco.repo.workflow.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
-
-
Constructor Summary
Constructors Constructor Description WorkflowAdminServiceImpl()
-
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()booleanisEngineEnabled(java.lang.String engineId)Determines whether the engine with the given id is enabled.booleanisEngineVisible(java.lang.String engineId)Determines whether the workflow definitions are visible for the engine with the given id.voidsetEnabledEngines(java.util.Collection<java.lang.String> engines)Setter for SpringvoidsetEngineEnabled(java.lang.String engineId, boolean isEnabled)Enables/disables the engine with the given id.voidsetEngineVisibility(java.lang.String engineId, boolean isVisible)Sets the visiblity of workflow definitions for the engine with the given id.voidsetVisibleEngines(java.util.Collection<java.lang.String> engines)Setter for Spring.voidsetWorkflowEngineConfigurations(java.util.List<java.util.Properties> props)
-
-
-
Field Detail
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
ENGINE
public static final java.lang.String ENGINE
- See Also:
- Constant Field Values
-
ENABLED
public static final java.lang.String ENABLED
- See Also:
- Constant Field Values
-
VISIBLE
public static final java.lang.String VISIBLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isEngineEnabled
public boolean isEngineEnabled(java.lang.String engineId)
Determines whether the engine with the given id is enabled.- Specified by:
isEngineEnabledin interfaceWorkflowAdminService- 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:
setEngineEnabledin interfaceWorkflowAdminService- Parameters:
engineId- The id of a workflow engineisEnabled- 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:
isEngineVisiblein interfaceWorkflowAdminService- 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:
setEngineVisibilityin interfaceWorkflowAdminService- Parameters:
engineId- The id of a workflow engineisVisible- 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)
-
-