org.ogf.graap.wsag.client.wsrf.impl
Class WsrfAgreementService

java.lang.Object
  extended by org.ogf.graap.wsag.client.wsrf.impl.WsrfAgreementService

public class WsrfAgreementService
extends Object

Default implementation of an agreement service client.

Author:
Oliver Waeldrich

Constructor Summary
WsrfAgreementService(WsrfResourceClient client)
           
 
Method Summary
 void destroy()
          
 String getAgreementId()
          
 AgreementContextType getContext()
          
 GuaranteeTermStateType[] getGuaranteeTermStates()
          
 String getName()
          
 ServiceTermStateType[] getServiceTermStates()
          
 AgreementStateType getState()
          
 TermTreeType getTerms()
          
 WsrfResourceClient getWebServiceClient()
          
 void terminate(TerminateInputType reason)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsrfAgreementService

public WsrfAgreementService(WsrfResourceClient client)
Parameters:
client - the WSRF client to use
Method Detail

getWebServiceClient

public WsrfResourceClient getWebServiceClient()


getContext

public AgreementContextType getContext()
                                throws ResourceUnavailableException

Throws:
ResourceUnavailableException

getGuaranteeTermStates

public GuaranteeTermStateType[] getGuaranteeTermStates()
                                                throws ResourceUnavailableException

Throws:
ResourceUnavailableException

getAgreementId

public String getAgreementId()
                      throws ResourceUnavailableException

Throws:
ResourceUnavailableException

getName

public String getName()
               throws ResourceUnavailableException

Throws:
ResourceUnavailableException

getServiceTermStates

public ServiceTermStateType[] getServiceTermStates()
                                            throws ResourceUnavailableException

Throws:
ResourceUnavailableException

getState

public AgreementStateType getState()
                            throws ResourceUnavailableException

Throws:
ResourceUnavailableException

getTerms

public TermTreeType getTerms()
                      throws ResourceUnavailableException

Throws:
ResourceUnavailableException

terminate

public void terminate(TerminateInputType reason)
               throws ResourceUnavailableException

Throws:
ResourceUnavailableException

destroy

public void destroy()
             throws ResourceUnknownException,
                    ResourceUnavailableException

Throws:
ResourceUnknownException
ResourceUnavailableException


Copyright © 2008-2012. All Rights Reserved.