|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbiz.wedoit4u.Session
biz.wedoit4u.CMASession
biz.wedoit4u.PartnerSession
public final class PartnerSession
A class that is used to store sessional information for a partner CMA user. This class also contains utility methods that are used to abstract business logic away from the presentation layer.
Copyright 2004, Rakesh Vidyadharan and wedoit4u.biz
| Field Summary | |
|---|---|
private javax.servlet.http.HttpSession |
httpSession
The web session for the user using the CMA. |
private boolean |
loggedOn
A flag used to indicate that a login session is
valid. |
private int |
partnerId
The partners.partner_id column value. |
| Constructor Summary | |
|---|---|
PartnerSession()
The default constructor. |
|
| Method Summary | |
|---|---|
CustomerTypeBean |
editCustomerType(javax.servlet.http.HttpServletRequest request)
Create/edit a customer_types record. |
javax.servlet.http.HttpSession |
getHttpSession()
Returns httpSession. |
boolean |
getLoggedOn()
Returns loggedOn. |
int |
getPartnerId()
Returns partnerId. |
PartnerStyleBean[] |
getPartnerStyleList()
Return an Array of java bean instances of
type PartnerStyleBean that are
associated with the specified partner_id. |
void |
login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session)
Log the partner in to the CMA. |
void |
logout()
Log the partner out of the CMA. |
void |
setHttpSession(javax.servlet.http.HttpSession httpSession)
Set httpSession. |
| Methods inherited from class biz.wedoit4u.Session |
|---|
getCategoryBeans, getCategoryList, getContentList, getContentList, getUniqueNumber |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean loggedOn
flag used to indicate that a login session is
valid.
private int partnerId
partners.partner_id column value. This is used
to store and provide access to the partnerId for the
currently logged in user.
private javax.servlet.http.HttpSession httpSession
| Constructor Detail |
|---|
public PartnerSession()
| Method Detail |
|---|
public void login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpSession session)
throws CMAException
request - - The request from the client that
contains the partner username and password information from
the form POST.session - - The httpSession instance to set.
CMAException - - If system errors are encountered while
attempting to log the user on, or if the username/password
combination are invalid.public void logout()
public PartnerStyleBean[] getPartnerStyleList()
throws CMAException
Array of java bean instances of
type PartnerStyleBean that are
associated with the specified partner_id.
CMAException - - If Naming or Finder exceptions are
encountered while fetching the collection of java beans.PartnerStyleBean.findByPartner( int )
public CustomerTypeBean editCustomerType(javax.servlet.http.HttpServletRequest request)
throws CMAException
customer_types record. If the specified
customer_type_id is 0 then a new record
is created. The the specified customer_type_id
exists in the database, then the associated record is updated,
otherwise, a new record is created with the specified value.
request - - The request from the client that
contains the form elements with all the value for the database
fields.
CMAException - - If database errors are encountered while
creating/editing the database record.public final boolean getLoggedOn()
loggedOn.
public final int getPartnerId()
partnerId.
public final javax.servlet.http.HttpSession getHttpSession()
httpSession.
public final void setHttpSession(javax.servlet.http.HttpSession httpSession)
httpSession.
httpSession - - The value to set.
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||