KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > juddi > datatype > request > GetAssertionStatusReport


1 /*
2  * Copyright 2001-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.juddi.datatype.request;
17
18 import org.apache.juddi.datatype.RegistryObject;
19 import org.apache.juddi.datatype.response.CompletionStatus;
20
21 /**
22  * "The get_assertionStatusReport API call provides administrative support
23  * for determining the status of current and outstanding publisher
24  * assertions that involve any of the business registrations managed by
25  * the individual publisher account. Using this message, a publisher can
26  * see the status of assertions that they have made, as well as see
27  * assertions that others have made that involve businessEntity structures
28  * controlled by the calling publisher account. See Appendix J on
29  * relationships and publisher assertions for more information."
30  *
31  * @author Steve Viens (sviens@apache.org)
32  */

33 public class GetAssertionStatusReport implements RegistryObject,Publish
34 {
35   /**
36    * status:complete: passing this value will cause only the
37    * publisher assertions that are complete to be returned. Each
38    * businessEntity listed in assertions that are complete has a
39    * visible relationship that directly reflects the data in a
40    * complete assertion (as per the find_relatedBusinesses message).
41    */

42   public static final String JavaDoc STATUS_COMPLETE = "status:complete";
43
44   /**
45    * status:toKey_incomplete: passing this value will cause only
46    * those publisher assertions where the party who controls the
47    * businessEntity referenced by the toKey value in an assertion
48    * has not made a matching assertion to be listed.
49    */

50   public static final String JavaDoc STATUS_TOKEY_INCOMPLETE = "status:toKey_incomplete";
51
52   /**
53    * status:fromKey_incomplete: passing this value will cause only
54    * those publisher assertions where the party who controls the
55    * businessEntity referenced by the fromKey value in an assertion
56    * has not made a matching assertion to be listed.
57    */

58   public static final String JavaDoc STATUS_FROMKEY_INCOMPLETE = "status:fromKey_incomplete";
59
60   String JavaDoc generic;
61   AuthInfo authInfo;
62   String JavaDoc completionStatus;
63
64   /**
65    *
66    */

67   public GetAssertionStatusReport()
68   {
69   }
70
71   /**
72    *
73    */

74   public GetAssertionStatusReport(AuthInfo authInfo)
75   {
76     this.authInfo = authInfo;
77   }
78
79   /**
80    *
81    * @param genericValue
82    */

83   public void setGeneric(String JavaDoc genericValue)
84   {
85     this.generic = genericValue;
86   }
87
88   /**
89    *
90    * @return String UDDI request's generic value.
91    */

92   public String JavaDoc getGeneric()
93   {
94     return this.generic;
95   }
96
97   /**
98    *
99    */

100   public AuthInfo getAuthInfo()
101   {
102     return this.authInfo;
103   }
104
105   /**
106    *
107    */

108   public void setAuthInfo(AuthInfo authInfo)
109   {
110     this.authInfo = authInfo;
111   }
112
113   /**
114    *
115    */

116   public String JavaDoc getCompletionStatus()
117   {
118     return this.completionStatus;
119   }
120
121   /**
122    *
123    */

124   public void setCompletionStatus(String JavaDoc status)
125   {
126     this.completionStatus = status;
127   }
128
129   /**
130    *
131    */

132   public void setCompletionStatus(CompletionStatus status)
133   {
134     if (status != null)
135       this.completionStatus = status.getValue();
136     else
137       this.completionStatus = null;
138   }
139 }
Popular Tags