| |
|
| java.lang.Object info.jtrac.domain.State
State | public class State implements Serializable(Code) | | State as in "State Transition"
holds a set of possible future states to transition to
also holds a map of [ field name = integer "mask" ]
to represent permissions (view or edit) that the role owning this state
has for each field for an item which is in this particular state
For example, consider a state FOO and a role BAR.
When a user with role BAR views an item that is having the status FOO:
ie. when item.status == FOO.status, the fields that can be viewed on screen
will be the entries in FOO.fields where the value == MASK_READONLY (or 1)
|
Constructor Summary | |
public | State() | public | State(int s) | public | State(Element e) |
CLOSED | final public static int CLOSED(Code) | | |
MASK_HIDDEN | final public static int MASK_HIDDEN(Code) | | |
MASK_MANDATORY | final public static int MASK_MANDATORY(Code) | | |
MASK_OPTIONAL | final public static int MASK_OPTIONAL(Code) | | |
MASK_READONLY | final public static int MASK_READONLY(Code) | | |
NEW | final public static int NEW(Code) | | |
OPEN | final public static int OPEN(Code) | | |
State | public State(int s)(Code) | | |
State | public State(Element e)(Code) | | |
addAsChildOf | public void addAsChildOf(Element parent)(Code) | | |
addTransition | public void addTransition(int toStatus)(Code) | | |
getAsElement | public Element getAsElement()(Code) | | |
getStatus | public int getStatus()(Code) | | |
removeTransition | public void removeTransition(int toStatus)(Code) | | |
setStatus | public void setStatus(int status)(Code) | | |
|
|
|