org.ogf.graap.wsag.wsrf.impl
Class AgreementWsResource
java.lang.Object
   org.apache.muse.core.SimpleResource
org.apache.muse.core.SimpleResource
       org.apache.muse.ws.resource.impl.SimpleWsResource
org.apache.muse.ws.resource.impl.SimpleWsResource
           org.ogf.graap.wsag.wsrf.AbstractWsResource
org.ogf.graap.wsag.wsrf.AbstractWsResource
               org.ogf.graap.wsag.wsrf.impl.AgreementWsResource
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
 
 
 
| 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 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 | 
 
AgreementWsResource
public AgreementWsResource()
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:
- getInterfaceNamein 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 AgreementPropertiesCollectionfor retrieving theAgreementPropertiesDocumentvia the WSRF
 GetResourcePropertyDocument method.
 
- 
- Overrides:
- createPropertyCollectionin 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.