View Javadoc

1   /*
2    * <cvs:source>$Source: /devel/astrogrid/community/client/src/java/org/astrogrid/community/client/policy/manager/GroupMemberManagerDelegate.java,v $</cvs:source>
3    * <cvs:author>$Author: jdt $</cvs:author>
4    * <cvs:date>$Date: 2004/11/22 13:03:04 $</cvs:date>
5    * <cvs:version>$Revision: 1.2 $</cvs:version>
6    *
7    * <cvs:log>
8    *   $Log: GroupMemberManagerDelegate.java,v $
9    *   Revision 1.2  2004/11/22 13:03:04  jdt
10   *   Merges from Comm_KMB_585
11   *
12   *   Revision 1.1.2.2  2004/11/08 22:08:21  KevinBenson
13   *   added groupmember and permissionmanager tests.  Changed the install.xml to use eperate file names
14   *   instead of the same filename
15   *
16   *   Revision 1.1.2.1  2004/11/05 08:55:49  KevinBenson
17   *   Moved the GroupMember out of PolicyManager in the commons and client section.
18   *   Added more unit tests for GroupMember and PermissionManager for testing.
19   *   Still have some errors that needs some fixing.
20   *
21   *   Revision 1.7  2004/06/18 13:45:19  dave
22   *   Merged development branch, dave-dev-200406081614, into HEAD
23   *
24   *   Revision 1.6.36.2  2004/06/17 15:10:03  dave
25   *   Removed unused imports (PMD report).
26   *
27   *   Revision 1.6.36.1  2004/06/17 13:38:58  dave
28   *   Tidied up old CVS log entries
29   *
30   * </cvs:log>
31   *
32   */
33  package org.astrogrid.community.client.policy.manager ;
34  
35  import org.astrogrid.community.common.policy.data.GroupMemberData ;
36  
37  import org.astrogrid.community.common.exception.CommunityPolicyException     ;
38  import org.astrogrid.community.common.exception.CommunityServiceException    ;
39  import org.astrogrid.community.common.exception.CommunityIdentifierException ;
40  
41  import org.astrogrid.community.client.service.CommunityServiceDelegate ;
42  
43  /***
44   * Interface for our GroupManager delegate.
45   * This mirrors the GroupManager interface, without the RemoteExceptions.
46   *
47   */
48  public interface GroupMemberManagerDelegate
49      extends CommunityServiceDelegate
50      {
51  
52      /***
53       * Add a new Group.
54       * @param  ident The Group identifier.
55       * @return A GroupData for the Group.
56       * @throws CommunityIdentifierException If the identifier is not valid.
57       * @throws CommunityPolicyException If the identifier is already in the database.
58       * @throws CommunityServiceException If there is an internal error in the service.
59       *
60       */
61      public GroupMemberData addGroupMember(String account, String group)
62          throws CommunityServiceException, CommunityIdentifierException, CommunityPolicyException ;
63  
64      /***
65       * Add a new Group.
66       * @param  data The GroupData to add.
67       * @return A new GroupData for the Group.
68       * @throws CommunityIdentifierException If the identifier is not valid.
69       * @throws CommunityPolicyException If the identifier is already in the database.
70       * @throws CommunityServiceException If there is an internal error in the service.
71       *
72       */
73      public GroupMemberData delGroupMember(String account, String group)
74          throws CommunityServiceException, CommunityIdentifierException, CommunityPolicyException ;
75  
76      /***
77       * Request a Group details.
78       * @param  ident The Group identifier.
79       * @return A GroupData for the Group.
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       *
84       */
85      public Object[] getGroupMembers(String group)
86          throws CommunityServiceException, CommunityIdentifierException, CommunityPolicyException ;
87      
88      /***
89       * Request a Group details.
90       * @param  ident The Group identifier.
91       * @return A GroupData for the Group.
92       * @throws CommunityIdentifierException If the identifier is not valid.
93       * @throws CommunityPolicyException If the identifier is not in the database.
94       * @throws CommunityServiceException If there is an internal error in the service.
95       *
96       */
97      public Object[] getGroupMembers()
98          throws CommunityServiceException, CommunityIdentifierException, CommunityPolicyException ;
99      
100     /***
101      * Request a Group details.
102      * @param  ident The Group identifier.
103      * @return A GroupData for the Group.
104      * @throws CommunityIdentifierException If the identifier is not valid.
105      * @throws CommunityPolicyException If the identifier is not in the database.
106      * @throws CommunityServiceException If there is an internal error in the service.
107      *
108      */
109     public GroupMemberData getGroupMember(String account, String group)
110         throws CommunityServiceException, CommunityIdentifierException, CommunityPolicyException ;    
111     
112     }