Package lumis.service.autoadministration
Class WorkflowStatesByLocalizedNameDataProvider
- java.lang.Object
-
- lumis.service.autoadministration.WorkflowStatesByLocalizedNameDataProvider
-
- All Implemented Interfaces:
IDataProvider<TabularSource<?>>
- Direct Known Subclasses:
NonPublishedAndArchivedWorklowStatesByLocalizedNameDataProvider
public class WorkflowStatesByLocalizedNameDataProvider extends java.lang.Object implements IDataProvider<TabularSource<?>>
Provides the workflow state data, grouping all states from localized name.- Since:
- 7.0.0
- Version:
- $Revision$ $Date$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
STATE_PARAMETER_SEPARATOR
static java.lang.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
Constructors Constructor Description WorkflowStatesByLocalizedNameDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getStateId(java.lang.String workflowId, java.lang.String workflowStateId)
Returns an unique state identifier.protected boolean
isStateAllowed(WorkflowStateConfig stateConfig)
Returnstrue
if the state is allowed to be included on source, otherwise returnsfalse
.void
loadData(SessionConfig sessionConfig, TabularSource<?> source, ITransaction transaction)
-
-
-
Field Detail
-
WORKFLOW_PARAMETER_SEPARATOR
public static final java.lang.String WORKFLOW_PARAMETER_SEPARATOR
- See Also:
- Constant Field Values
-
STATE_PARAMETER_SEPARATOR
public static final java.lang.String STATE_PARAMETER_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadData
public void loadData(SessionConfig sessionConfig, TabularSource<?> source, ITransaction transaction) throws PortalException
- Specified by:
loadData
in interfaceIDataProvider<TabularSource<?>>
- Throws:
PortalException
-
getStateId
protected java.lang.String getStateId(java.lang.String workflowId, java.lang.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)
Returnstrue
if the state is allowed to be included on source, otherwise returnsfalse
.- Parameters:
stateConfig
- the workflow state to be verified.- Returns:
true
if the state is allowed to be included on source, otherwise returnsfalse
.- Since:
- 7.0.0
-
-