org.astrogrid.community.client.policy.manager
Interface ResourceManagerDelegate

All Superinterfaces:
CommunityServiceDelegate
All Known Subinterfaces:
PolicyManagerDelegate
All Known Implementing Classes:
PolicyManagerCoreDelegate, PolicyManagerMockDelegate, PolicyManagerSoapDelegate

public interface ResourceManagerDelegate
extends CommunityServiceDelegate

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


Method Summary
 org.astrogrid.community.common.policy.data.ResourceData addResource()
          Register a new Resource.
 org.astrogrid.community.common.policy.data.ResourceData delResource(java.lang.String ident)
          Delete a Resource.
 org.astrogrid.community.common.policy.data.ResourceData getResource(java.lang.String ident)
          Request the details for a Resource.
 java.lang.Object[] getResources()
          Request the details for a Resource.
 org.astrogrid.community.common.policy.data.ResourceData setResource(org.astrogrid.community.common.policy.data.ResourceData resource)
          Update the details for a Resource.
 
Methods inherited from interface org.astrogrid.community.client.service.CommunityServiceDelegate
getServiceStatus
 

Method Detail

addResource

public org.astrogrid.community.common.policy.data.ResourceData addResource()
                                                                    throws org.astrogrid.community.common.exception.CommunityServiceException
Register a new Resource.

Returns:
A new ResourceData object to represent the resource.
Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.

getResource

public org.astrogrid.community.common.policy.data.ResourceData getResource(java.lang.String ident)
                                                                    throws org.astrogrid.community.common.exception.CommunityIdentifierException,
                                                                           org.astrogrid.community.common.exception.CommunityResourceException,
                                                                           org.astrogrid.community.common.exception.CommunityServiceException
Request the details for a Resource.

Returns:
The requested ResourceData object.
Throws:
org.astrogrid.community.common.exception.CommunityResourceException - If unable to locate the resource.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the resource identifier is not valid.

getResources

public java.lang.Object[] getResources()
Request the details for a Resource.

Returns:
The requested ResourceData object.
Throws:
org.astrogrid.community.common.exception.CommunityResourceException - If unable to locate the resource.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the resource identifier is not valid.

setResource

public org.astrogrid.community.common.policy.data.ResourceData setResource(org.astrogrid.community.common.policy.data.ResourceData resource)
                                                                    throws org.astrogrid.community.common.exception.CommunityIdentifierException,
                                                                           org.astrogrid.community.common.exception.CommunityResourceException,
                                                                           org.astrogrid.community.common.exception.CommunityServiceException
Update the details for a Resource.

Returns:
The updated ResourceData.
Throws:
org.astrogrid.community.common.exception.CommunityResourceException - If unable to locate the resource.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the resource identifier is not valid.

delResource

public org.astrogrid.community.common.policy.data.ResourceData delResource(java.lang.String ident)
                                                                    throws org.astrogrid.community.common.exception.CommunityIdentifierException,
                                                                           org.astrogrid.community.common.exception.CommunityResourceException,
                                                                           org.astrogrid.community.common.exception.CommunityServiceException
Delete a Resource.

Returns:
The original ResourceData.
Throws:
org.astrogrid.community.common.exception.CommunityResourceException - If unable to locate the resource.
org.astrogrid.community.common.exception.CommunityServiceException - If there is an internal error in the service.
org.astrogrid.community.common.exception.CommunityIdentifierException - If the identifier is not valid.


Copyright © 2002-2007 AstroGrid. All Rights Reserved.