|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Agreement
Agreement interface used by the server module. It provides the required methods to access the properties of
the agreement and to terminate the agreement instance. Moreover, it provides access to the domains-specific
agreement implementation via the #getAgreementInstance()
method.
AgreementFactory
Method Summary | |
---|---|
void |
addObserver(Observer o)
Adds a new observer to an agreement that gets notified of agreement state changes. |
String |
getAgreementId()
Returns the agreement id. |
AgreementContextType |
getContext()
|
Map<String,org.apache.xmlbeans.XmlObject> |
getExecutionContext()
Returns the persisted execution context for this agreement. |
GuaranteeTermStateType[] |
getGuaranteeTermStates()
|
Class<?> |
getImplementationClass()
Returns the class of the agreement implementation. |
String |
getName()
Returns the agreement name. |
ServiceTermStateType[] |
getServiceTermStates()
|
AgreementStateType |
getState()
|
TermTreeType |
getTerms()
|
Map<String,Object> |
getTransientExecutionContext()
Returns the transient execution context for this agreement. |
AgreementPropertiesType |
getXMLObject()
Returns the agreement properties as XmlObject . |
boolean |
hasChanged()
Returns true if the content of the agreement has changed, otherwise false. |
void |
notifyObservers()
|
void |
notifyObservers(Object arg)
Notifies all registered observer of an agreement's state change. |
void |
notifyReload(Map<String,org.apache.xmlbeans.XmlObject> executionCtx)
This method allows an agreement instance to get notified after reload. |
void |
setAgreementId(String agreementId)
Sets the ID of the agreement. |
void |
setContext(AgreementContextType context)
Sets the context of the agreement. |
void |
setGuaranteeTermStates(GuaranteeTermStateType[] guaranteeTermStateList)
Sets the guarantee term states of the agreement. |
void |
setName(String name)
Sets the name of the agreement. |
void |
setServiceTermStates(ServiceTermStateType[] serviceTermStateList)
Sets the service term states of the agreement. |
void |
setState(AgreementStateType agreementState)
Sets the state of the agreement. |
void |
setTerms(TermTreeType terms)
Sets the terms of the agreement. |
void |
setXmlObject(AgreementPropertiesType properties)
Sets the properties for this agreement explicitly. |
void |
terminate(TerminateInputType reason)
Terminates an agreement. |
boolean |
validate()
Validates the resource properties document of this instance. |
Method Detail |
---|
String getName()
String getAgreementId()
AgreementContextType getContext()
TermTreeType getTerms()
void terminate(TerminateInputType reason)
reason
- termination reasonAgreementStateType getState()
GuaranteeTermStateType[] getGuaranteeTermStates()
ServiceTermStateType[] getServiceTermStates()
boolean validate()
void notifyReload(Map<String,org.apache.xmlbeans.XmlObject> executionCtx)
notifyReload(Map)
method sets the execution context (see getExecutionContext()
) of
the agreement and invokes the #notifyReinitialized(Map)
method of this agreement instance.
executionCtx
- the current execution contextvoid setAgreementId(String agreementId)
agreementId
- the agreement id to setvoid setContext(AgreementContextType context)
context
- the agreement context to setvoid setName(String name)
name
- the agreement name to setvoid setTerms(TermTreeType terms)
terms
- the agreement terms to setvoid setState(AgreementStateType agreementState)
agreementState
- the agreement state to setvoid setGuaranteeTermStates(GuaranteeTermStateType[] guaranteeTermStateList)
guaranteeTermStateList
- the guarantee term states to setvoid setServiceTermStates(ServiceTermStateType[] serviceTermStateList)
serviceTermStateList
- the service term states to setAgreementPropertiesType getXMLObject()
XmlObject
.
void setXmlObject(AgreementPropertiesType properties)
properties
- the agreement properties to setMap<String,org.apache.xmlbeans.XmlObject> getExecutionContext()
Map<String,Object> getTransientExecutionContext()
Class<?> getImplementationClass()
void addObserver(Observer o)
o
- the observerObservable.addObserver(java.util.Observer)
void notifyObservers()
Observable.notifyObservers()
void notifyObservers(Object arg)
arg
- notification messageObservable.notifyObservers(java.lang.Object)
boolean hasChanged()
Observable.hasChanged()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |