|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.instantbank.lettertemplate.control.event.LetterTemplateEventSupport
|
+--com.instantbank.lettertemplate.control.event.TemplatesEvent
Letter Templates usecase: This event is sent from the web tier to the EJB Controller to notify the EJB Controller that an action needs to be made in the letter Templates model data.
| Field Summary | |
private int |
actionType
action requested by the user |
private java.lang.String |
companyId
current company |
private java.util.ArrayList |
items
items for changing the templates list of the current company |
static int |
LIST_TEMPLATES_NAMES
action constant of getting the templates list of the current company |
static int |
UPDATE_TEMPLATES_NAMES
action constant of changing the templates list of the current company |
private java.lang.Long |
userId
current user |
| Constructor Summary | |
TemplatesEvent(int actionType,
java.lang.String companyId,
java.lang.Long userId,
java.util.ArrayList items)
constructor: initializes attributes |
|
| Method Summary | |
int |
getActionType()
get method for actionType |
java.lang.String |
getCompanyId()
get method for companyId |
java.lang.String |
getEventName()
JNDI name for the event: LetterTemplateController EJB registers this env variable |
java.util.ArrayList |
getItems()
get method for items |
java.lang.Long |
getUserId()
get method for userId |
java.lang.String |
toString()
String representation of the event |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final int LIST_TEMPLATES_NAMES
public static final int UPDATE_TEMPLATES_NAMES
private int actionType
private java.lang.String companyId
private java.lang.Long userId
private java.util.ArrayList items
| Constructor Detail |
public TemplatesEvent(int actionType,
java.lang.String companyId,
java.lang.Long userId,
java.util.ArrayList items)
actionType - action requested by the usercompanyId - current companyuserId - current useritems - for changing the templates list of the current
company| Method Detail |
public int getActionType()
public java.lang.String getCompanyId()
public java.lang.Long getUserId()
public java.util.ArrayList getItems()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getEventName()
getEventName in class LetterTemplateEventSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||