1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.juddi.datatype.request;
17
18 import java.util.Vector;
19
20 import org.apache.juddi.datatype.BusinessKey;
21 import org.apache.juddi.datatype.RegistryObject;
22
23 /***
24 * "Used to delete registered businessEntity information from the registry."
25 *
26 * @author Steve Viens (sviens@apache.org)
27 */
28 public class DeleteBusiness implements RegistryObject,Publish
29 {
30 String generic;
31 AuthInfo authInfo;
32 Vector businessKeyVector;
33
34 /***
35 *
36 */
37 public DeleteBusiness()
38 {
39 }
40
41 /***
42 *
43 */
44 public DeleteBusiness(AuthInfo authInfo, String businessKey)
45 {
46 this.authInfo = authInfo;
47 addBusinessKey(businessKey);
48 }
49
50 /***
51 *
52 */
53 public DeleteBusiness(AuthInfo authInfo,Vector businessKeys)
54 {
55 this.authInfo = authInfo;
56 this.businessKeyVector = businessKeys;
57 }
58
59 /***
60 *
61 * @param genericValue
62 */
63 public void setGeneric(String genericValue)
64 {
65 this.generic = genericValue;
66 }
67
68 /***
69 *
70 * @return String UDDI request's generic value.
71 */
72 public String getGeneric()
73 {
74 return this.generic;
75 }
76
77 /***
78 *
79 */
80 public void addBusinessKey(BusinessKey businessKey)
81 {
82 if ((businessKey != null) && (businessKey.getValue() != null))
83 this.addBusinessKey(businessKey.getValue());
84 }
85
86 /***
87 *
88 */
89 public void addBusinessKey(String businessKey)
90 {
91 if (this.businessKeyVector == null)
92 this.businessKeyVector = new Vector();
93 this.businessKeyVector.add(businessKey);
94 }
95
96 /***
97 *
98 */
99 public void setBusinessKeyVector(Vector businessKeys)
100 {
101 this.businessKeyVector = businessKeys;
102 }
103
104 /***
105 *
106 */
107 public Vector getBusinessKeyVector()
108 {
109 return this.businessKeyVector;
110 }
111
112 /***
113 *
114 */
115 public void setAuthInfo(AuthInfo authInfo)
116 {
117 this.authInfo = authInfo;
118 }
119
120 /***
121 *
122 */
123 public AuthInfo getAuthInfo()
124 {
125 return this.authInfo;
126 }
127 }