|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.instantbank.lettertemplate.control.ejb.LetterTemplateControllerEJB
Session Bean implementation for LetterTemplateController EJB. This is the EJB-tier controller of the MVC. It is implemented as a session EJB. It controls all the activities that happen in a client session (managing update events through handleEvent() method) It also provides mechanisms to access other session EJBs and variables: get services for obtaining session variables and for contacting EJBs (entity or session) which are instanced for the user.
Field Summary | |
private Debug |
debug
|
private Job |
job
|
private LetterTemplate |
letterTemplate
|
private javax.ejb.SessionContext |
sc
|
private StateMachine |
sm
|
Constructor Summary | |
LetterTemplateControllerEJB()
Constructor for the LetterTemplateControllerEJB object |
Method Summary | |
void |
ejbActivate()
activation after swapping |
void |
ejbCreate()
after creation of ejb instance |
void |
ejbPassivate()
before swappping |
void |
ejbRemove()
before remove ejb instance |
LetterTemplate |
getLetterTemplate(java.lang.String companyId,
java.lang.Long userId)
Get reference to LetterTemplate EJB |
Job |
getNewJob(java.lang.String companyId,
java.lang.Long userId,
java.lang.String name,
long ftpPrimaryId,
long ftpAlternateId)
Get reference to a new Job EJB |
Job |
getOldJob(java.lang.Long jobId)
Get reference to an existent Job EJB |
java.lang.String |
getW()
|
java.util.Collection |
handleEvent(LetterTemplateEvent ese)
Principal service: Feeds the specified event to the state machine of the business logic. |
void |
setJobNull()
Sets null to job attribute: |
void |
setSessionContext(javax.ejb.SessionContext sc)
Sets the sessionContext attribute of the LetterTemplateControllerEJB object |
Methods inherited from class java.lang.Object |
|
Field Detail |
private StateMachine sm
private LetterTemplate letterTemplate
private Job job
private javax.ejb.SessionContext sc
private Debug debug
Constructor Detail |
public LetterTemplateControllerEJB()
Method Detail |
public void setSessionContext(javax.ejb.SessionContext sc)
setSessionContext
in interface javax.ejb.SessionBean
sc
- The new sessionContext valuepublic void ejbActivate()
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.SessionBean
public void ejbCreate()
public void ejbRemove()
ejbRemove
in interface javax.ejb.SessionBean
public java.util.Collection handleEvent(LetterTemplateEvent ese) throws LetterTemplateEventException
ese
- event corresponding to user requestLetterTemplateEventException
- public void setJobNull()
public LetterTemplate getLetterTemplate(java.lang.String companyId, java.lang.Long userId)
companyId
- current companyuserId
- current userpublic Job getOldJob(java.lang.Long jobId)
jobId
- primary key of the Jobpublic Job getNewJob(java.lang.String companyId, java.lang.Long userId, java.lang.String name, long ftpPrimaryId, long ftpAlternateId)
companyId
- current companyuserId
- current username
- name of JobftpPrimaryId
- primary ftp associated to the JobftpAlternateId
- alternate ftp associated to the Jobpublic java.lang.String getW()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |