org.drools.repository
Class StateItem

java.lang.Object
  extended by org.drools.repository.Item
      extended by org.drools.repository.StateItem

public class StateItem
extends Item

The StateItem represents the status of an asset. An asset can only be in 1 state at a time. Kind of for workflow.


Field Summary
static String DRAFT_STATE_NAME
          All assets when created, or a new version saved, have a status of Draft.
static String STATE_NODE_TYPE_NAME
          The name of the state node type
 
Fields inherited from class org.drools.repository.Item
node, rulesRepository
 
Constructor Summary
StateItem(RulesRepository rulesRepository, javax.jcr.Node node)
          Constructs an object of type StateItem corresponding the specified node
 
Method Summary
 boolean equals(Object in)
           
 int hashCode()
           
 void remove()
           
 String toString()
           
 
Methods inherited from class org.drools.repository.Item
getName, getNode, getRulesRepository
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DRAFT_STATE_NAME

public static final String DRAFT_STATE_NAME
All assets when created, or a new version saved, have a status of Draft.

See Also:
Constant Field Values

STATE_NODE_TYPE_NAME

public static final String STATE_NODE_TYPE_NAME
The name of the state node type

See Also:
Constant Field Values
Constructor Detail

StateItem

public StateItem(RulesRepository rulesRepository,
                 javax.jcr.Node node)
          throws RulesRepositoryException
Constructs an object of type StateItem corresponding the specified node

Parameters:
rulesRepository - the rulesRepository that instantiated this object
node - the node to which this object corresponds
Throws:
RulesRepositoryException
Method Detail

equals

public boolean equals(Object in)
Overrides:
equals in class Item

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Item

remove

public void remove()


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.