1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 }