KickJava   Java API By Example, From Geeks To Geeks.

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


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_BrowseCategories 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_BrowseCategories extends EJBObject, Remote {
12
13   /**
14    * Get all the categories from the database.
15    *
16    * @return a string that is the list of categories in html format
17    * @since 1.1
18    */

19   public String JavaDoc getCategories(String JavaDoc regionName, String JavaDoc userName, String JavaDoc password) throws RemoteException;
20
21   /**
22    * Category related printed functions
23    *
24    * @param category the category to display
25    * @return a string in html format
26    * @since 1.1
27    */

28
29   public String JavaDoc printCategory(Category category) throws RemoteException;
30
31   /**
32    * List all the categories with links to browse items by region
33    * @return a string in html format
34    * @since 1.1
35    */

36   public String JavaDoc printCategoryByRegion(Category category, int regionId) throws RemoteException;
37
38   /**
39    * Lists all the categories and links to the sell item page
40    * @return a string in html format
41    * @since 1.1
42    */

43   public String JavaDoc printCategoryToSellItem(Category category, int userId) throws RemoteException;
44
45 }
46
Popular Tags