org.ogf.graap.wsag.wsrf.impl
Class AgreementWsResource

java.lang.Object
  extended by org.apache.muse.core.SimpleResource
      extended by org.apache.muse.ws.resource.impl.SimpleWsResource
          extended by org.ogf.graap.wsag.wsrf.AbstractWsResource
              extended by org.ogf.graap.wsag.wsrf.impl.AgreementWsResource
All Implemented Interfaces:
org.apache.muse.core.Initialization, org.apache.muse.core.InitializationParameters, org.apache.muse.core.Resource, org.apache.muse.core.Shutdown, org.apache.muse.ws.resource.WsResource

public class AgreementWsResource
extends AbstractWsResource

Default implementation of an agreement WSRF resource. Each agreement WSRF resource has an associated agreement instance, that implements for example agreement monitoring capabilities.

Author:
Oliver Waeldrich

Constructor Summary
AgreementWsResource()
           
 
Method Summary
 void addCapability(org.apache.muse.core.Capability arg0)
           
protected  org.apache.muse.ws.resource.properties.ResourcePropertyCollection createPropertyCollection()
          Returns an AgreementPropertiesCollection for retrieving the AgreementPropertiesDocument via the WSRF GetResourcePropertyDocument method.
 Agreement getAgreement()
           
 org.apache.muse.core.Capability getCapability(String arg0)
           
 Collection getCapabilityURIs()
           
 PersistentAgreementFactory getFactory()
           
 EndpointReferenceType getFactoryEPR()
           
 QName getInterfaceName()
          
 WsagSession getSession()
           
 boolean hasCapability(String arg0)
           
 void setAgreement(Agreement agreement)
           
 void setFactory(PersistentAgreementFactory factory)
           
 void setFactoryEPR(EndpointReferenceType factoryEPR)
           
 void setSession(WsagSession session)
           
 void setSubject(Subject subject)
          Sets the subject of the entity that created the agreement instance.
 
Methods inherited from class org.ogf.graap.wsag.wsrf.AbstractWsResource
initialize, isInitialized, setEndpointReference
 
Methods inherited from class org.apache.muse.ws.resource.impl.SimpleWsResource
createMetadataDescriptor, createPropertiesSchema, getPropertyCollection
 
Methods inherited from class org.apache.muse.core.SimpleResource
addCapability, getCapability, getCapabilityActions, getCapabilityForAction, getCapabilityURIs, getContextPath, getEndpointReference, getEnvironment, getInitializationParameter, getInitializationParameters, getLog, getResourceManager, getWsdlPath, getWsdlPortType, hasBeenInitialized, hasBeenShutdown, hasCapability, initializeCapabilities, invoke, setContextPath, setEndpointReference, setEnvironment, setInitializationParameters, setLog, setResourceManager, setWsdlPath, setWsdlPortType, shutdown, shutdownCapabilities, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.muse.core.Resource
getContextPath, getEndpointReference, getEnvironment, getLog, getResourceManager, getWsdlPath, getWsdlPortType, invoke, setContextPath, setEndpointReference, setEnvironment, setLog, setResourceManager, setWsdlPath, setWsdlPortType
 
Methods inherited from interface org.apache.muse.core.Initialization
hasBeenInitialized
 
Methods inherited from interface org.apache.muse.core.InitializationParameters
getInitializationParameter, getInitializationParameters, setInitializationParameters
 
Methods inherited from interface org.apache.muse.core.Shutdown
hasBeenShutdown, shutdown
 

Constructor Detail

AgreementWsResource

public AgreementWsResource()
Method Detail

setSubject

public void setSubject(Subject subject)
Sets the subject of the entity that created the agreement instance.

Parameters:
subject - the subject to set

getAgreement

public Agreement getAgreement()
                       throws org.apache.ws.security.WSSecurityException
Returns:
the associated agreement instance
Throws:
org.apache.ws.security.WSSecurityException - indicates that the user that tries to access the agreement instance is not the one that created this instance

setAgreement

public void setAgreement(Agreement agreement)
Parameters:
agreement - the associated agreement instance

setSession

public void setSession(WsagSession session)
Parameters:
session - the agreement session

getSession

public WsagSession getSession()
Returns:
the agreement session

getInterfaceName

public QName getInterfaceName()

Specified by:
getInterfaceName in class AbstractWsResource
Returns:
the QName of the implemented port type

getFactoryEPR

public EndpointReferenceType getFactoryEPR()
Returns:
the factoryEPR

setFactoryEPR

public void setFactoryEPR(EndpointReferenceType factoryEPR)
Parameters:
factoryEPR - the factoryEPR to set

createPropertyCollection

protected org.apache.muse.ws.resource.properties.ResourcePropertyCollection createPropertyCollection()
Returns an AgreementPropertiesCollection for retrieving the AgreementPropertiesDocument via the WSRF GetResourcePropertyDocument method.

Overrides:
createPropertyCollection in class org.apache.muse.ws.resource.impl.SimpleWsResource
Returns:
the agreement resource property collection
See Also:
AgreementPropertiesCollection, SimpleWsResource.createPropertyCollection()

getFactory

public PersistentAgreementFactory getFactory()

setFactory

public void setFactory(PersistentAgreementFactory factory)

addCapability

public void addCapability(org.apache.muse.core.Capability arg0)

getCapability

public org.apache.muse.core.Capability getCapability(String arg0)

getCapabilityURIs

public Collection getCapabilityURIs()

hasCapability

public boolean hasCapability(String arg0)


Copyright © 2008-2012. All Rights Reserved.