1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 package org.ogf.graap.wsag.server.api.impl;
36
37 import java.util.Map;
38
39 import org.apache.xmlbeans.XmlObject;
40 import org.ogf.graap.wsag.api.Agreement;
41 import org.ogf.graap.wsag.api.AgreementFactory;
42 import org.ogf.graap.wsag.api.AgreementOffer;
43 import org.ogf.graap.wsag.api.Negotiation;
44 import org.ogf.graap.wsag.api.PendingAgreementListener;
45 import org.ogf.graap.wsag.api.exceptions.AgreementFactoryException;
46 import org.ogf.graap.wsag.api.exceptions.NegotiationFactoryException;
47 import org.ogf.schemas.graap.wsAgreement.AgreementTemplateType;
48 import org.ogf.schemas.graap.wsAgreement.negotiation.NegotiationContextType;
49
50
51
52
53
54
55
56
57 public class AgreementFactoryFacade extends AbstractAgreementFactory
58 {
59
60 private final AgreementFactory factory;
61
62
63
64
65
66
67 public AgreementFactoryFacade( AgreementFactory factory )
68 {
69 super();
70 this.factory = factory;
71 }
72
73
74
75
76
77 public AgreementFactory getAgreementFactory()
78 {
79 return factory;
80 }
81
82
83
84
85 @Override
86 public Agreement createAgreement( AgreementOffer offer, Map<String, Object> context )
87 throws AgreementFactoryException
88 {
89 return factory.createAgreement( offer, context );
90 }
91
92
93
94
95 @Override
96 public Agreement createPendingAgreement( AgreementOffer offer, PendingAgreementListener listener,
97 Map<String, Object> context ) throws AgreementFactoryException
98 {
99 return factory.createPendingAgreement( offer, listener, context );
100 }
101
102
103
104
105 @Override
106 public AgreementTemplateType[] getTemplates()
107 {
108 return factory.getTemplates();
109 }
110
111
112
113
114 @Override
115 public Negotiation
116 initiateNegotiation( NegotiationContextType context, XmlObject[] criticalExtensions,
117 XmlObject[] nonCriticalExtensions, Map<String, Object> environment )
118 throws NegotiationFactoryException
119 {
120 return factory.initiateNegotiation( context, criticalExtensions, nonCriticalExtensions, environment );
121 }
122
123
124
125
126
127
128 @Override
129 protected void doInitialize() throws Exception
130 {
131
132 }
133 }