View Javadoc

1   /*
2    * <cvs:source>$Source: /devel/astrogrid/community/client/src/java/org/astrogrid/community/client/policy/manager/PermissionManagerDelegate.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.8 $</cvs:version>
6    *
7    * <cvs:log>
8    *   $Log: PermissionManagerDelegate.java,v $
9    *   Revision 1.8  2004/11/22 13:03:04  jdt
10   *   Merges from Comm_KMB_585
11   *
12   *   Revision 1.7  2004/10/29 15:50:05  jdt
13   *   merges from Community_AdminInterface (bug 579)
14   *
15   *   Revision 1.6.100.1  2004/10/18 22:10:28  KevinBenson
16   *   some bug fixes to the PermissionManager.  Also made it throw some exceptions.
17   *   Made  it and GroupManagerImnpl use the Resolver objects to actually get a group(PermissionManageriMnpl)
18   *   or account (GroupMember) from the other community.  Changed also for it to grab a ResourceData from the
19   *   database to verifity it is in our database.  Add a few of these resolver dependencies as well.
20   *   And last but not least fixed the GroupMemberData object to get rid of a few set methods so Castor
21   *   will now work correctly in Windows
22   *
23   *   Revision 1.6  2004/06/18 13:45:19  dave
24   *   Merged development branch, dave-dev-200406081614, into HEAD
25   *
26   *   Revision 1.5.38.2  2004/06/17 15:10:03  dave
27   *   Removed unused imports (PMD report).
28   *
29   *   Revision 1.5.38.1  2004/06/17 13:38:58  dave
30   *   Tidied up old CVS log entries
31   *
32   * </cvs:log>
33   *
34   */
35  package org.astrogrid.community.client.policy.manager ;
36  
37  import org.astrogrid.community.client.service.CommunityServiceDelegate ;
38  
39  import org.astrogrid.community.common.policy.data.PolicyPermission ;
40  import org.astrogrid.community.common.exception.CommunityPolicyException     ;
41  import org.astrogrid.community.common.exception.CommunityServiceException    ;
42  import org.astrogrid.community.common.exception.CommunityIdentifierException ;
43  /***
44   * Interface for our PermissionManager delegate.
45   * This extends the PermissionManager interface, without the RemoteExceptions.
46   *
47   */
48  public interface PermissionManagerDelegate
49      extends CommunityServiceDelegate
50      {
51      /***
52       * Create a new PolicyPermission.
53       *
54       */
55      public PolicyPermission addPermission(String resource, String group, String action)
56        throws CommunityServiceException, CommunityIdentifierException, CommunityPolicyException;
57  
58      /***
59       * Request a PolicyPermission.
60       *
61       */
62      public PolicyPermission getPermission(String resource, String group, String action)
63          throws CommunityServiceException, CommunityIdentifierException, CommunityPolicyException;
64  
65      /***
66       * Update a PolicyPermission.
67       *
68       */
69      public PolicyPermission setPermission(PolicyPermission permission)
70          throws CommunityServiceException, CommunityIdentifierException, CommunityPolicyException;
71  
72      /***
73       * Delete a PolicyPermission.
74       *
75       */
76      public boolean delPermission(String resource, String group, String action)
77        throws CommunityServiceException, CommunityIdentifierException, CommunityPolicyException;
78      
79      /***
80       * Delete a PolicyPermission.
81       *
82       */
83      public Object[] getPermissions();
84      
85  
86      }