|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ogf.graap.wsag.server.engine.TemplateRegistry
public class TemplateRegistry
The template registry is the central store of factory actions. An AgreementFactoryAction
implements
the required functionality to create templates, negotiate offer, and create agreement. Each factory action
is identified by the agreement template, which is generated by the factory action.
AgreementFactoryAction
,
AbstractGetTemplateAction
,
AbstractNegotiationAction
,
AbstractCreateAgreementAction
Constructor Summary | |
---|---|
TemplateRegistry()
|
Method Summary | |
---|---|
void |
add(AgreementFactoryAction action)
Adds a new factory action to the registry |
AgreementFactoryAction |
findAction(String name)
Finds the factory action for a template with a given name. |
AgreementFactoryAction |
findAction(String name,
String version)
Finds the factory action for a template with a given name. |
AgreementTemplateType |
findTemplate(String name)
Finds a template with a given name. |
AgreementTemplateType |
findTemplate(String name,
String version)
Finds a template with a given name and version. |
AgreementTemplateType[] |
getAllTemplates()
Returns the template entries of this registry in the same order in which they were added. |
AgreementTemplateType[] |
getNegotiableTemplates()
Returns a set of templates that support SLA negotiation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateRegistry()
Method Detail |
---|
public void add(AgreementFactoryAction action)
action
- the action to addpublic AgreementTemplateType findTemplate(String name)
name
- the name of the requested template
null
if not foundpublic AgreementTemplateType findTemplate(String name, String version)
name
- the name of the requested templateversion
- the version of the requested template
null
if not foundpublic AgreementFactoryAction findAction(String name)
name
- the template name of the requested action
null
if not foundpublic AgreementFactoryAction findAction(String name, String version)
name
- the template name of the requested actionversion
- the template version of the requested action
null
if a factory with the given name was not found.public AgreementTemplateType[] getAllTemplates()
public AgreementTemplateType[] getNegotiableTemplates()
NegotiationUnsupportedAction
.
AgreementFactoryAction.isNegotiationSupported()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |