org.ogf.graap.wsag.server.rest.acceptance
Class RestAcceptanceEndpointFacade

java.lang.Object
  extended by org.ogf.graap.wsag.server.rest.acceptance.RestAcceptanceEndpointFacade
All Implemented Interfaces:
RestAcceptanceEndpoint

public class RestAcceptanceEndpointFacade
extends Object
implements RestAcceptanceEndpoint

Author:
owaeld

Constructor Summary
RestAcceptanceEndpointFacade(String acceptanceId, AgreementAcceptanceListener listener)
           
 
Method Summary
 void accept(AcceptAgreementInputDocument input)
          Publishes an agreement acceptance message to the acceptance endpoint.
 void destroy()
          Destroys an acceptance endpoint.
 void reject(RejectAgreementInputDocument input)
          Publishes an agreement rejection message to the acceptance endpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestAcceptanceEndpointFacade

public RestAcceptanceEndpointFacade(String acceptanceId,
                                    AgreementAcceptanceListener listener)
Method Detail

reject

public void reject(RejectAgreementInputDocument input)
            throws org.apache.velocity.exception.ResourceNotFoundException,
                   ResourceUnavailableException
Description copied from interface: RestAcceptanceEndpoint
Publishes an agreement rejection message to the acceptance endpoint.

Specified by:
reject in interface RestAcceptanceEndpoint
Parameters:
input - the rejection input
Throws:
ResourceUnavailableException - the referenced resource is unavailable
org.apache.velocity.exception.ResourceNotFoundException

accept

public void accept(AcceptAgreementInputDocument input)
            throws org.apache.velocity.exception.ResourceNotFoundException,
                   ResourceUnavailableException
Description copied from interface: RestAcceptanceEndpoint
Publishes an agreement acceptance message to the acceptance endpoint.

Specified by:
accept in interface RestAcceptanceEndpoint
Parameters:
input - the acceptance input
Throws:
ResourceUnavailableException - the referenced resource is unavailable
org.apache.velocity.exception.ResourceNotFoundException

destroy

public void destroy()
             throws ResourceUnknownException,
                    ResourceUnavailableException
Description copied from interface: RestAcceptanceEndpoint
Destroys an acceptance endpoint.

Specified by:
destroy in interface RestAcceptanceEndpoint
Throws:
ResourceUnknownException - the referenced resource was not found
ResourceUnavailableException - the referenced resource is unavailable


Copyright © 2008-2012. All Rights Reserved.