|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
sessionKey
[EBusinessSession] <*>------> [String
] (Primary Key)
creationDate
[EBusinessSession] <*>------> [java.sql.Date
]
accessDate
[EBusinessSession] <*>------> [java.sql.Date
]
pendingInvoice
[EBusinessSession] <>------> [theory.smart.ebusiness.invoicing.Invoice
]
customer
[EBusinessSession] <>------> [theory.smart.ebusiness.customer.Customer
]
order
[EBusinessSession] <>------> [theory.smart.ebusiness.order.Order
]
sessionState
[EBusinessSession] <*>------> [theory.smart.ebusiness.session.EBusinessSessionWorkflow
]
EBusinessSessionPk
,
EBusinessSessionHome
,
EBusinessSessionImpl
,
EBusinessSessionValue
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 |
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 |
setOrder(Order order)
Set the remote object reference of order |
void |
setPendingInvoice(Invoice pendingInvoice)
Set the remote object reference of pendingInvoice |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public EBusinessSessionValue getEBusinessSessionByValue() throws java.rmi.RemoteException
public void setEBusinessSessionByValue(EBusinessSessionValue value) throws java.rmi.RemoteException
EBusinessSessionValue
- the EBusinessSession value objectpublic 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
creationDates
- creationDate to be addedpublic java.sql.Date getAccessDate() throws java.rmi.RemoteException
public void setAccessDate(java.sql.Date accessDate) throws java.rmi.RemoteException
accessDates
- 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() throws java.rmi.RemoteException
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 |