com.filenet.wcm.apps.server.util
Class WcmWorkflowState

java.lang.Object
  extended bycom.filenet.wcm.apps.server.util.WcmWorkflowState
All Implemented Interfaces:
java.lang.Cloneable

public class WcmWorkflowState
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
 int majorVersionNumber
          Major Version Number of currently selected workflow
 int minorVersionNumber
          Minor Version Number of currently selected workflow
 java.lang.String objectStoreName
          Object store name for currently selected workflow
 int objType
          Object type of currently selected workflow
 java.lang.String selectedId
          Id of currently selected workflow
 java.lang.String selectedLabel
          Label for currently selected workflow
 java.lang.String selectedStyle
          Style for currently selected workflow
 java.lang.String verSerId
          Version series Id for currently selected workflow
 
Constructor Summary
WcmWorkflowState()
           
 
Method Summary
 void clearData()
          Clears all data values.
 java.lang.Object clone()
          Clone a state object.
static WcmWorkflowState getGlobalInstance(com.filenet.wcm.toolkit.server.base.WcmDpModule dp)
          Overloaded factory method that initialized authoring state from global property bag.
static WcmWorkflowState getInstance(com.filenet.wcm.toolkit.server.base.WcmDpModule dp)
          Factory method returns an instance of this object to use.
static java.lang.String getKey()
          return the key of this class
static void setKey(java.lang.String key)
          Change the key of this class.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objType

public int objType
Object type of currently selected workflow


objectStoreName

public java.lang.String objectStoreName
Object store name for currently selected workflow


selectedId

public java.lang.String selectedId
Id of currently selected workflow


verSerId

public java.lang.String verSerId
Version series Id for currently selected workflow


selectedLabel

public java.lang.String selectedLabel
Label for currently selected workflow


selectedStyle

public java.lang.String selectedStyle
Style for currently selected workflow


majorVersionNumber

public int majorVersionNumber
Major Version Number of currently selected workflow


minorVersionNumber

public int minorVersionNumber
Minor Version Number of currently selected workflow

Constructor Detail

WcmWorkflowState

public WcmWorkflowState()
Method Detail

clearData

public void clearData()
Clears all data values.


getInstance

public static WcmWorkflowState getInstance(com.filenet.wcm.toolkit.server.base.WcmDpModule dp)
                                    throws java.lang.Exception
Factory method returns an instance of this object to use.

Parameters:
dp - WcmDpModule module
Returns:
New instance of WcmWorkflowState object, scoped to the data provider
Throws:
java.lang.Exception - If any errors occured

getGlobalInstance

public static WcmWorkflowState getGlobalInstance(com.filenet.wcm.toolkit.server.base.WcmDpModule dp)
                                          throws java.lang.Exception
Overloaded factory method that initialized authoring state from global property bag.

Parameters:
dp - WcmDpModule which cached state information in its data store.
Returns:
WcmWorkflowState, returns itself back.
Throws:
java.lang.Exception - If there are problems retrieving data or an invalid parameter.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone a state object.

Returns:
Object A cloned object
Throws:
java.lang.CloneNotSupportedException - if super don't support it.

setKey

public static void setKey(java.lang.String key)
Change the key of this class. This can be used to allow multiple instances of this class but with different key.

Parameters:
key - - String

getKey

public static java.lang.String getKey()
return the key of this class

Returns:
- String, key of this class


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.