KickJava   Java API By Example, From Geeks To Geeks.

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


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_AboutMe 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_AboutMe extends EJBObject, Remote {
12
13    /**
14    * Authenticate the user and get the information about the user.
15    *
16    * @return a string in html format
17    * @since 1.1
18    */

19   public String JavaDoc getAboutMe(String JavaDoc username, String JavaDoc password) throws RemoteException;
20
21   /** List items the user is currently selling and sold in the past 30 days */
22   public String JavaDoc listItem(Integer JavaDoc userId, ItemHome iHome) throws RemoteException;
23
24   /** List items the user bought in the last 30 days*/
25   public String JavaDoc listBoughtItems(Integer JavaDoc userId, ItemHome iHome) throws RemoteException;
26
27   /** List items the user won in the last 30 days*/
28   public String JavaDoc listWonItems(Integer JavaDoc userId, ItemHome iHome, QueryHome qHome) throws RemoteException;
29
30  /** List comments about the user */
31   public String JavaDoc listComments(CommentHome home, Integer JavaDoc userId, UserHome uHome) throws RemoteException;
32
33   /** List items the user put a bid on in the last 30 days*/
34   public String JavaDoc listBids(Integer JavaDoc userId, String JavaDoc username, String JavaDoc password, ItemHome iHome, QueryHome qHome) throws RemoteException;
35
36   /**
37    * user's bought items list header printed function
38    *
39    * @return a string in html format
40    * @since 1.1
41    */

42   public String JavaDoc printUserBoughtItemHeader() throws RemoteException;
43
44   /**
45    * user's won items list header printed function
46    *
47    * @return a string in html format
48    * @since 1.1
49    */

50   public String JavaDoc printUserWonItemHeader() throws RemoteException;
51
52   /**
53    * user's bids list header printed function
54    *
55    * @return a string in html format
56    * @since 1.1
57    */

58   public String JavaDoc printUserBidsHeader() throws RemoteException;
59
60   /**
61    * items list printed function
62    *
63    * @return a string in html format
64    * @since 1.1
65    */

66   public String JavaDoc printItemUserHasBidOn(Bid bid, Item item, String JavaDoc username, String JavaDoc password) throws RemoteException;
67
68   /**
69    * user's sellings header printed function
70    *
71    * @return a string in html format
72    * @since 1.1
73    */

74  public String JavaDoc printSellHeader(String JavaDoc title) throws RemoteException;
75
76   /**
77    * Item footer printed function
78    *
79    * @return a string in html format
80    * @since 1.1
81    */

82  public String JavaDoc printItemFooter() throws RemoteException;
83
84   /**
85    * Construct a html highlighted string.
86    * @param msg the message to display
87    * @return a string in html format
88    * @since 1.1
89    */

90   public String JavaDoc printHTMLHighlighted(String JavaDoc msg) throws RemoteException;
91
92   /**
93    * Comment header printed function
94    *
95    * @return a string in html format
96    * @since 1.1
97    */

98   public String JavaDoc printCommentHeader() throws RemoteException;
99
100   /**
101    * Comment printed function
102    *
103    * @param userName the name of the user who is the subject of the comments
104    * @param comment the comment to display
105    * @return a string in html format
106    * @since 1.1
107    */

108   public String JavaDoc printComment(String JavaDoc userName, Comment comment) throws RemoteException;
109
110   /**
111    * Comment footer printed function
112    *
113    * @return a string in html format
114    * @since 1.1
115    */

116   public String JavaDoc printCommentFooter() throws RemoteException;
117
118
119 }
120
Popular Tags