View Javadoc

1   /*
2    * <cvs:source>$Source: /devel/astrogrid/community/common/src/java/org/astrogrid/community/common/policy/manager/CommunityManager.java,v $</cvs:source>
3    * <cvs:author>$Author: dave $</cvs:author>
4    * <cvs:date>$Date: 2004/06/18 13:45:20 $</cvs:date>
5    * <cvs:version>$Revision: 1.8 $</cvs:version>
6    *
7    * <cvs:log>
8    *   $Log: CommunityManager.java,v $
9    *   Revision 1.8  2004/06/18 13:45:20  dave
10   *   Merged development branch, dave-dev-200406081614, into HEAD
11   *
12   *   Revision 1.7.36.2  2004/06/17 13:38:59  dave
13   *   Tidied up old CVS log entries
14   *
15   * </cvs:log>
16   *
17   */
18  package org.astrogrid.community.common.policy.manager ;
19  
20  import java.rmi.Remote ;
21  import java.rmi.RemoteException ;
22  
23  import org.astrogrid.community.common.policy.data.CommunityData ;
24  import org.astrogrid.community.common.service.CommunityService ;
25  
26  import org.astrogrid.community.common.exception.CommunityPolicyException     ;
27  import org.astrogrid.community.common.exception.CommunityServiceException    ;
28  import org.astrogrid.community.common.exception.CommunityIdentifierException ;
29  
30  /***
31   * JUnit test for CommunityManager.
32   *
33   */
34  public interface CommunityManager
35      extends Remote, CommunityService
36      {
37      /***
38       * Add a new Community, given the Community ident.
39       * @param  ident The Community identifier.
40       * @return A CommunityData for the Community.
41       * @throws CommunityIdentifierException If the identifier is not valid.
42       * @throws CommunityPolicyException If the identifier is already in the database.
43       * @throws CommunityServiceException If there is an internal error in the service.
44       * @throws RemoteException If the WebService call fails.
45       *
46       */
47      public CommunityData addCommunity(String ident)
48          throws RemoteException, CommunityServiceException, CommunityIdentifierException, CommunityPolicyException ;
49  
50      /***
51       * Request a Community details, given the Community ident.
52       * @param  ident The Community identifier.
53       * @return A CommunityData for the Community.
54       * @throws CommunityIdentifierException If the identifier is not valid.
55       * @throws CommunityPolicyException If the identifier is not in the database.
56       * @throws CommunityServiceException If there is an internal error in the service.
57       * @throws RemoteException If the WebService call fails.
58       *
59       */
60      public CommunityData getCommunity(String ident)
61          throws RemoteException, CommunityServiceException, CommunityIdentifierException, CommunityPolicyException ;
62  
63      /***
64       * Update a Community.
65       * @param  community The new CommunityData to update.
66       * @return A new CommunityData for the Community.
67       * @throws CommunityIdentifierException If the identifier is not valid.
68       * @throws CommunityPolicyException If the identifier is not in the database.
69       * @throws CommunityServiceException If there is an internal error in the service.
70       * @throws RemoteException If the WebService call fails.
71       *
72       */
73      public CommunityData setCommunity(CommunityData community)
74          throws RemoteException, CommunityServiceException, CommunityIdentifierException, CommunityPolicyException ;
75  
76      /***
77       * Delete a Community.
78       * @param  ident The Community identifier.
79       * @return The CommunityData for the old Community.
80       * @throws CommunityIdentifierException If the identifier is not valid.
81       * @throws CommunityPolicyException If the identifier is not in the database.
82       * @throws CommunityServiceException If there is an internal error in the service.
83       * @throws RemoteException If the WebService call fails.
84       *
85       */
86      public CommunityData delCommunity(String ident)
87          throws RemoteException, CommunityServiceException, CommunityIdentifierException, CommunityPolicyException ;
88  
89      /***
90       * Request a list of Communities.
91       * @return An array of CommunityData objects.
92       * @throws CommunityServiceException If there is an internal error in the service.
93       * @throws RemoteException If the WebService call fails.
94       *
95       */
96      public Object[] getCommunityList()
97          throws RemoteException, CommunityServiceException ;
98  
99      }