EntityStateJob.Transition#

public class Transition#

Represents a Transition which is identified by a name and the two States from and to which an entity is being transitioned.

Currently, only exactly one toState and one fromState can be defined. However, it might be allowed in the future to have multiple states here.

Author:

Timm Fitschen (t.fitschen@indiscale.com)

Constructors#

Transition#

public Transition(EntityInterface transition)#
Parameters:
  • transition – The transition Entity, from which the Transition is created. Relevant Properties are “to” and “from”

Methods#

equals#

public boolean equals(Object obj)#

getDescription#

public String getDescription()#

getFromState#

public State getFromState()#

getName#

public String getName()#

getToState#

public State getToState()#

isFromState#

public boolean isFromState(State previousState)#
Parameters:
  • previousState

Returns:

true iff the previous state is a fromState of this transition.

isPermitted#

public boolean isPermitted(Subject user)#

isToState#

public boolean isToState(State nextState)#
Parameters:
  • nextState

Returns:

true iff the next state is a toState of this transition.

toElement#

public Element toElement()#

toString#

public String toString()#