lumis.service.autoadministration
Class WorkflowStatesByLocalizedNameDataProvider

Package class diagram package WorkflowStatesByLocalizedNameDataProvider
java.lang.Object
  extended by lumis.service.autoadministration.WorkflowStatesByLocalizedNameDataProvider
All Implemented Interfaces:
IDataProvider<TabularSource<?>>
Direct Known Subclasses:
NonPublishedAndArchivedWorklowStatesByLocalizedNameDataProvider

public class WorkflowStatesByLocalizedNameDataProvider
extends Object
implements IDataProvider<TabularSource<?>>

Provides the workflow state data, grouping all states from localized name.

Since:
7.0.0

Field Summary
static String STATE_PARAMETER_SEPARATOR
           
static String WORKFLOW_PARAMETER_SEPARATOR
           
 
Fields inherited from interface lumis.doui.source.IDataProvider
INTERFACE_INSTANCE_PROPERTY_FIELDS, INTERFACE_INSTANCE_PROPERTY_FILTERS, INTERFACE_INSTANCE_PROPERTY_MAX_ROWS, INTERFACE_INSTANCE_PROPERTY_ORDER_BY, MAX_NUM_ORDER_BY_FIELDS
 
Constructor Summary
WorkflowStatesByLocalizedNameDataProvider()
           
 
Method Summary
protected  String getStateId(String workflowId, String workflowStateId)
          Returns an unique state identifier.
protected  boolean isStateAllowed(WorkflowStateConfig stateConfig)
          Returns true if the state is allowed to be included on source, otherwise returns false.
 void loadData(SessionConfig sessionConfig, TabularSource<?> source, ITransaction transaction)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WORKFLOW_PARAMETER_SEPARATOR

public static final String WORKFLOW_PARAMETER_SEPARATOR
See Also:
Constant Field Values

STATE_PARAMETER_SEPARATOR

public static final String STATE_PARAMETER_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

WorkflowStatesByLocalizedNameDataProvider

public WorkflowStatesByLocalizedNameDataProvider()
Method Detail

loadData

public void loadData(SessionConfig sessionConfig,
                     TabularSource<?> source,
                     ITransaction transaction)
              throws PortalException
Specified by:
loadData in interface IDataProvider<TabularSource<?>>
Throws:
PortalException

getStateId

protected String getStateId(String workflowId,
                            String workflowStateId)
Returns an unique state identifier.

Parameters:
workflowId - workflow identifier.
workflowStateId - state identifier.
Returns:
Since:
7.0.0

isStateAllowed

protected boolean isStateAllowed(WorkflowStateConfig stateConfig)
Returns true if the state is allowed to be included on source, otherwise returns false.

Parameters:
stateConfig - the workflow state to be verified.
Returns:
true if the state is allowed to be included on source, otherwise returns false.
Since:
7.0.0


Lumisportal  7.0.0.121130 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.