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 Object implements IDataProvider<TabularSource<?>>
Provides the workflow state data, grouping all states from localized name.- Since:
- 7.0.0
- Version:
- $Revision: 17606 $ $Date: 2015-07-24 10:56:40 -0300 (Fri, 24 Jul 2015) $
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description WorkflowStatesByLocalizedNameDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
getStateId(String workflowId, 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 String WORKFLOW_PARAMETER_SEPARATOR
- See Also:
- Constant Field Values
-
STATE_PARAMETER_SEPARATOR
public static final 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 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)
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
-
-