org.alfresco.repo.workflow
Class WorkflowAdminServiceImpl

java.lang.Object
  extended by 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

Field Summary
static java.lang.String ENABLED
           
static java.lang.String ENGINE
           
static java.lang.String NAME
           
static java.lang.String VISIBLE
           
 
Constructor Summary
WorkflowAdminServiceImpl()
           
 
Method Summary
 java.util.Set getEnabledEngines()
           
 java.util.Set 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 JBPM workflow definitions are visible when the JBPM engine is enabled.
 void setEnabledEngines(java.util.Collection engines)
          Setter for Spring
 void setEngineEnabled(java.lang.String engineId, boolean isEnabled)
           
 void setEngineVisibility(java.lang.String engineId, boolean isVisible)
           
 void setVisibleEngines(java.util.Collection engines)
          Setter for Spring.
 void setWorkflowEngineConfigurations(java.util.List props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
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)

isEngineVisible

public boolean isEngineVisible(java.lang.String engineId)
Description copied from interface: WorkflowAdminService
Determines whether the JBPM workflow definitions are visible when the JBPM engine is enabled. 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)

setEnabledEngines

public void setEnabledEngines(java.util.Collection engines)
Setter for Spring

Parameters:
engines - All engine Ids to enable.

getEnabledEngines

public java.util.Set getEnabledEngines()
Returns:
the enabledEngines

setVisibleEngines

public void setVisibleEngines(java.util.Collection engines)
Setter for Spring.

Parameters:
engines - All engineIds to set visible.

getVisibleEngines

public java.util.Set getVisibleEngines()
Returns:
the visibleEngines

setWorkflowEngineConfigurations

public void setWorkflowEngineConfigurations(java.util.List props)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.