|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.cinecolombia.cinecolombia.control.ejb.CinecolombiaControllerEJB
Session Bean implementation for CinecolombiaController EJB. This is the EJB-tier controller of the MVC for cinecolombia module. It is implemented as a session EJB. It controls all 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 javax.ejb.SessionContext |
sc
|
private StateMachine |
sm
|
private Security |
varSecurity
|
Constructor Summary | |
CinecolombiaControllerEJB()
Constructor for the CinecolombiaControllerEJB 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 |
Security |
getSecurity(java.lang.String companyId,
java.lang.Long userId)
get reference to Security EJB |
java.lang.String |
getW()
|
java.util.Collection |
handleEvent(CinecolombiaEvent ese)
Principal service: Feeds the specified event to the state machine of the business logic. |
void |
setSessionContext(javax.ejb.SessionContext sc)
Sets the sessionContext attribute of the CinecolombiaControllerEJB object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private StateMachine sm
private Security varSecurity
private javax.ejb.SessionContext sc
private Debug debug
Constructor Detail |
public CinecolombiaControllerEJB()
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(CinecolombiaEvent ese) throws CinecolombiaEventException
ese
- event corresponding to user request
CinecolombiaEventException
public Security getSecurity(java.lang.String companyId, java.lang.Long userId)
companyId
- Description of the ParameteruserId
- Description of the Parameter
public java.lang.String getW()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |