|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.rice.rubis.beans.SB_ViewUserInfoBean
This is a stateless session bean used to get the information about a user.
Field Summary | |
protected javax.sql.DataSource |
dataSource
|
protected javax.naming.Context |
initialContext
|
protected javax.ejb.SessionContext |
sessionContext
|
Constructor Summary | |
SB_ViewUserInfoBean()
|
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 |
getComments(java.lang.Integer userId,
java.sql.Connection conn)
Get the comment related to a specific user. |
java.lang.String |
getHTMLGeneralUserInformation(java.lang.String firstname,
java.lang.String lastname,
java.lang.String nickname,
java.lang.String email,
java.lang.String creationDate,
int rating)
Returns a string displaying general information about the user. |
java.lang.String |
getUserInfo(java.lang.Integer userId)
Get the information about a user. |
java.lang.String |
printComment(java.lang.String userName,
java.lang.String date,
java.lang.String comment,
int fromUserId)
Display comment information as an HTML table row |
java.lang.String |
printCommentFooter()
Comment footer printed function |
java.lang.String |
printCommentHeader()
Comment 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_ViewUserInfoBean()
Method Detail |
public java.lang.String getComments(java.lang.Integer userId, java.sql.Connection conn) throws java.rmi.RemoteException
userHome
- an UserHome
valueuserId
- a user idpublic java.lang.String getUserInfo(java.lang.Integer userId) throws java.rmi.RemoteException
userId
- a user idpublic java.lang.String getHTMLGeneralUserInformation(java.lang.String firstname, java.lang.String lastname, java.lang.String nickname, java.lang.String email, java.lang.String creationDate, int rating) throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic java.lang.String printCommentHeader()
public java.lang.String printComment(java.lang.String userName, java.lang.String date, java.lang.String comment, int fromUserId) throws java.rmi.RemoteException
String
containing HTML codejava.rmi.RemoteException
- if an error occurspublic java.lang.String printCommentFooter()
public 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 |