org.astrogrid.community.client.service
Class CommunityServiceCoreDelegate

java.lang.Object
  extended byorg.astrogrid.community.client.service.CommunityServiceCoreDelegate
All Implemented Interfaces:
org.astrogrid.community.common.service.CommunityService, CommunityServiceDelegate, java.rmi.Remote
Direct Known Subclasses:
DatabaseManagerCoreDelegate, PolicyManagerCoreDelegate, PolicyServiceCoreDelegate, SecurityManagerCoreDelegate, SecurityServiceCoreDelegate

public class CommunityServiceCoreDelegate
extends java.lang.Object
implements org.astrogrid.community.common.service.CommunityService, CommunityServiceDelegate

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

See Also:
CommunityService

Constructor Summary
CommunityServiceCoreDelegate()
          Public constructor.
 
Method Summary
protected  org.astrogrid.community.common.service.CommunityService getCommunityService()
          Get a reference to our CommunityService.
 org.astrogrid.community.common.service.data.ServiceStatusData getServiceStatus()
          Service health check.
 void identifierException(java.rmi.RemoteException ouch)
          A converter utility to unpack a CommunityIdentifierException from a RemoteException.
 void policyException(java.rmi.RemoteException ouch)
          A converter utility to unpack a CommunityPolicyException from a RemoteException.
 void resourceException(java.rmi.RemoteException ouch)
          A converter utility to unpack a CommunityResourceException from a RemoteException.
 void securityException(java.rmi.RemoteException ouch)
          A converter utility to unpack a CommunitySecurityException from a RemoteException.
 void serviceException(java.rmi.RemoteException ouch)
          A converter utility to unpack a CommunityServiceException from a RemoteException.
protected  void setCommunityService(org.astrogrid.community.common.service.CommunityService service)
          Set our our CommunityService.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommunityServiceCoreDelegate

public CommunityServiceCoreDelegate()
Public constructor.

Method Detail

getCommunityService

protected org.astrogrid.community.common.service.CommunityService getCommunityService()
Get a reference to our CommunityService.


setCommunityService

protected void setCommunityService(org.astrogrid.community.common.service.CommunityService service)
Set our our CommunityService.


getServiceStatus

public org.astrogrid.community.common.service.data.ServiceStatusData getServiceStatus()
                                                                               throws org.astrogrid.community.common.exception.CommunityServiceException
Service health check.

Specified by:
getServiceStatus in interface org.astrogrid.community.common.service.CommunityService
Returns:
ServiceStatusData with details of the Service status.
Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If there is an server error.

serviceException

public void serviceException(java.rmi.RemoteException ouch)
                      throws org.astrogrid.community.common.exception.CommunityServiceException
A converter utility to unpack a CommunityServiceException from a RemoteException.

Throws:
org.astrogrid.community.common.exception.CommunityServiceException - If the RemoteException cause was a CommunityServiceException.

identifierException

public void identifierException(java.rmi.RemoteException ouch)
                         throws org.astrogrid.community.common.exception.CommunityIdentifierException
A converter utility to unpack a CommunityIdentifierException from a RemoteException.

Throws:
org.astrogrid.community.common.exception.CommunityIdentifierException - If the RemoteException cause was a CommunityIdentifierException.

securityException

public void securityException(java.rmi.RemoteException ouch)
                       throws org.astrogrid.community.common.exception.CommunitySecurityException
A converter utility to unpack a CommunitySecurityException from a RemoteException.

Throws:
org.astrogrid.community.common.exception.CommunitySecurityException - If the RemoteException cause was a CommunitySecurityException.

resourceException

public void resourceException(java.rmi.RemoteException ouch)
                       throws org.astrogrid.community.common.exception.CommunityResourceException
A converter utility to unpack a CommunityResourceException from a RemoteException.

Throws:
org.astrogrid.community.common.exception.CommunityResourceException - If the RemoteException cause was a CommunitySecurityException.

policyException

public void policyException(java.rmi.RemoteException ouch)
                     throws org.astrogrid.community.common.exception.CommunityPolicyException
A converter utility to unpack a CommunityPolicyException from a RemoteException.

Throws:
org.astrogrid.community.common.exception.CommunityPolicyException - If the RemoteException cause was a CommunityPolicyException.


Copyright © 2002-2007 AstroGrid. All Rights Reserved.