org.astrogrid.community.client.delegate
Class PolicyServiceDelegate

java.lang.Object
  extended byorg.astrogrid.community.client.delegate.PolicyServiceDelegate

public class PolicyServiceDelegate
extends java.lang.Object

This API is going to be replaced during iter 5, and will be deprecated in iter 6.


Constructor Summary
PolicyServiceDelegate()
          Public constructor deals with getting our service (link) to the webservice.
 
Method Summary
 boolean checkPermissions(org.astrogrid.community.common.policy.data.PolicyCredentials credentials, java.lang.String resource, java.lang.String action)
          Call checkPermissions() on our service.
 boolean checkPermissions(java.lang.String account, java.lang.String group, java.lang.String resource, java.lang.String action)
          Wrapper method, with account and group identifiers exposed as Strings.
 org.astrogrid.community.common.policy.data.PolicyPermission getPolicyPermission()
          Access to the PolicyPermission recived by the last call to checkPermissions().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyServiceDelegate

public PolicyServiceDelegate()
Public constructor deals with getting our service (link) to the webservice.

Method Detail

checkPermissions

public boolean checkPermissions(java.lang.String account,
                                java.lang.String group,
                                java.lang.String resource,
                                java.lang.String action)
                         throws java.lang.Exception
Wrapper method, with account and group identifiers exposed as Strings.

Throws:
java.lang.Exception

checkPermissions

public boolean checkPermissions(org.astrogrid.community.common.policy.data.PolicyCredentials credentials,
                                java.lang.String resource,
                                java.lang.String action)
                         throws java.lang.Exception
Call checkPermissions() on our service.

Returns:
false if the check fails or we can't reach the service.
Throws:
java.lang.Exception

getPolicyPermission

public org.astrogrid.community.common.policy.data.PolicyPermission getPolicyPermission()
Access to the PolicyPermission recived by the last call to checkPermissions().



Copyright © 2002-2007 AstroGrid. All Rights Reserved.