|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--theory.smart.foundation.SessionImpl | +--theory.smart.ebusiness.session.EBusinessSessionManagerImpl
The EBusinessSessionManager (Manager) is a repository for EBusinessSessions (Session). It manages the complete life cycle of its Sessions. Each Session is assigned a unique identifier by the Manager. The identifiers are generated by an AlphaNumericSequencer. The programmer can either accept a default sequence generator shared by all session managers, create a new one by passing in a name in the constructor, or create their own and pass the name into the constructor.
EBusinessSession
,
EBusinessSessionManager
,
EBusinessSessionManagerHome
, Serialized FormField Summary | |
boolean |
allowMultipleSessionsPerCustomer
allowMultipleSessionsPerCustomer [EBusinessSessionManager] <*>------> [ boolean ]
|
OrderManager |
orderManager
|
EBusinessSessionHome |
sessionHome
|
SmartHandle |
sessionIdGenerator
sessionIdGenerator [EBusinessSessionManager] <>------> [ theory.smart.axiom.util.AlphaNumericSequencer ]
|
Fields inherited from class theory.smart.foundation.SessionImpl |
ctx |
Constructor Summary | |
EBusinessSessionManagerImpl()
|
Method Summary | |
EBusinessSession |
createGuestSession()
This method allocates a new session Id and then uses the EBusinessSession home interface to create a new session associated with that Id. |
EBusinessSession |
createRegisteredSession(java.lang.String customerKey)
This method will create a EBusinessSession that is associated with the specified customer. |
void |
deleteSession(EBusinessSession session)
Removes the EBusinessSession. |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbPostCreate()
|
void |
ejbRemove()
|
boolean |
getAllowMultipleSessionsPerCustomer()
Get the value of allowMultipleSessionsPerCustomer |
java.util.Vector |
getEBusinessSessionByCustomer(java.lang.String customerKey)
Finds all sessions associated with a particular Customer. |
EBusinessSession |
getEBusinessSessionBySession(java.lang.String sessionKey)
Finds an EBusinessSession based on the session's key. |
AlphaNumericSequencer |
getSessionIdGenerator()
Get the remote object reference of sessionIdGenerator |
void |
setAllowMultipleSessionsPerCustomer(boolean allowMultipleSessionsPerCustomer)
Set the value of allowMultipleSessionsPerCustomer |
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
void |
setSessionIdGenerator(AlphaNumericSequencer sessionIdGenerator)
Set the remote object reference of sessionIdGenerator |
void |
setSessionIdGenerator(java.lang.String sequencerKey)
This method can be used to control the sessionIdGeneration . |
Methods inherited from class theory.smart.foundation.SessionImpl |
getSessionContext |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public transient OrderManager orderManager
public transient EBusinessSessionHome sessionHome
public boolean allowMultipleSessionsPerCustomer
allowMultipleSessionsPerCustomer
[EBusinessSessionManager] <*>------> [boolean
]
public SmartHandle sessionIdGenerator
sessionIdGenerator
[EBusinessSessionManager] <>------> [theory.smart.axiom.util.AlphaNumericSequencer
]
Constructor Detail |
public EBusinessSessionManagerImpl() throws javax.ejb.CreateException
Method Detail |
public void ejbCreate() throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbPostCreate() throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbActivate() throws java.rmi.RemoteException
public void ejbPassivate() throws java.rmi.RemoteException
public void ejbRemove() throws java.rmi.RemoteException
public void setSessionContext(javax.ejb.SessionContext ctx) throws java.rmi.RemoteException
public boolean getAllowMultipleSessionsPerCustomer() throws java.rmi.RemoteException
public void setAllowMultipleSessionsPerCustomer(boolean allowMultipleSessionsPerCustomer) throws java.rmi.RemoteException
allowMultipleSessionsPerCustomer
- allowMultipleSessionsPerCustomer to be addedpublic AlphaNumericSequencer getSessionIdGenerator() throws java.rmi.RemoteException
public void setSessionIdGenerator(AlphaNumericSequencer sessionIdGenerator) throws java.rmi.RemoteException
sessionIdGenerators
- sessionIdGenerator to be addedpublic EBusinessSession getEBusinessSessionBySession(java.lang.String sessionKey) throws java.rmi.RemoteException, javax.ejb.FinderException
public java.util.Vector getEBusinessSessionByCustomer(java.lang.String customerKey) throws java.rmi.RemoteException, javax.ejb.FinderException
public void setSessionIdGenerator(java.lang.String sequencerKey) throws java.rmi.RemoteException, javax.ejb.CreateException
public EBusinessSession createGuestSession() throws java.rmi.RemoteException, javax.ejb.CreateException
public EBusinessSession createRegisteredSession(java.lang.String customerKey) throws java.rmi.RemoteException, javax.ejb.FinderException
public void deleteSession(EBusinessSession session) throws java.rmi.RemoteException, javax.ejb.RemoveException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |