Class WorkflowNodeInfoImpl
- java.lang.Object
-
- com.saperion.ngc.model.navigation.WorkflowNodeInfoImpl
-
- All Implemented Interfaces:
WorkflowNodeInfo
public class WorkflowNodeInfoImpl extends java.lang.Object implements WorkflowNodeInfo
- Author:
- rbo
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.saperion.ngc.model.navigation.intf.WorkflowNodeInfo
WorkflowNodeInfo.Filter, WorkflowNodeInfo.TYPE
-
-
Field Summary
-
Fields inherited from interface com.saperion.ngc.model.navigation.intf.WorkflowNodeInfo
MASKNAME
-
-
Constructor Summary
Constructors Constructor Description WorkflowNodeInfoImpl(com.saperion.intf.wf.BoxDefinition box)
Constructor.WorkflowNodeInfoImpl(com.saperion.intf.wf.BoxDefinition box, boolean performQuery)
Constructor.WorkflowNodeInfoImpl(com.saperion.wf.BoxCount count)
Constructor for workflow root node.WorkflowNodeInfoImpl(java.lang.String leafName, int id, WorkflowNodeInfo.Filter filter)
Constructor.WorkflowNodeInfoImpl(java.lang.String indexForm, WorkflowNodeInfo.TYPE typeValue, int id)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBoxId()
Returns the id of the box this node info is representing.WorkflowNodeInfo.Filter
getFilterType()
Returns the filter of this workflow node.java.lang.String
getMaskName()
java.lang.String
getName()
java.lang.String
getQuery()
Returns the workflow query string.long
getTotalCount()
Returns the number of total items enclosed by this folder.WorkflowNodeInfo.TYPE
getType()
long
getUnreadCount()
Returns the number of unread items enclosed by this folder.boolean
isPerformQuery()
Checks if the query is to be performed immediately.void
setTotalCount(long count)
Sets the number of total items enclosed by this folder.void
setUnreadCount(long count)
Sets the number of unread items enclosed by this folder.
-
-
-
Constructor Detail
-
WorkflowNodeInfoImpl
public WorkflowNodeInfoImpl(com.saperion.intf.wf.BoxDefinition box)
Constructor. (used for virtual workflow items)- Parameters:
box
- the box definition
-
WorkflowNodeInfoImpl
public WorkflowNodeInfoImpl(com.saperion.intf.wf.BoxDefinition box, boolean performQuery)
Constructor. (used for virtual workflow items)- Parameters:
box
- the box definitionperformQuery
- if set to false, the workflow-query will not be executed immediately
-
WorkflowNodeInfoImpl
public WorkflowNodeInfoImpl(java.lang.String leafName, int id, WorkflowNodeInfo.Filter filter)
Constructor. (used for virtual workflow items with enhanced query)- Parameters:
leafName
- the name of this leafid
- the user idfilter
- the query filter
-
WorkflowNodeInfoImpl
public WorkflowNodeInfoImpl(java.lang.String indexForm, WorkflowNodeInfo.TYPE typeValue, int id)
Constructor.- Parameters:
indexForm
- Index formtypeValue
- Typeid
- Box id
-
WorkflowNodeInfoImpl
public WorkflowNodeInfoImpl(com.saperion.wf.BoxCount count)
Constructor for workflow root node.- Parameters:
count
- global task count
-
-
Method Detail
-
getQuery
public java.lang.String getQuery()
Returns the workflow query string.- Specified by:
getQuery
in interfaceWorkflowNodeInfo
- Returns:
- query string
- See Also:
WorkflowNodeInfo.getQuery()
-
getMaskName
public java.lang.String getMaskName()
- Specified by:
getMaskName
in interfaceWorkflowNodeInfo
- Returns:
- Mask name
- See Also:
WorkflowNodeInfo.getMaskName()
-
getName
public java.lang.String getName()
- Returns:
- Name
-
getType
public WorkflowNodeInfo.TYPE getType()
- Specified by:
getType
in interfaceWorkflowNodeInfo
- Returns:
- Type
-
setTotalCount
public void setTotalCount(long count)
Sets the number of total items enclosed by this folder.- Specified by:
setTotalCount
in interfaceWorkflowNodeInfo
- Parameters:
count
- the number of total items enclosed by this folder.- See Also:
WorkflowNodeInfo.setTotalCount(long)
-
setUnreadCount
public void setUnreadCount(long count)
Sets the number of unread items enclosed by this folder.- Specified by:
setUnreadCount
in interfaceWorkflowNodeInfo
- Parameters:
count
- the number of unread items enclosed by this folder.- See Also:
WorkflowNodeInfo.setUnreadCount(long)
-
getTotalCount
public long getTotalCount()
Returns the number of total items enclosed by this folder.- Specified by:
getTotalCount
in interfaceWorkflowNodeInfo
- Returns:
- the number of total items enclosed by this folder.
- See Also:
WorkflowNodeInfo.getTotalCount()
-
getUnreadCount
public long getUnreadCount()
Returns the number of unread items enclosed by this folder.- Specified by:
getUnreadCount
in interfaceWorkflowNodeInfo
- Returns:
- the number of unread items enclosed by this folder.
- See Also:
WorkflowNodeInfo.getUnreadCount()
-
getFilterType
public WorkflowNodeInfo.Filter getFilterType()
Returns the filter of this workflow node.- Specified by:
getFilterType
in interfaceWorkflowNodeInfo
- Returns:
- the filter of this workflow node.
- See Also:
WorkflowNodeInfo.getFilterType()
-
getBoxId
public int getBoxId()
Returns the id of the box this node info is representing.- Specified by:
getBoxId
in interfaceWorkflowNodeInfo
- Returns:
- the id of the box this node info is representing.
- See Also:
WorkflowNodeInfo.getBoxId()
-
isPerformQuery
public boolean isPerformQuery()
Checks if the query is to be performed immediately.- Specified by:
isPerformQuery
in interfaceWorkflowNodeInfo
- Returns:
- perform query
- See Also:
WorkflowNodeInfo.isPerformQuery()
-
-