You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by ks...@apache.org on 2009/06/24 04:53:38 UTC

svn commit: r787892 - in /webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets: client/ server/ server/service/

Author: kstam
Date: Wed Jun 24 02:53:38 2009
New Revision: 787892

URL: http://svn.apache.org/viewvc?rev=787892&view=rev
Log:
JUDDI-253 Methods in EntityForLang have the same signature

Modified:
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISubscriptionNotification.java
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDIBrowserPortlet.java
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/InquiryServiceImpl.java
    webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/PublicationServiceImpl.java

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISubscriptionNotification.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISubscriptionNotification.java?rev=787892&r1=787891&r2=787892&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISubscriptionNotification.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISubscriptionNotification.java Wed Jun 24 02:53:38 2009
@@ -16,17 +16,14 @@
  */
 package org.apache.juddi.portlets.client;
 
-import java.util.Vector;
-
 import org.apache.juddi.portlets.client.service.NotifyResponse;
 import org.apache.juddi.portlets.client.service.NotifyService;
 import org.apache.juddi.portlets.client.service.NotifyServiceAsync;
 
-import com.google.gwt.user.client.Window;
-
 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.user.client.Timer;
+import com.google.gwt.user.client.Window;
 import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.ui.RootPanel;
 
@@ -41,8 +38,6 @@
 	private NotifyPanel notifyPanel = null;
 	private String token = null;
 	
-	private static int counter = 0;
-	
 	private NotifyServiceAsync notifyService = (NotifyServiceAsync) GWT.create(NotifyService.class);
 	
 	protected NotifyPanel getNotifyPanel() {

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDIBrowserPortlet.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDIBrowserPortlet.java?rev=787892&r1=787891&r2=787892&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDIBrowserPortlet.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDIBrowserPortlet.java Wed Jun 24 02:53:38 2009
@@ -14,7 +14,6 @@
 	protected void doView(RenderRequest renderRequest, RenderResponse renderResponse) 
 		throws PortletException, PortletSecurityException, IOException
 	{
-		
 	  renderResponse.setContentType("text/html");
 	  PrintWriter writer = renderResponse.getWriter();
 	  writer.println("<script type='text/javascript' language='javascript' src='" 

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/InquiryServiceImpl.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/InquiryServiceImpl.java?rev=787892&r1=787891&r2=787892&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/InquiryServiceImpl.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/InquiryServiceImpl.java Wed Jun 24 02:53:38 2009
@@ -122,13 +122,13 @@
         	 for (BusinessEntity businessEntity : businessDetail.getBusinessEntity()) {
         		 Business business = new Business(
         				 businessEntity.getBusinessKey(),
-        				 EntityForLang.get(businessEntity.getName(),lang).getValue(),
-        				 EntityForLang.get(businessEntity.getDescription(),lang).getValue());
+        				 EntityForLang.getName(businessEntity.getName(),lang).getValue(),
+        				 EntityForLang.getDescription(businessEntity.getDescription(),lang).getValue());
         		 for (BusinessService businessService : businessEntity.getBusinessServices().getBusinessService()) {
         			 Service service = new Service(
         					 businessService.getServiceKey(),
-        					 EntityForLang.get(businessService.getName(),lang).getValue(),
-        					 EntityForLang.get(businessService.getDescription(),lang).getValue());
+        					 EntityForLang.getName(businessService.getName(),lang).getValue(),
+        					 EntityForLang.getDescription(businessService.getDescription(),lang).getValue());
         			 business.getServices().add(service);
         		 }
         		 //for (Contact contact : businessEntity.getContacts().getContact()) {
@@ -154,9 +154,10 @@
 	
 	public InquiryResponse getServiceDetail(String authToken, String serviceKey) 
 	{
+		
 		HttpServletRequest request = this.getThreadLocalRequest();
 		String lang = request.getLocale().getLanguage();
-		
+	
 		GetServiceDetail getServiceDetail = new GetServiceDetail();
 		getServiceDetail.setAuthInfo(authToken);
 		getServiceDetail.getServiceKey().add(serviceKey);
@@ -168,13 +169,13 @@
         	 for (BusinessService businessService : serviceDetail.getBusinessService()) {
         		 Service service = new Service(
         				 businessService.getServiceKey(),
-        				 EntityForLang.get(businessService.getName(),lang).getValue(),
-        				 EntityForLang.get(businessService.getDescription(),lang).getValue());
+        				 EntityForLang.getName(businessService.getName(),lang).getValue(),
+        				 EntityForLang.getDescription(businessService.getDescription(),lang).getValue());
         		 for (BindingTemplate bindingTemplate : businessService.getBindingTemplates().getBindingTemplate()) {
         			 ServiceBinding serviceBinding = new ServiceBinding(
         					 bindingTemplate.getBindingKey(),
         					 bindingTemplate.getAccessPoint().getValue(),
-        					 EntityForLang.get(bindingTemplate.getDescription(),lang).getValue(),
+        					 EntityForLang.getDescription(bindingTemplate.getDescription(),lang).getValue(),
         					 bindingTemplate.getAccessPoint().getUseType());
         			 service.getServiceBindings().add(serviceBinding);
         		 }

Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/PublicationServiceImpl.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/PublicationServiceImpl.java?rev=787892&r1=787891&r2=787892&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/PublicationServiceImpl.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/PublicationServiceImpl.java Wed Jun 24 02:53:38 2009
@@ -70,13 +70,13 @@
         	 for (BusinessInfo businessInfo : info.getBusinessInfos().getBusinessInfo()) {
 				Business business = new Business(
 						businessInfo.getBusinessKey(),
-						EntityForLang.get(businessInfo.getName(),lang).getValue(),
-						EntityForLang.get(businessInfo.getDescription(),lang).getValue());
+						EntityForLang.getName(businessInfo.getName(),lang).getValue(),
+						EntityForLang.getDescription(businessInfo.getDescription(),lang).getValue());
 				List<Service> services = new ArrayList<Service>();
 				for (ServiceInfo serviceInfo : businessInfo.getServiceInfos().getServiceInfo()) {
 					Service service = new Service(
 							serviceInfo.getServiceKey(),
-							EntityForLang.get(serviceInfo.getName(), lang).getValue());
+							EntityForLang.getName(serviceInfo.getName(), lang).getValue());
 					services.add(service);
 				}
 				business.setServices(services);



---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org