edu.rice.rubis.beans
Interface SB_ViewUserInfo

All Superinterfaces:
javax.ejb.EJBObject, java.rmi.Remote

public interface SB_ViewUserInfo
extends javax.ejb.EJBObject, java.rmi.Remote

This is the Remote Interface of the SB_ViewUserInfo Bean

Version:
1.1
Author:
Emmanuel Cecchet and Julie Marguerite

Method Summary
 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
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getComments

public java.lang.String getComments(java.lang.Integer userId,
                                    java.sql.Connection conn)
                             throws java.rmi.RemoteException
Get the comment related to a specific user.
Parameters:
userHome - an UserHome value
userId - a user id
Returns:
a string in html format
Since:
1.1

getUserInfo

public java.lang.String getUserInfo(java.lang.Integer userId)
                             throws java.rmi.RemoteException
Get the information about a user.
Parameters:
userId - a user id
Returns:
a string in html format
Since:
1.1

getHTMLGeneralUserInformation

public 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
Returns a string displaying general information about the user. The string contains HTML tags.
Returns:
string containing general user information
Throws:
java.rmi.RemoteException - if an error occurs

printCommentHeader

public java.lang.String printCommentHeader()
                                    throws java.rmi.RemoteException
Comment header printed function
Returns:
a string in html format
Since:
1.1

printComment

public java.lang.String printComment(java.lang.String userName,
                                     java.lang.String date,
                                     java.lang.String comment,
                                     int fromUserId)
                              throws java.rmi.RemoteException
Display comment information as an HTML table row
Returns:
a String containing HTML code
Throws:
java.rmi.RemoteException - if an error occurs
Since:
1.0

printCommentFooter

public java.lang.String printCommentFooter()
                                    throws java.rmi.RemoteException
Comment footer printed function
Returns:
a string in html format
Since:
1.1


Copyright © 2003 - ObjectWeb Consortium - All Rights Reserved.