org.astrogrid.community.client.policy.service
Interface PolicyServiceDelegate

All Superinterfaces:
CommunityServiceDelegate
All Known Implementing Classes:
PolicyServiceCoreDelegate, PolicyServiceMockDelegate, PolicyServiceSoapDelegate

public interface PolicyServiceDelegate
extends CommunityServiceDelegate

Interface for our PolicyService delegate. This mirrors the PolicyService interface, without the RemoteExceptions.


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.
 
Methods inherited from interface org.astrogrid.community.client.service.CommunityServiceDelegate
getServiceStatus
 

Method Detail

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.

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.

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.