Package org.alfresco.repo.workflow
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
-
-
Constructor Summary
Constructors Constructor Description WorkflowAdminServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getEnabledEngines()Set<String>getVisibleEngines()booleanisEngineEnabled(String engineId)Determines whether the engine with the given id is enabled.booleanisEngineVisible(String engineId)Determines whether the workflow definitions are visible for the engine with the given id.voidsetEnabledEngines(Collection<String> engines)Setter for SpringvoidsetEngineEnabled(String engineId, boolean isEnabled)Enables/disables the engine with the given id.voidsetEngineVisibility(String engineId, boolean isVisible)Sets the visiblity of workflow definitions for the engine with the given id.voidsetVisibleEngines(Collection<String> engines)Setter for Spring.voidsetWorkflowEngineConfigurations(List<Properties> props)
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
ENGINE
public static final String ENGINE
- See Also:
- Constant Field Values
-
ENABLED
public static final String ENABLED
- See Also:
- Constant Field Values
-
VISIBLE
public static final String VISIBLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
isEngineEnabled
public boolean isEngineEnabled(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(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(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(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(Collection<String> engines)
Setter for Spring- Parameters:
engines- All engine Ids to enable.
-
setVisibleEngines
public void setVisibleEngines(Collection<String> engines)
Setter for Spring.- Parameters:
engines- All engineIds to set visible.
-
setWorkflowEngineConfigurations
public void setWorkflowEngineConfigurations(List<Properties> props)
-
-