View Javadoc

1   /* 
2    * Copyright (c) 2005-2011, Fraunhofer-Gesellschaft
3    * All rights reserved.
4    * 
5    * Redistribution and use in source and binary forms, with or without
6    * modification, are permitted provided that the following conditions are
7    * met:
8    * 
9    * (1) Redistributions of source code must retain the above copyright
10   *     notice, this list of conditions and the disclaimer at the end.
11   *     Redistributions in binary form must reproduce the above copyright
12   *     notice, this list of conditions and the following disclaimer in
13   *     the documentation and/or other materials provided with the
14   *     distribution.
15   * 
16   * (2) Neither the name of Fraunhofer nor the names of its
17   *     contributors may be used to endorse or promote products derived
18   *     from this software without specific prior written permission.
19   * 
20   * DISCLAIMER
21   * 
22   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23   * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24   * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25   * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26   * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29   * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30   * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32   * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33   *  
34   */
35  package org.ogf.graap.wsag.api;
36  
37  import javax.xml.namespace.QName;
38  
39  /**
40   * AgreementConstants
41   * 
42   * @author Oliver Waeldrich
43   */
44  public class WsagConstants
45  {
46  
47      /**
48       * default WSAG4J properties file name
49       */
50      public static final String WSAG4J_CONFIG_FILE = "/wsag4j.properties";
51  
52      /**
53       * default WSAG4J client properties file name
54       */
55      public static final String WSAG4J_CLIENT_CONFIG_FILE = "/wsag4j-client.properties";
56  
57      /**
58       * default WSAG4J WSRF engine configuration file name
59       */
60      public static final String WSAG4J_WSRF_ENGINE_CONFIG_FILE = "/wsrf-engine.config";
61  
62      /**
63       * default WSAG4J WSRF client configuration file name
64       */
65      public static final String WSAG4J_WSRF_CLIENT_CONFIG_FILE = "/wsrf-client.config";
66  
67      /**
68       * default WSAG4J JAAS configuration file name
69       */
70      public static final String WSAG4J_JAAS_CONFIG_FILE = "/jaas.config";
71  
72      /**
73       * WSAG4J gateway URL system property key. Overwrites gateway URL in WSAG4J engine at runtime.
74       */
75      public static final String WSAG4J_GATEWAY_PROPERTY = "wsag4j.gateway.address";
76  
77      /**
78       * WSAG4J constant that is used to lookup the factory configuration in the
79       * <code>org.ogf.graap.wsag.server.api.IAgreementFactoryContext</code>.
80       */
81      public static final String WSAG4J_FACTORY_CONFIGURATION =
82          "http://ogf.org/wsag4j/properties/factory-configuration";
83  
84      /*
85       * WSAG related namespace and type declarations
86       */
87  
88      /**
89       * WS-Agreement namespace prefix
90       */
91      public static final String PREFIX = "wsag";
92  
93      /**
94       * WS-Agreement namespace prefix declaration
95       */
96      public static final String WSAG_PREFIX_DECLARATION = "xmlns:" + PREFIX;
97  
98      /**
99       * WS-Agreement namespace URI
100      */
101     public static final String NAMESPACE_URI = "http://schemas.ggf.org/graap/2007/03/ws-agreement";
102 
103     /**
104      * WS-Agreement Agreement Factory QName
105      */
106     public static final QName WSAG_AGREEMENT_FACTORY_QNAME = new QName( NAMESPACE_URI, "AgreementFactory" );
107 
108     /**
109      * WS-Agreement Agreement QName
110      */
111     public static final QName WSAG_AGREEMENT_QNAME = new QName( NAMESPACE_URI, "Agreement" );
112 
113     /**
114      * WS-Agreement Agreement Acceptance QName
115      */
116     public static final QName WSAG_AGREEMENT_ACCEPTANCE_QNAME = new QName( NAMESPACE_URI,
117                                                                            "AgreementAcceptance" );
118 
119     /**
120      * WS-Agreement Create Agreement QName
121      */
122     public static final QName WSAG_CREATE_AGREEMENT_QNAME = new QName( NAMESPACE_URI, "CreateAgreement" );
123 
124     /**
125      * WS-Agreement Create Agreement Input QName
126      */
127     public static final QName WSAG_CREATE_AGREEMENT_INPUT_QNAME = new QName( NAMESPACE_URI,
128                                                                              "CreateAgreementInput" );
129 
130     /**
131      * WS-Agreement Create Agreement WSA Action QName
132      */
133     public static final String WSAG_CREATE_AGREEMENT_ACTION = NAMESPACE_URI + "/CreateAgreementRequest";
134 
135     /**
136      * WS-Agreement Create Pending Agreement QName
137      */
138     public static final QName WSAG_CREATE_PENDING_AGREEMENT_QNAME = new QName( NAMESPACE_URI,
139                                                                                "CreatePendingAgreement" );
140 
141     /**
142      * WS-Agreement Create Pending Agreement Input QName
143      */
144     public static final QName WSAG_CREATE_PENDING_AGREEMENT_INPUT_QNAME =
145         new QName( NAMESPACE_URI, "CreatePendingAgreementInput" );
146 
147     /**
148      * WS-Agreement Create Pending Agreement WSA Action QName
149      */
150     public static final String WSAG_CREATE_PENDING_AGREEMENT_ACTION = NAMESPACE_URI
151         + "/CreatePendingAgreementRequest";
152 
153     /**
154      * WS-Agreement Terminate Agreement QName
155      */
156     public static final QName WSAG_TERMINATE_AGREEMENT_QNAME = new QName( NAMESPACE_URI, "Terminate" );
157 
158     /**
159      * WS-Agreement Terminate Agreement Input QName
160      */
161     public static final QName WSAG_TERMINATE_AGREEMENT_INPUT_QNAME = new QName( NAMESPACE_URI,
162                                                                                 "TerminateInput" );
163 
164     /**
165      * WS-Agreement Terminate Agreement WSA Action QName
166      */
167     public static final String WSAG_TERMINATE_AGREEMENT_ACTION = NAMESPACE_URI + "/TerminateRequest";
168 
169     /**
170      * WS-Agreement Accept Agreement QName
171      */
172     public static final QName WSAG_ACCEPT_AGREEMENT_QNAME = new QName( NAMESPACE_URI, "AcceptAgreement" );
173 
174     /**
175      * WS-Agreement Accept Agreement Input QName
176      */
177     public static final QName WSAG_ACCEPT_AGREEMENT_INPUT_QNAME = new QName( NAMESPACE_URI,
178                                                                              "AcceptAgreementInput" );
179 
180     /**
181      * WS-Agreement Accept Agreement WSA Action QName
182      */
183     public static final String WSAG_ACCEPT_AGREEMENT_ACTION = NAMESPACE_URI + "/AcceptAgreementRequest";
184 
185     /**
186      * WS-Agreement Reject Agreement QName
187      */
188     public static final QName WSAG_REJECT_AGREEMENT_QNAME = new QName( NAMESPACE_URI, "RejectAgreement" );
189 
190     /**
191      * WS-Agreement Reject Agreement Input QName
192      */
193     public static final QName WSAG_REJECT_AGREEMENT_INPUT_QNAME = new QName( NAMESPACE_URI,
194                                                                              "RejectAgreementInput" );
195 
196     /**
197      * WS-Agreement Reject Agreement WSA Action QName
198      */
199     public static final String WSAG_REJECT_AGREEMENT_ACTION = NAMESPACE_URI + "/RejectAgreementRequest";
200 
201     /**
202      * WS-Agreement Continuing Fault QName
203      */
204     public static final QName WSAG_CONTINUING_FAULT_QNAME = new QName( NAMESPACE_URI, "ContinuingFault" );
205 
206     /**
207      * WS-Agreement Agreement Factory Resource Properties QNames
208      */
209     public static final QName[] WSAG_AGREEMENT_FACTORY_PROPERTIES = new QName[] { new QName( NAMESPACE_URI,
210                                                                                              "Template",
211                                                                                              PREFIX ) };
212 
213     /**
214      * WS-Agreement Agreement Resource Properties QNames
215      */
216     public static final QName[] WSAG_AGREEMENT_PROPERTIES = new QName[] {
217         new QName( NAMESPACE_URI, "Name", PREFIX ), new QName( NAMESPACE_URI, "AgreementId", PREFIX ),
218         new QName( NAMESPACE_URI, "Context", PREFIX ), new QName( NAMESPACE_URI, "Terms", "wsag" ),
219         new QName( NAMESPACE_URI, "AgreementState", PREFIX ),
220         new QName( NAMESPACE_URI, "GuaranteeTermState", PREFIX ),
221         new QName( NAMESPACE_URI, "ServiceTermState", PREFIX ) };
222 
223     /**
224      * Negotiation Namespace URI
225      * 
226      * @deprecated
227      */
228     @Deprecated
229     public static final String NEGOTIATION_NAMESPACE_URI =
230         "http://schemas.ggf.org/graap/2008/12/ws-agreement-negotiation";
231 
232     /**
233      * Negotiation QName
234      * 
235      * @deprecated
236      */
237     @Deprecated
238     public static final QName WSAG_NEGOTIATE_QNAME = new QName( NEGOTIATION_NAMESPACE_URI, "Negotiate" );
239 
240     /**
241      * Negotiation Input QName
242      * 
243      * @deprecated
244      */
245     @Deprecated
246     public static final QName WSAG_NEGOTIATE_INPUT_QNAME = new QName( NEGOTIATION_NAMESPACE_URI,
247                                                                       "NegotiateInput" );
248 
249     /**
250      * Negotiation WSA Action QName
251      * 
252      * @deprecated
253      */
254     @Deprecated
255     public static final String WSAG_NEGOTIATE_ACTION = NEGOTIATION_NAMESPACE_URI + "/NegotiateRequest";
256 
257     //
258     // Negotiation constants
259     //
260 
261     /**
262      * WS-Agreement Negotiation Namespace URI
263      */
264     public static final String WSAG_NEGOTIATION_NAMESPACE_URI =
265         "http://schemas.ogf.org/graap/2009/11/ws-agreement-negotiation";
266 
267     /**
268      * WS-Agreement Negotiation Namespace Prefix
269      */
270     public static final String WSAG_NEGOTIATION_PREFIX = "wsag-neg";
271 
272     /**
273      * WS-Agreement Negotiation Namespace Prefix Declaration
274      */
275     public static final String WSAG_NEGOTIATION_PREFIX_DECLARATION = "xmlns:" + WSAG_NEGOTIATION_PREFIX;
276 
277     /**
278      * WS-Agreement Negotiation QName
279      */
280     public static final QName WSAG_NEGOTIATION_QNAME = new QName( WSAG_NEGOTIATION_NAMESPACE_URI,
281                                                                   "Negotiation" );
282 
283     /**
284      * WS-Agreement Negotiation Resource Properties QNames
285      */
286     public static final QName[] WSAG_NEGOTIATION_PROPERTIES = new QName[] {
287         new QName( WSAG_NEGOTIATION_NAMESPACE_URI, "NegotiationContext", WSAG_NEGOTIATION_PREFIX ),
288         new QName( WSAG_NEGOTIATION_NAMESPACE_URI, "NegotiableTemplate", WSAG_NEGOTIATION_PREFIX ),
289         new QName( WSAG_NEGOTIATION_NAMESPACE_URI, "NegotiationOffer", WSAG_NEGOTIATION_PREFIX ), };
290 
291     /**
292      * WS-Agreement Negotiation Factory InitiateNegotiation QName
293      */
294     public static final QName WSAG_INITIATE_NEGOTIATION_QNAME = new QName( WSAG_NEGOTIATION_NAMESPACE_URI,
295                                                                            "InitiateNegotiation" );
296 
297     /**
298      * WS-Agreement Negotiation Factory InitiateNegotiation Input QName
299      */
300     public static final QName WSAG_INITIATE_NEGOTIATION_INPUT_QNAME =
301         new QName( WSAG_NEGOTIATION_NAMESPACE_URI, "InitiateNegotiationInput" );
302 
303     /**
304      * WS-Agreement Negotiation Factory InitiateNegotiation WSA Action QName
305      */
306     public static final String WSAG_INITIATE_NEGOTIATION_ACTION = WSAG_NEGOTIATION_NAMESPACE_URI
307         + "/InitiateNegotiationRequest";
308 
309     /**
310      * WS-Agreement Negotiation Negotiate QName
311      */
312     public static final QName WSAG_NEGOTIATION_NEGOTIATE_QNAME = new QName( WSAG_NEGOTIATION_NAMESPACE_URI,
313                                                                             "Negotiate" );
314 
315     /**
316      * WS-Agreement Negotiation Negotiate Input QName
317      */
318     public static final QName WSAG_NEGOTIATION_NEGOTIATE_INPUT_QNAME =
319         new QName( WSAG_NEGOTIATION_NAMESPACE_URI, "NegotiateInput" );
320 
321     /**
322      * WS-Agreement Negotiation Negotiate WSA Action QName
323      */
324     public static final String WSAG_NEGOTIATION_NEGOTIATE_ACTION = WSAG_NEGOTIATION_NAMESPACE_URI
325         + "/NegotiateRequest";
326 
327     /**
328      * WS-Agreement Negotiation Advertise QName
329      */
330     public static final QName WSAG_NEGOTIATION_ADVERTISE_QNAME = new QName( WSAG_NEGOTIATION_NAMESPACE_URI,
331                                                                             "Advertise" );
332 
333     /**
334      * WS-Agreement Negotiation Advertise Input QName
335      */
336     public static final QName WSAG_NEGOTIATION_ADVERTISE_INPUT_QNAME =
337         new QName( WSAG_NEGOTIATION_NAMESPACE_URI, "AdvertiseInput" );
338 
339     /**
340      * WS-Agreement Negotiation Advertise WSA Action QName
341      */
342     public static final String WSAG_NEGOTIATION_ADVERTISE_ACTION = WSAG_NEGOTIATION_NAMESPACE_URI
343         + "/AdvertiseRequest";
344 
345     /**
346      * WS-Agreement Negotiation Terminate Negotiation QName
347      */
348     public static final QName WSAG_NEGOTIATION_TERMINATE_QNAME = new QName( WSAG_NEGOTIATION_NAMESPACE_URI,
349                                                                             "Terminate" );
350 
351     /**
352      * WS-Agreement Negotiation Terminate Negotiation Input QName
353      */
354     public static final QName WSAG_NEGOTIATION_TERMINATE_INPUT_QNAME =
355         new QName( WSAG_NEGOTIATION_NAMESPACE_URI, "TerminateInput" );
356 
357     /**
358      * WS-Agreement Negotiation Terminate Negotiation WSA Action QName
359      */
360     public static final String WSAG_NEGOTIATION_TERMINATE_ACTION = WSAG_NEGOTIATION_NAMESPACE_URI
361         + "/TerminateRequest";
362 
363     /**
364      * WS-Agreement Creation Constraints Resource Property QName
365      */
366     public static final QName CREATION_CONSTRAINT_ELEMENT_QNAME = new QName( WsagConstants.NAMESPACE_URI,
367                                                                              "CreationConstraints" );
368 
369     /*
370      * WSRF related namespace and type declarations
371      */
372 
373     /**
374      * WSRF Namespace URI
375      */
376     public static final String WSRF_RPW_NAMESPACE_URI = "http://docs.oasis-open.org/wsrf/rpw-2";
377 
378     /**
379      * WSRF GetResourceProperty WSA Action QName
380      */
381     public static final String WSRF_GET_RESOURCE_PROPERTY_ACTION = WSRF_RPW_NAMESPACE_URI
382         + "/GetResourceProperty/GetResourcePropertyRequest";
383 
384     /**
385      * WSRF GetResourceProperty QName
386      */
387     public static final QName WSRF_GET_RESOURCE_PROPERTY_QNAME = new QName( WSRF_RPW_NAMESPACE_URI,
388                                                                             "GetResourceProperty" );
389 
390     /*
391      * WSDM related namespace and type declarations
392      */
393 
394     /**
395      * WSDM MUWS Namespace Prefix
396      */
397     public static final String WSDM_MUWS_PREFIX = "muws1";
398 
399     /**
400      * WSDM MUWS Namespace Prefix Declaration
401      */
402     public static final String WSDM_MUWS_PREFIX_DECLARATION = "xmlns:" + WSDM_MUWS_PREFIX;
403 
404     /**
405      * WSDM MUWS Namespace URI
406      */
407     public static final String WSDM_MUWS_NAMESPACE_URI = "http://docs.oasis-open.org/wsdm/muws1-2.xsd";
408 
409     /*
410      * WSAG4J service URIs
411      */
412 
413     /**
414      * WSAG4J Agreement Factory Service Path
415      */
416     public static final String AGREEMENT_FACTORY_SERVICE_URI = "/services/AgreementFactory";
417 
418     /**
419      * WSAG4J Agreement Factory Registry Service Path
420      */
421     public static final String AGREEMENT_FACTORY_REGISTRY_SERVICE_URI =
422         "/services/AgreementFactoryServiceGroup";
423 
424     /**
425      * WSAG4J Agreement Service Path
426      */
427     public static final String AGREEMENT_SERVICE_URI = "/services/Agreement";
428 
429     /**
430      * WSAG4J Agreement Registry Service Path
431      */
432     public static final String AGREEMENT_REGISTRY_SERVICE_URI = "/services/AgreementServiceGroup";
433 
434     /**
435      * WSAG4J Namespace URI
436      */
437     public static final String WSAG4J_NAMESPACE = "http://schemas.scai.fraunhofer.de/wsag4j";
438 
439     /**
440      * WSAG4J Metadata Exchange Namespace URI
441      */
442     public static final String WSAG4J_MEX_DIALECT = WSAG4J_NAMESPACE + "/mex";
443 
444     /**
445      * WSAG4J WSDM Resource Id QName
446      */
447     public static final QName WSAG4J_RESOURCE_ID_QNAME = new QName( WSAG4J_NAMESPACE, "ResourceId" );
448 
449 }