|
||||||||||
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.SetLetterJobEvent
Set Letter job 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 Jobs model data.
Field Summary | |
private int |
actionType
action requested by the user |
private java.lang.String |
companyId
current company |
private Debug |
debug
|
static int |
GET_JOB
action constant of getting a job |
static int |
GET_TEMPLATE_FIELDS
action constant of getting the fields of a letter template |
private java.lang.Long |
jobId
job identifier |
private JobModel |
jobModel
job Model corresponding to the job to save |
static int |
LIST_JOBS
action constant of getting the jobs list of the current company |
static int |
REMOVE_JOB
action constant of removing a job |
static int |
SAVE_JOB
action constant of saving a job |
private java.lang.Long |
templateId
template identifier associated to the job |
private java.lang.Long |
userId
current user |
Constructor Summary | |
SetLetterJobEvent(int actionType,
java.lang.String companyId,
java.lang.Long userId,
java.lang.Long templateId,
java.lang.Long jobId,
JobModel jobModel)
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: Controller EJB registers this env variable |
java.lang.Long |
getJobId()
get method for jobId |
JobModel |
getJobModel()
get method for jobModel |
java.lang.Long |
getTemplateId()
get method for templateId |
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_JOBS
public static final int GET_TEMPLATE_FIELDS
public static final int GET_JOB
public static final int SAVE_JOB
public static final int REMOVE_JOB
private int actionType
private java.lang.String companyId
private java.lang.Long userId
private java.lang.Long templateId
private java.lang.Long jobId
private JobModel jobModel
private Debug debug
Constructor Detail |
public SetLetterJobEvent(int actionType, java.lang.String companyId, java.lang.Long userId, java.lang.Long templateId, java.lang.Long jobId, JobModel jobModel)
actionType
- action requested by the usercompanyId
- current companyuserId
- current usertemplateId
- template identifier associated to the jobjobId
- job identifierjobModel
- job Model corresponding to the job to saveMethod Detail |
public int getActionType()
public java.lang.String getCompanyId()
public java.lang.Long getUserId()
public java.lang.Long getTemplateId()
public java.lang.Long getJobId()
public JobModel getJobModel()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getEventName()
getEventName
in class LetterTemplateEventSupport
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |