|
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.EntityImpl | +--theory.smart.ebusiness.session.EBusinessSessionImpl
An EBusinessSession is the mechanism by which the logical flow of a session is maintained. It provides support for implementations where a user is guided through a series of separate pages that must share a common context. It is targeted at a usage model where by a customer may or may not have a registered identity on the system. Customers that are not identified can simply browse, where as registered customers can initiate purchases. A final level of authentication is required when a user wishes to complete a transaction or modify their profile. An EBusinessSession also provides the mechanism by which a Customer, Order, and Invoice are bound together.
Primary Key = theory.smart.ebusiness.session.EBusinessSessionPk
EBusinessSession
,
EBusinessSessionHome
,
EBusinessSessionValue
, Serialized FormField Summary | |
java.sql.Date |
accessDate
accessDate [EBusinessSession] <*>------> [ java.sql.Date ]
|
java.sql.Date |
creationDate
creationDate [EBusinessSession] <*>------> [ java.sql.Date ]
|
SmartHandle |
customer
customer [EBusinessSession] <>------> [ theory.smart.ebusiness.customer.Customer ]
|
SmartHandle |
order
order [EBusinessSession] <>------> [ theory.smart.ebusiness.order.Order ]
|
SmartHandle |
pendingInvoice
pendingInvoice [EBusinessSession] <>------> [ theory.smart.ebusiness.invoicing.Invoice ]
|
java.lang.String |
sessionKey
sessionKey [EBusinessSession] <*>------> [ String ] (Primary Key)
|
WorkflowContext |
sessionState
sessionState [EBusinessSession] <*>------> [ theory.smart.ebusiness.session.EBusinessSessionWorkflow ]
|
Workflow |
sessionStateWorkflow
|
Fields inherited from class theory.smart.foundation.EntityImpl |
ctx,
isDirty,
isLoaded |
Constructor Summary | |
EBusinessSessionImpl()
|
Method Summary | |
void |
assignCustomer(Customer customer)
This will set the customer on the session and become registered. |
void |
authenticate(Customer customer,
java.lang.String password)
Verify that the customer and the password specified are correct. |
void |
authenticate(java.lang.String password)
|
void |
becomeGuest()
This method will disassociate the customer from a session and transition the session into the guest state. |
void |
cancelEnrollment()
End the process of enrolling before it is completed and return to the guest state. |
void |
disableAuthentication()
Transitions workflow out of the authenticated state . |
void |
ejbActivate()
ejbActivate method. |
EBusinessSessionPk |
ejbCreate(EBusinessSessionPk eBusinessSessionPk)
|
java.util.Enumeration |
ejbFindAll()
|
EBusinessSessionPk |
ejbFindByPrimaryKey(EBusinessSessionPk pk)
|
void |
ejbLoad()
ejbLoad method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate(EBusinessSessionPk eBusinessSessionPk)
|
void |
ejbRemove()
ejbRemove method. |
void |
ejbStore()
ejbStore method. |
void |
enroll()
Is used by the client to determine if it is safe to atempt to enroll a guest as a customer. |
java.sql.Date |
getAccessDate()
Get the value of accessDate |
java.sql.Date |
getCreationDate()
Get the value of creationDate |
Customer |
getCustomer()
Get the remote object reference of customer |
EBusinessSessionValue |
getEBusinessSessionByValue()
Get all of EBusinessSession's attributes. |
Order |
getOrder()
Get the remote object reference of order |
Invoice |
getPendingInvoice()
Get the remote object reference of pendingInvoice |
java.lang.String |
getSessionKey()
|
java.lang.String |
getSessionState()
Returns the current state name of the theory.smart.ebusiness.session.EBusinessSessionWorkflow workflow |
void |
mergeSession(EBusinessSession session)
Merge two sessions by combining the orders and invoices and synchronizing the workflows. |
void |
setAccessDate(java.sql.Date accessDate)
Set the value of accessDate |
void |
setCreationDate(java.sql.Date creationDate)
Set the value of creationDate |
void |
setCustomer(Customer customer)
Set the remote object reference of customer |
void |
setEBusinessSessionByValue(EBusinessSessionValue value)
Set all of EBusinessSession's attributes to the passed in value. |
void |
setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext method. |
void |
setOrder(Order order)
Set the remote object reference of order |
void |
setPendingInvoice(Invoice pendingInvoice)
Set the remote object reference of pendingInvoice |
void |
unsetEntityContext()
unsetEntityContext method. |
Methods inherited from class theory.smart.foundation.EntityImpl |
ejbCreate,
ejbPostCreate,
getEntityContext,
isModified |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public java.lang.String sessionKey
sessionKey
[EBusinessSession] <*>------> [String
] (Primary Key)
public java.sql.Date creationDate
creationDate
[EBusinessSession] <*>------> [java.sql.Date
]
public java.sql.Date accessDate
accessDate
[EBusinessSession] <*>------> [java.sql.Date
]
public SmartHandle pendingInvoice
pendingInvoice
[EBusinessSession] <>------> [theory.smart.ebusiness.invoicing.Invoice
]
public SmartHandle customer
customer
[EBusinessSession] <>------> [theory.smart.ebusiness.customer.Customer
]
public SmartHandle order
order
[EBusinessSession] <>------> [theory.smart.ebusiness.order.Order
]
public WorkflowContext sessionState
sessionState
[EBusinessSession] <*>------> [theory.smart.ebusiness.session.EBusinessSessionWorkflow
]
public transient Workflow sessionStateWorkflow
Constructor Detail |
public EBusinessSessionImpl() throws javax.ejb.CreateException
Method Detail |
public EBusinessSessionValue getEBusinessSessionByValue() throws java.rmi.RemoteException
public void setEBusinessSessionByValue(EBusinessSessionValue value) throws java.rmi.RemoteException
EBusinessSessionValue
- the EBusinessSession value objectpublic EBusinessSessionPk ejbCreate(EBusinessSessionPk eBusinessSessionPk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbPostCreate(EBusinessSessionPk eBusinessSessionPk) throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbLoad() throws java.rmi.RemoteException
public void ejbStore() throws java.rmi.RemoteException
public void ejbRemove() throws java.rmi.RemoteException, javax.ejb.RemoveException
public void ejbActivate() throws java.rmi.RemoteException
public void ejbPassivate() throws java.rmi.RemoteException
public void setEntityContext(javax.ejb.EntityContext ctx) throws java.rmi.RemoteException
public void unsetEntityContext() throws java.rmi.RemoteException
public EBusinessSessionPk ejbFindByPrimaryKey(EBusinessSessionPk pk) throws javax.ejb.FinderException, java.rmi.RemoteException
public java.util.Enumeration ejbFindAll() throws javax.ejb.FinderException, java.rmi.RemoteException
public java.lang.String getSessionKey() throws java.rmi.RemoteException
public java.sql.Date getCreationDate() throws java.rmi.RemoteException
public void setCreationDate(java.sql.Date creationDate) throws java.rmi.RemoteException
creationDate
- creationDate to be addedpublic java.sql.Date getAccessDate() throws java.rmi.RemoteException
public void setAccessDate(java.sql.Date accessDate) throws java.rmi.RemoteException
accessDate
- accessDate to be addedpublic Invoice getPendingInvoice() throws java.rmi.RemoteException
public void setPendingInvoice(Invoice pendingInvoice) throws java.rmi.RemoteException
pendingInvoices
- pendingInvoice to be addedpublic Customer getCustomer() throws java.rmi.RemoteException
public void setCustomer(Customer customer) throws java.rmi.RemoteException
customers
- customer to be addedpublic Order getOrder() throws java.rmi.RemoteException
public void setOrder(Order order) throws java.rmi.RemoteException
orders
- order to be addedpublic java.lang.String getSessionState()
public void becomeGuest() throws java.rmi.RemoteException, IllegalWorkflowTransitionException
public void enroll() throws java.rmi.RemoteException, IllegalWorkflowTransitionException
public void cancelEnrollment() throws java.rmi.RemoteException, IllegalWorkflowTransitionException
public void assignCustomer(Customer customer) throws java.rmi.RemoteException, IllegalWorkflowTransitionException
public void authenticate(Customer customer, java.lang.String password) throws java.rmi.RemoteException, IllegalWorkflowTransitionException
public void disableAuthentication() throws java.rmi.RemoteException, IllegalWorkflowTransitionException
public void authenticate(java.lang.String password) throws java.rmi.RemoteException, IllegalWorkflowTransitionException
public void mergeSession(EBusinessSession session) throws java.rmi.RemoteException
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |