sample.impl
Class SampleResourceImpl

java.lang.Object
  extended by uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite
      extended by sample.impl.SampleResourceImpl
All Implemented Interfaces:
SampleResource, WSResourceLifetime, IdentifiableResource, PolicyManagement, ResourceMetadata

public class SampleResourceImpl
extends GridServiceLite
implements SampleResource

The implementation of SampleService. The mapping from the interface to this class is in the implementationfactory.properties file.


Field Summary
 
Fields inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite
factory, groupUtils, management, NO_ACCOUNT_NEEDED, pbacUtils, pdp, proxyFactory, thisServiceAddress, wsdlCache
 
Fields inherited from interface sample.SampleResource
SAMPLE_RESOURCE_TYPE
 
Constructor Summary
SampleResourceImpl()
           
 
Method Summary
 void destroy()
           
 Document getAtomFeed(String atomFeed, String serviceBase)
          Return notices from the service as an Atom feed.
protected  Class<? extends GridResource> getResourceType(String resourceID)
          Return the class of this resource's bean.
 
Methods inherited from class uk.ac.soton.itinnovation.grid.service.utils.gridservit.GridServiceLite
addHibernatedObject, addPolicyRule, addTrustedAccountService, deleteHibernatedObject, generateEPR, getAvailableSignals, getConversationFromContext, getCurrentUser, getEPR, getEPR, getManagingConversation, getPolicyRules, getPrivateKey, getResourceFromEPR, GetResourceProperty, getResources, getResources, getResourcesFromEPRs, getSelectedRegistries, getServiceDatabaseKey, getServiceFromEPR, getServiceMatchPattern, getServiceProviderCertificate, getServiceProviderID, getServiceProviderIssuer, getTrustedAccountServices, getValidRoles, loadLocalRegistry, removePolicyRule, removeTrustedAccountService, RequestSecurityToken_Issuance, RequestSecurityToken_Validation, RequestSecurityToken, setLabel, setLabel, signal, toMatchRules, validateOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.types.PolicyManagement
addPolicyRule, getPolicyRules, getValidRoles, removePolicyRule
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.types.ResourceMetadata
getEPR, setLabel
 
Methods inherited from interface uk.ac.soton.itinnovation.grid.types.IdentifiableResource
getServiceMatchPattern
 

Constructor Detail

SampleResourceImpl

public SampleResourceImpl()
Method Detail

getResourceType

protected Class<? extends GridResource> getResourceType(String resourceID)
Description copied from class: GridServiceLite
Return the class of this resource's bean. Override this in subclasses if your service is contextualised. Often, resourceID can be ignored as each service only manages one type of bean anyway.

Overrides:
getResourceType in class GridServiceLite

destroy

public void destroy()
             throws RemoteException
Specified by:
destroy in interface WSResourceLifetime
Throws:
RemoteException

getAtomFeed

public Document getAtomFeed(String atomFeed,
                            String serviceBase)
Return notices from the service as an Atom feed. These notices are displayed on the main admin page and can also be polled by the administrator using a news aggregator. The feed should be used to alert the admin to configuration problems and any other important issues that come up.



Copyright © 2001-2008 University of Southampton IT Innovation Centre. All Rights Reserved.