org.ogf.graap.wsag.server.api.impl
Class AgreementContext

java.lang.Object
  extended by org.ogf.graap.wsag.server.api.impl.AgreementContext
All Implemented Interfaces:
IAgreementContext

public class AgreementContext
extends Object
implements IAgreementContext

SimpleActionContext

Author:
Oliver Waeldrich

Constructor Summary
AgreementContext(Agreement agreement)
          Creates a new execution context for an agreement instance.
 
Method Summary
 Agreement getAgreement()
          
 Map<String,org.apache.xmlbeans.XmlObject> getExecutionProperties()
          Persisted Execution properties map (typed as String/XMLObject) to execution context of the agreement.
 Map<String,Object> getTransientExecutionProperties()
          Transient execution properties map (typed as String/Object) to execution context of the agreement.
 void setExecutionProperties(Map<String,org.apache.xmlbeans.XmlObject> properties)
          Persisted Execution properties map (typed as String/XMLObject) to execution context of the agreement.
 void setTransientExecutionProperties(Map<String,Object> properties)
          Transient Execution properties map (typed as String/Object) to execution context of the agreement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgreementContext

public AgreementContext(Agreement agreement)
Creates a new execution context for an agreement instance.

Parameters:
agreement - existing agreement instance
Method Detail

getAgreement

public Agreement getAgreement()

Specified by:
getAgreement in interface IAgreementContext
Returns:
the agreement instance for which this context is valid

getExecutionProperties

public Map<String,org.apache.xmlbeans.XmlObject> getExecutionProperties()
Persisted Execution properties map (typed as String/XMLObject) to execution context of the agreement. This method returns the persisted execution properties of the associated agreement instance.

Specified by:
getExecutionProperties in interface IAgreementContext
Returns:
the persisted execution properties of the associated agreement instance
See Also:
Agreement#getAgreementInstance(), AbstractAgreementType.getExecutionContext()

setExecutionProperties

public void setExecutionProperties(Map<String,org.apache.xmlbeans.XmlObject> properties)
Persisted Execution properties map (typed as String/XMLObject) to execution context of the agreement. This method alters the persisted execution properties of the associated agreement instance.

Specified by:
setExecutionProperties in interface IAgreementContext
Parameters:
properties - the persisted execution properties to set
See Also:
Agreement#getAgreementInstance(), AbstractAgreementType.getExecutionContext()

getTransientExecutionProperties

public Map<String,Object> getTransientExecutionProperties()
Transient execution properties map (typed as String/Object) to execution context of the agreement. This method returns the transient execution properties of the associated agreement instance that are not persisted.

Specified by:
getTransientExecutionProperties in interface IAgreementContext
Returns:
the transient execution properties of the associated agreement instance
See Also:
Agreement#getAgreementInstance(), AbstractAgreementType.getExecutionContext()

setTransientExecutionProperties

public void setTransientExecutionProperties(Map<String,Object> properties)
Transient Execution properties map (typed as String/Object) to execution context of the agreement. This method alters the transient execution properties of the associated agreement instance.

Specified by:
setTransientExecutionProperties in interface IAgreementContext
Parameters:
properties - the transient execution properties to set
See Also:
Agreement#getAgreementInstance(), AbstractAgreementType.getExecutionContext()


Copyright © 2008-2012. All Rights Reserved.