org.astrogrid.community.client.policy.service
Class PolicyServiceCoreDelegate

java.lang.Object
  extended byorg.astrogrid.community.client.service.CommunityServiceCoreDelegate
      extended byorg.astrogrid.community.client.policy.service.PolicyServiceCoreDelegate
All Implemented Interfaces:
org.astrogrid.community.common.service.CommunityService, CommunityServiceDelegate, org.astrogrid.community.common.policy.service.PolicyService, PolicyServiceDelegate, java.rmi.Remote
Direct Known Subclasses:
PolicyServiceMockDelegate, PolicyServiceSoapDelegate

public class PolicyServiceCoreDelegate
extends CommunityServiceCoreDelegate
implements org.astrogrid.community.common.policy.service.PolicyService, PolicyServiceDelegate

The core delegate for our PolicyService service. This acts as a wrapper for a PolicyService service, and converts RemoteExceptions into CommunityServiceException.


Constructor Summary
PolicyServiceCoreDelegate()
          Public constructor.
 
Method Summary
 org.astrogrid.community.common.policy.data.PolicyCredentials checkMembership(org.astrogrid.community.common.policy.data.PolicyCredentials credentials)
          Confirm membership.
 org.astrogrid.community.common.policy.data.PolicyPermission checkPermissions(org.astrogrid.community.common.policy.data.PolicyCredentials credentials, java.lang.String resource, java.lang.String action)
          Confirm permissions.
protected  org.astrogrid.community.common.policy.service.PolicyService getPolicyService()
          Get a reference to our PolicyService service.
protected  void setPolicyService(org.astrogrid.community.common.policy.service.PolicyService service)
          Set our our PolicyService service.
 
Methods inherited from class org.astrogrid.community.client.service.CommunityServiceCoreDelegate
getCommunityService, getServiceStatus, identifierException, policyException, resourceException, securityException, serviceException, setCommunityService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.astrogrid.community.common.service.CommunityService
getServiceStatus
 
Methods inherited from interface org.astrogrid.community.client.service.CommunityServiceDelegate
getServiceStatus
 

Constructor Detail

PolicyServiceCoreDelegate

public PolicyServiceCoreDelegate()
Public constructor.

Method Detail

getPolicyService

protected org.astrogrid.community.common.policy.service.PolicyService getPolicyService()
Get a reference to our PolicyService service.


setPolicyService

protected void setPolicyService(org.astrogrid.community.common.policy.service.PolicyService service)
Set our our PolicyService service.


checkPermissions

public org.astrogrid.community.common.policy.data.PolicyPermission checkPermissions(org.astrogrid.community.common.policy.data.PolicyCredentials credentials,
                                                                                    java.lang.String resource,
                                                                                    java.lang.String action)
                                                                             throws org.astrogrid.community.common.exception.CommunityServiceException,
                                                                                    org.astrogrid.community.common.exception.CommunityPolicyException,
                                                                                    org.astrogrid.community.common.exception.CommunityIdentifierException
Confirm permissions.

Specified by:
checkPermissions in interface org.astrogrid.community.common.policy.service.PolicyService
Parameters:
credentials - The credentials, containing the account and group identifiers.
resource - The resource identifier.
action - The action you want to perform.
Returns:
A PolicyPermission object confirming the permission.
Throws:
org.astrogrid.community.common.exception.CommunityIdentifierException - If one of the identifiers is invalid.
org.astrogrid.community.common.exception.CommunityPolicyException - If there is no matching permission.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.

checkMembership

public org.astrogrid.community.common.policy.data.PolicyCredentials checkMembership(org.astrogrid.community.common.policy.data.PolicyCredentials credentials)
                                                                             throws org.astrogrid.community.common.exception.CommunityServiceException,
                                                                                    org.astrogrid.community.common.exception.CommunityPolicyException,
                                                                                    org.astrogrid.community.common.exception.CommunityIdentifierException
Confirm membership.

Specified by:
checkMembership in interface org.astrogrid.community.common.policy.service.PolicyService
Parameters:
credentials - The credentials, containing the account and group identifiers.
Returns:
A PolicyCredentials object confirming the membership.
Throws:
org.astrogrid.community.common.exception.CommunityIdentifierException - If one of the identifiers is invalid.
org.astrogrid.community.common.exception.CommunityPolicyException - If there is no matching permission.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.


Copyright © 2002-2007 AstroGrid. All Rights Reserved.