|
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.CDASession
public class CDASession
A class that is used to store sessional information about a user that is using the CDA.
Copyright 2003, Rakesh Vidyadharan and wedoit4u.biz
| Field Summary | |
|---|---|
private int |
categoryId
The site category that the user is currently browsing. |
(package private) CustomerBean |
cb
The instance of CustomerBean that is
associated with the user logged in. |
private boolean |
loggedOn
A flag that is used to indicate that a user has successfully logged on to the service. |
(package private) SitePropertyBean |
spb
The instance of SitePropertyBean
that is associated with the user logged in. |
private java.lang.String |
username
The username of the user currently logged on to the CDA. |
| Constructor Summary | |
|---|---|
CDASession()
The default constructor. |
|
| Method Summary | |
|---|---|
int |
getBottomRail()
Returns the value of SitePropertyBean.bottomRail. |
int |
getCategoryId()
Returns categoryId. |
ContentBean |
getContentBean(int contentId)
Return the ContentBean instance
identified by the contentId primary key value
specified. |
int |
getContentId(java.lang.String content)
Parse the content id out of the specified string value. |
java.lang.String |
getCSSContents()
Return the CSS properties for the customer as a
String. |
int |
getCustomerId()
Returns the value of CustomerBean.customerId. |
java.lang.String |
getFooter()
Returns the value of SitePropertyBean.footer. |
java.lang.String |
getHeader()
Returns the value of SitePropertyBean.header. |
int |
getLeftRail()
Returns the value of SitePropertyBean.leftRail. |
boolean |
getLoggedOn()
Returns loggedOn. |
int |
getRightRail()
Returns the value of SitePropertyBean.rightRail. |
int |
getTopRail()
Returns the value of SitePropertyBean.topRail. |
boolean |
login(java.lang.String username,
java.lang.String password)
Log the specified user into the CDA. |
void |
setCategoryId(java.lang.String category)
Set categoryId based upon the String value
specified. |
| 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
private java.lang.String username
private int categoryId
CustomerBean cb
CustomerBean that is
associated with the user logged in.
SitePropertyBean spb
SitePropertyBean
that is associated with the user logged in.
| Constructor Detail |
|---|
public CDASession()
| Method Detail |
|---|
public boolean login(java.lang.String username,
java.lang.String password)
username - - The username that is to be
matched.password - - The password that is to be
matched.
true if the username exists
and matches the password.public int getCustomerId()
CustomerBean.customerId.
public int getTopRail()
SitePropertyBean.topRail.
top_rail.public int getLeftRail()
SitePropertyBean.leftRail.
left_rail.public int getRightRail()
SitePropertyBean.rightRail.
right_rail.public int getBottomRail()
SitePropertyBean.bottomRail.
bottom_rail.public java.lang.String getHeader()
SitePropertyBean.header.
header.public java.lang.String getFooter()
SitePropertyBean.footer.
footer.public final boolean getLoggedOn()
loggedOn.
public final int getCategoryId()
categoryId.
public final void setCategoryId(java.lang.String category)
throws CMAException
categoryId based upon the String value
specified. If the value is null or empty
then the category with highest priority for the user is set.
category - - The value based upon which to find the
appropriate category.
CMAException - - If errors are encountered while fetching
the categories for the customer.public final int getContentId(java.lang.String content)
content - - The content id string value to parse.
null or empty, this method returns
0.
public final ContentBean getContentBean(int contentId)
throws CMAException
ContentBean instance
identified by the contentId primary key value
specified.
contentId - - The primary key value based upon which to
find the appropriate bean instance.
CMAException - - If the bean instance cannot be found.ContentBean.getInstance( int )
public final java.lang.String getCSSContents()
throws CMAException
CSS properties for the customer as a
String. Create a new instance of the CSSGenerator class for the customer_id and
fetch the CSS contents.
CMAException - - If errors are encountered while fetching
the CSS contents for the customer.CSSGenerator.getCssContents()
|
Rakesh API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||