|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.fe.statemachine.base.apploaders.StartupEvent
public class StartupEvent
| Constructor Summary | |
|---|---|
StartupEvent(IState startState,
String controllerName)
Creates new StartupEvent |
|
| Method Summary | |
|---|---|
boolean |
acceptsSession(IUserSession session)
Returns true if the given user session has permission to fire this event. |
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 controllerProperties assiciated with this Event. |
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. |
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. |
boolean |
requiresValidation()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StartupEvent(IState startState,
String controllerName)
| Method Detail |
|---|
public IUnitOfWork getUnitOfWork()
As a StartupEvent will never be in a UnitOfWork, this method returns null.
getUnitOfWork in interface IEventpublic String getTitle()
getTitle in interface IEventpublic IStateTransition getTransition(String name)
getTransition in interface IEventpublic Enumeration getStateTransitions()
getStateTransitions in interface IEventpublic String getName()
getName in interface IEventpublic boolean allowsResult(IStateTransition transition)
allowsResult in interface IEventtransition - the transition to be tested
public Properties getUserProperties()
getUserProperties in interface IEventpublic Properties getControllerProperties()
getControllerProperties in interface IEventpublic boolean allowsResult(IState state)
allowsResult in interface IEventstate - the state to be tested
public IController getController()
throws ControllerNotFoundException
A controller class for the startup event can be specified through the com.bankframe.fe.statemachine.base.StartupController property. If none is specified, com.bankframe.fe.statemachine.base.apps.SimpleController is used.
getController in interface IEventControllerNotFoundExceptionpublic boolean acceptsSession(IUserSession session)
acceptsSession in interface IEventsession - the user session attempting to access this event.
public boolean requiresValidation()
requiresValidation in interface IEvent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||