|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.rice.rubis.beans.SB_AboutMeBean
This is a stateless session bean used to give to a user the information about himself.
Field Summary | |
protected javax.sql.DataSource |
dataSource
|
protected javax.naming.Context |
initialContext
|
protected javax.ejb.SessionContext |
sessionContext
|
Constructor Summary | |
SB_AboutMeBean()
|
Method Summary | |
void |
ejbActivate()
This method is empty for a stateless session bean |
void |
ejbCreate()
This method is empty for a stateless session bean |
void |
ejbPassivate()
This method is empty for a stateless session bean |
void |
ejbRemove()
This method is empty for a stateless session bean |
java.lang.String |
getAboutMe(java.lang.String username,
java.lang.String password)
Authenticate the user and get the information about the user. |
java.lang.String |
listBids(java.lang.Integer userId,
java.lang.String username,
java.lang.String password,
ItemLocalHome iHome,
QueryLocalHome qHome)
List items the user put a bid on in the last 30 days |
java.lang.String |
listBoughtItems(java.lang.Integer userId,
ItemLocalHome iHome)
List items the user bought in the last 30 days |
java.lang.String |
listComments(CommentLocalHome home,
java.lang.Integer userId,
UserLocalHome uHome)
List comments about the user |
java.lang.String |
listItem(java.lang.Integer userId,
ItemLocalHome iHome)
List items the user is currently selling and sold in the past 30 days |
java.lang.String |
listWonItems(java.lang.Integer userId,
ItemLocalHome iHome,
QueryLocalHome qHome)
List items the user won in the last 30 days |
java.lang.String |
printComment(java.lang.String userName,
CommentLocal comment)
Comment printed function |
java.lang.String |
printCommentFooter()
Comment footer printed function |
java.lang.String |
printCommentHeader()
Comment header printed function |
java.lang.String |
printHTMLHighlighted(java.lang.String msg)
Construct a html highlighted string. |
java.lang.String |
printItemFooter()
Item footer printed function |
java.lang.String |
printItemUserHasBidOn(BidLocal bid,
ItemLocal item,
java.lang.String username,
java.lang.String password)
items list printed function |
java.lang.String |
printSellHeader(java.lang.String title)
user's sellings header printed function |
java.lang.String |
printUserBidsHeader()
user's bids list header printed function |
java.lang.String |
printUserBoughtItemHeader()
user's bought items list header printed function |
java.lang.String |
printUserWonItemHeader()
user's won items list header printed function |
void |
setSessionContext(javax.ejb.SessionContext sessionContext)
Sets the associated session context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected javax.ejb.SessionContext sessionContext
protected javax.naming.Context initialContext
protected javax.sql.DataSource dataSource
Constructor Detail |
public SB_AboutMeBean()
Method Detail |
public java.lang.String getAboutMe(java.lang.String username, java.lang.String password) throws java.rmi.RemoteException
public java.lang.String listItem(java.lang.Integer userId, ItemLocalHome iHome) throws java.rmi.RemoteException
public java.lang.String listBoughtItems(java.lang.Integer userId, ItemLocalHome iHome) throws java.rmi.RemoteException
public java.lang.String listWonItems(java.lang.Integer userId, ItemLocalHome iHome, QueryLocalHome qHome) throws java.rmi.RemoteException
public java.lang.String listComments(CommentLocalHome home, java.lang.Integer userId, UserLocalHome uHome) throws java.rmi.RemoteException
public java.lang.String listBids(java.lang.Integer userId, java.lang.String username, java.lang.String password, ItemLocalHome iHome, QueryLocalHome qHome) throws java.rmi.RemoteException
public java.lang.String printUserBoughtItemHeader()
public java.lang.String printUserWonItemHeader()
public java.lang.String printUserBidsHeader()
public java.lang.String printItemUserHasBidOn(BidLocal bid, ItemLocal item, java.lang.String username, java.lang.String password) throws java.rmi.RemoteException
public java.lang.String printSellHeader(java.lang.String title)
public java.lang.String printItemFooter()
public java.lang.String printCommentHeader()
public java.lang.String printComment(java.lang.String userName, CommentLocal comment) throws java.rmi.RemoteException
userName
- the name of the user who is the subject of the commentscomment
- the comment to displaypublic java.lang.String printCommentFooter()
public java.lang.String printHTMLHighlighted(java.lang.String msg)
msg
- the message to displaypublic void ejbCreate() throws javax.ejb.CreateException, java.rmi.RemoteException
public void ejbActivate() throws java.rmi.RemoteException
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate() throws java.rmi.RemoteException
ejbPassivate
in interface javax.ejb.SessionBean
public void ejbRemove() throws java.rmi.RemoteException
ejbRemove
in interface javax.ejb.SessionBean
public void setSessionContext(javax.ejb.SessionContext sessionContext) throws java.rmi.RemoteException
setSessionContext
in interface javax.ejb.SessionBean
sessionContext
- - A SessionContext interface for the instance.java.rmi.RemoteException
- - Thrown if the instance could not perform the function
requested by the container because of a system-level error.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |