This project has retired. For details please refer to its Attic page.
UDDIPublicationService xref
View Javadoc
1   /*
2    * Copyright 2001-2009 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   */
17  package org.apache.juddi.rmi;
18  
19  import java.rmi.RemoteException;
20  import java.rmi.server.UnicastRemoteObject;
21  import java.util.List;
22  
23  import javax.xml.ws.Holder;
24  
25  import org.apache.juddi.api.impl.UDDIPublicationImpl;
26  import org.uddi.api_v3.AddPublisherAssertions;
27  import org.uddi.api_v3.AssertionStatusItem;
28  import org.uddi.api_v3.BindingDetail;
29  import org.uddi.api_v3.BusinessDetail;
30  import org.uddi.api_v3.CompletionStatus;
31  import org.uddi.api_v3.DeleteBinding;
32  import org.uddi.api_v3.DeleteBusiness;
33  import org.uddi.api_v3.DeletePublisherAssertions;
34  import org.uddi.api_v3.DeleteService;
35  import org.uddi.api_v3.DeleteTModel;
36  import org.uddi.api_v3.GetRegisteredInfo;
37  import org.uddi.api_v3.PublisherAssertion;
38  import org.uddi.api_v3.RegisteredInfo;
39  import org.uddi.api_v3.SaveBinding;
40  import org.uddi.api_v3.SaveBusiness;
41  import org.uddi.api_v3.SaveService;
42  import org.uddi.api_v3.SaveTModel;
43  import org.uddi.api_v3.ServiceDetail;
44  import org.uddi.api_v3.TModelDetail;
45  import org.uddi.v3_service.UDDIPublicationPortType;
46  /**
47   * UDDIPublicationPortType wrapper so it can be exposed as a service over RMI.
48   * 
49   * @author <a href="mailto:kstam@apache.org">Kurt T Stam</a>
50   *
51   */
52  public class UDDIPublicationService extends UnicastRemoteObject implements UDDIPublicationPortType {
53  
54  	private static final long serialVersionUID = 8342463046574333026L;
55  	private transient UDDIPublicationPortType publication = new UDDIPublicationImpl();
56  	
57  	protected UDDIPublicationService(int port) throws RemoteException {
58  		super(port);
59  	}
60  
61  	public void addPublisherAssertions(AddPublisherAssertions body)
62  			throws RemoteException {
63  		publication.addPublisherAssertions(body);
64  	}
65  
66  	public void deleteBinding(DeleteBinding body)
67  			throws RemoteException {
68  		publication.deleteBinding(body);
69  	}
70  
71  	public void deleteBusiness(DeleteBusiness body)
72  			throws RemoteException {
73  		publication.deleteBusiness(body);
74  	}
75  
76  	public void deletePublisherAssertions(DeletePublisherAssertions body)
77  			throws RemoteException {
78  		publication.deletePublisherAssertions(body);
79  	}
80  
81  	public void deleteService(DeleteService body)
82  			throws RemoteException {
83  		publication.deleteService(body);
84  	}
85  
86  	public void deleteTModel(DeleteTModel body)
87  			throws RemoteException {
88  		publication.deleteTModel(body);
89  	}
90  
91  	public List<AssertionStatusItem> getAssertionStatusReport(String authInfo,
92  			CompletionStatus completionStatus)
93  			throws RemoteException {
94  		return publication.getAssertionStatusReport(authInfo, completionStatus);
95  	}
96  
97  	public List<PublisherAssertion> getPublisherAssertions(String authInfo)
98  			throws RemoteException {
99  		return publication.getPublisherAssertions(authInfo);
100 	}
101 
102 	public RegisteredInfo getRegisteredInfo(GetRegisteredInfo body)
103 			throws RemoteException {
104 		return publication.getRegisteredInfo(body);
105 	}
106 
107 	public BindingDetail saveBinding(SaveBinding body)
108 			throws RemoteException {
109 		return publication.saveBinding(body);
110 	}
111 
112 	public BusinessDetail saveBusiness(SaveBusiness body)
113 			throws RemoteException {
114 		return publication.saveBusiness(body);
115 	}
116 
117 	public ServiceDetail saveService(SaveService body)
118 			throws RemoteException {
119 		return publication.saveService(body);
120 	}
121 
122 	public TModelDetail saveTModel(SaveTModel body)
123 			throws RemoteException {
124 		return publication.saveTModel(body);
125 	}
126 
127 	public void setPublisherAssertions(String authInfo,
128 			Holder<List<PublisherAssertion>> publisherAssertion)
129 			throws RemoteException {
130 		publication.setPublisherAssertions(authInfo, publisherAssertion);
131 	}
132 
133 }