|
||||||||||
| 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
com.bankframe.fe.statemachine.ext.apploaders.sax.Event
public class Event
This class represents an event in the application. The loader will create an instance of this class whenever it finds Event elements in the xml document. It will then add the new event to the State object that owns it.
| Constructor Summary | |
|---|---|
Event(Attributes atts,
Application application)
This constructor creates a new Event, the Event is initialised with the attribute set given. |
|
| Method Summary | |
|---|---|
boolean |
acceptsSession(IUserSession session)
This implementation of acceptsSession checks the authTokens contained in the user session against an internal list auth tokens. |
void |
addInputDefinition(IInputDefinition definition)
|
void |
addTransition(StateTransition trans)
|
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. |
IInputRequirements |
getInputRequirements()
|
String |
getName()
Returns the name of this Event. |
Iterator |
getProcesses()
This method returns the processes used by this object. |
ArrayList |
getProcessNamesList()
Returns the processNamesList. |
ProcessUser |
getProcessUser()
Returns the processUser. |
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()
This method is currently not implemented, returns null. |
Properties |
getUserProperties()
This method is currently not implemented, returns null. |
void |
initializeProcessUser(Map processMap)
|
boolean |
isDefaultEvent()
This method returns true if this Event represents a default event. |
boolean |
requiresValidation()
|
void |
setControllerProperties(Properties newControllerProperties)
|
void |
setProcessNamesList(ArrayList processNamesList)
Sets the processNamesList. |
void |
setRequiresValidation(boolean newRequiresValidation)
|
| Methods inherited from class com.bankframe.fe.statemachine.base.apploaders.Event |
|---|
getTitle, getUserProperties |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Event(Attributes atts,
Application application)
The attribute set should contain the following attributes:
name, the event
controller, the name of the class that handles the even
isDefault should be set to true if this event is a default event,
this attribute is optional.
atts - org.xml.sax.Attributesapplication - com.bankframe.fe.sm.saxapploader.Application the application this Event belongs to.| Method Detail |
|---|
public void addTransition(StateTransition trans)
trans - public boolean allowsResult(IState state)
Event
allowsResult in interface IEventallowsResult in class Eventstate -
IEvent.allowsResult(IState)public boolean allowsResult(IStateTransition transition)
IEvent
allowsResult in interface IEventallowsResult in class Eventtransition -
IEvent.allowsResult(IStateTransition)
public IController getController()
throws ControllerNotFoundException
Event
getController in interface IEventgetController in class EventControllerNotFoundExceptionexception ControllerNotFoundExceptionpublic String getName()
Event
getName in interface IEventgetName in class EventIEvent.getName()public Enumeration getStateTransitions()
IEvent
getStateTransitions in interface IEventgetStateTransitions in class EventIEvent.getStateTransitions()public IStateTransition getTransition(String name)
Event
getTransition in interface IEventgetTransition in class Eventname -
IEvent.getTransition(String)public IUnitOfWork getUnitOfWork()
getUnitOfWork in interface IEventgetUnitOfWork in class Eventpublic Properties getUserProperties()
getUserProperties in interface IEventgetUserProperties in class EventIEvent.getUserProperties()public Properties getControllerProperties()
IEvent
getControllerProperties in interface IEventgetControllerProperties in class Eventpublic void setControllerProperties(Properties newControllerProperties)
public boolean isDefaultEvent()
public boolean acceptsSession(IUserSession session)
Event
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 IEventacceptsSession in class Eventsession - the user session to check
IEvent.acceptsSession(IUserSession)public String getTitle()
IEvent
getTitle in interface IEventgetTitle in class EventIEvent.getTitle()public Iterator getProcesses()
IProcessUser
getProcesses in interface IProcessUserIProcessUser.getProcesses()public IInputRequirements getInputRequirements()
IEvent.getInputRequirements()public void addInputDefinition(IInputDefinition definition)
public ProcessUser getProcessUser()
public ArrayList getProcessNamesList()
public void setProcessNamesList(ArrayList processNamesList)
processNamesList - The processNamesList to setpublic void initializeProcessUser(Map processMap)
public boolean requiresValidation()
requiresValidation in interface IEventpublic void setRequiresValidation(boolean newRequiresValidation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||