|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.fe.statemachine.base.apploaders.Event
public abstract class Event
| Constructor Summary | |
|---|---|
Event()
|
|
| Method Summary | |
|---|---|
boolean |
acceptsSession(IUserSession session)
This implementation of acceptsSession checks the authTokens contained in the user session against an internal list auth tokens. |
boolean |
allowsResult(IState state)
Returns true if the given State is allowed as a result from this Event. |
boolean |
allowsResult(IStateTransition transition)
Returns true if the given state transition is allowed from this event. |
IController |
getController()
Returns the IController implementor which handles this Event. |
Properties |
getControllerProperties()
Returns the user properties for the state transition. |
String |
getName()
Returns the name of this Event. |
Enumeration |
getStateTransitions()
Returns all allowed state transitions from this event as a java.util.Enumeration. |
String |
getTitle()
This method returns a descriptive name for the Event. |
String |
getTitle(Locale locale)
This method returns a descriptive name for the Event. |
IStateTransition |
getTransition(String name)
Returns the state transition with the given name. |
IUnitOfWork |
getUnitOfWork()
Gets the UnitOfWork which contains this event. |
Properties |
getUserProperties()
Returns the userProperties assiciated with this Event. |
Properties |
getUserProperties(Locale locale)
Returns the userProperties assiciated with this Event. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.bankframe.fe.statemachine.base.apploaders.IEvent |
|---|
requiresValidation |
| Constructor Detail |
|---|
public Event()
| Method Detail |
|---|
public boolean allowsResult(IState state)
allowsResult in interface IEventstate - The state to test against the event's state transitions.
public String getName()
getName in interface IEvent
public IController getController()
throws ControllerNotFoundException
getController in interface IEventControllerNotFoundExceptionpublic IUnitOfWork getUnitOfWork()
May be null.
getUnitOfWork in interface IEventpublic Enumeration getStateTransitions()
IEvent
getStateTransitions in interface IEventpublic boolean allowsResult(IStateTransition transition)
IEvent
allowsResult in interface IEventtransition - the transition to be tested
public IStateTransition getTransition(String name)
getTransition in interface IEventname - the state transition name.
public Properties getUserProperties(Locale locale)
locale -
public String getTitle(Locale locale)
locale -
public boolean acceptsSession(IUserSession session)
This method will return ((allRequired || anySufficient) && noForbidden).
In other words, for a session to be accepted it must contain any of this
state's sufficient tokens or all of the required tokens, and must not contain
any forbidden tokens.
acceptsSession in interface IEventsession - the user session to check
public String getTitle()
IEvent
getTitle in interface IEventIEvent.getTitle()public Properties getUserProperties()
IEvent
getUserProperties in interface IEventIEvent.getUserProperties()public Properties getControllerProperties()
IEvent
getControllerProperties in interface IEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||