KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > edu > rice > rubis > beans > SB_ViewUserInfo


1 package edu.rice.rubis.beans;
2
3 import javax.ejb.*;
4 import java.rmi.*;
5
6 /**
7  * This is the Remote Interface of the SB_ViewUserInfo Bean
8  * @author <a HREF="mailto:cecchet@rice.edu">Emmanuel Cecchet</a> and <a HREF="mailto:julie.marguerite@inrialpes.fr">Julie Marguerite</a>
9  * @version 1.1
10  */

11 public interface SB_ViewUserInfo extends EJBObject, Remote {
12
13   /**
14    * Get the comment related to a specific user.
15    *
16    * @param userHome an <code>UserHome</code> value
17    * @param userId a user id
18    * @return a string in html format
19    * @since 1.1
20    */

21   public String JavaDoc getComments(UserHome userHome, Integer JavaDoc userId) throws RemoteException;
22
23   /**
24    * Get the information about a user.
25    *
26    * @param userId a user id
27    * @return a string in html format
28    * @since 1.1
29    */

30   public String JavaDoc getUserInfo(Integer JavaDoc userId) throws RemoteException;
31
32   /**
33    * Comment header printed function
34    *
35    * @return a string in html format
36    * @since 1.1
37    */

38   public String JavaDoc printCommentHeader() throws RemoteException;
39
40   /**
41    * Comment printed function
42    *
43    * @param userName the name of the user who is the subject of the comments
44    * @param comment the comment to display
45    * @return a string in html format
46    * @since 1.1
47    */

48   public String JavaDoc printComment(String JavaDoc userName, Comment comment) throws RemoteException;
49
50   /**
51    * Comment footer printed function
52    *
53    * @return a string in html format
54    * @since 1.1
55    */

56   public String JavaDoc printCommentFooter() throws RemoteException;
57
58
59 }
60
Popular Tags