KickJava   Java API By Example, From Geeks To Geeks.

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


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 java.util.Vector JavaDoc;
19
20 import org.apache.juddi.datatype.RegistryObject;
21 import org.apache.juddi.datatype.publisher.PublisherID;
22
23 /**
24  * "Used to delete registered Publisher information from the registry."
25  *
26  * @author Steve Viens (sviens@apache.org)
27  */

28 public class DeletePublisher implements RegistryObject,Admin
29 {
30   String JavaDoc generic;
31   AuthInfo authInfo;
32   Vector JavaDoc publisherIDVector;
33
34   /**
35    *
36    */

37   public DeletePublisher()
38   {
39   }
40
41   /**
42    *
43    */

44   public DeletePublisher(AuthInfo authInfo, String JavaDoc publisherID)
45   {
46     this.authInfo = authInfo;
47     addPublisherID(publisherID);
48   }
49
50   /**
51    *
52    */

53   public DeletePublisher(AuthInfo authInfo,Vector JavaDoc publisherIDs)
54   {
55     this.authInfo = authInfo;
56     this.publisherIDVector = publisherIDs;
57   }
58
59   /**
60    *
61    * @param genericValue
62    */

63   public void setGeneric(String JavaDoc genericValue)
64   {
65     this.generic = genericValue;
66   }
67
68   /**
69    *
70    * @return String UDDI request's generic value.
71    */

72   public String JavaDoc getGeneric()
73   {
74     return this.generic;
75   }
76
77   /**
78    *
79    */

80   public void addPublisherID(PublisherID publisherID)
81   {
82     if ((publisherID != null) && (publisherID.getValue() != null))
83       addPublisherID(publisherID.getValue());
84   }
85
86   /**
87    *
88    */

89   public void addPublisherID(String JavaDoc publisherID)
90   {
91     if (this.publisherIDVector == null)
92       this.publisherIDVector = new Vector JavaDoc();
93     this.publisherIDVector.add(publisherID);
94   }
95
96   /**
97    *
98    */

99   public void setPublisherIDVector(Vector JavaDoc publisherIDs)
100   {
101     this.publisherIDVector = publisherIDs;
102   }
103
104   /**
105    *
106    */

107   public Vector JavaDoc getPublisherIDVector()
108   {
109     return this.publisherIDVector;
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 }
Popular Tags