juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r825419 - in /webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets: client/ server/service/
Date Thu, 15 Oct 2009 07:31:16 GMT
Author: kstam
Date: Thu Oct 15 07:31:15 2009
New Revision: 825419

URL: http://svn.apache.org/viewvc?rev=825419&view=rev
Log:
JUDDI-240 creating sync request

Modified:
    webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/BusinessTreePanel.java
    webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java
    webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/JUDDIPublisher.java
    webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/LoginPanel.java
    webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherListPanel.java
    webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherPanel.java
    webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionPanel.java
    webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionTreePanel.java
    webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISearch.java
    webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/SubscriptionServiceImpl.java

Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/BusinessTreePanel.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/BusinessTreePanel.java?rev=825419&r1=825418&r2=825419&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/BusinessTreePanel.java
(original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/BusinessTreePanel.java
Thu Oct 15 07:31:15 2009
@@ -61,7 +61,7 @@
 		publicationService.getBusinesses(UDDIBrowser.getInstance().getToken(), infoSelection, new
AsyncCallback<PublicationResponse>() 
 		{
 			public void onFailure(Throwable caught) {
-				Window.alert("Could not connect to the UDDI registry.");
+				Window.alert("Error:" + caught.getMessage());
 			}
 
 			public void onSuccess(PublicationResponse response) {
@@ -90,7 +90,7 @@
 					}
 					
 				} else {
-					Window.alert("error: " + response.getMessage() + ". Make sure the UDDI server is up
and running.");
+					Window.alert("error: " + response.getMessage());
 				}
 			}
 		});
@@ -107,7 +107,7 @@
 		findService.getBusinesses(name, findQualifyers, new AsyncCallback<FindResponse>()

 		{
 			public void onFailure(Throwable caught) {
-				Window.alert("Could not connect to the UDDI registry.");
+				Window.alert("Error:" + caught.getMessage());
 			}
 
 			public void onSuccess(FindResponse response) {
@@ -136,7 +136,7 @@
 					}
 					
 				} else {
-					Window.alert("error: " + response.getMessage() + ". Make sure the UDDI server is up
and running.");
+					Window.alert("error: " + response.getMessage());
 				}
 			}
 		});

Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java?rev=825419&r1=825418&r2=825419&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java
(original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/DetailPanel.java
Thu Oct 15 07:31:15 2009
@@ -49,7 +49,7 @@
 	public void displayServices( String businessKey) {
 		inquiryService.getBusinessDetail(UDDIBrowser.getInstance().getToken(), businessKey, new
AsyncCallback<InquiryResponse>() {
 			public void onFailure(Throwable caught) {
-				Window.alert("Could not connect to the UDDI registry.");
+				Window.alert("Error:" + caught.getMessage());
 			}
 
 			public void onSuccess(InquiryResponse response) {
@@ -70,8 +70,7 @@
 						table.setHTML(row++, 1, service.getDescription());
 					}
 				} else {
-					Window.alert("error: " + response.getMessage() 
-							+ ". Make sure the UDDI service is up and running.");
+					Window.alert("error: " + response.getMessage());
 				}
 			}
 		});
@@ -80,7 +79,7 @@
 	public void displayBusiness( String businessKey) {
 		inquiryService.getBusinessDetail(UDDIBrowser.getInstance().getToken(), businessKey, new
AsyncCallback<InquiryResponse>() {
 			public void onFailure(Throwable caught) {
-				Window.alert("Could not connect to the UDDI registry.");
+				Window.alert("Error:" + caught.getMessage());
 			}
 
 			public void onSuccess(InquiryResponse response) {
@@ -102,8 +101,7 @@
 					//Business Contact
 					
 				} else {
-					Window.alert("error: " + response.getMessage() 
-							+ ". Make sure the UDDI service is up and running.");
+					Window.alert("error: " + response.getMessage());
 				}
 			}
 		});
@@ -113,7 +111,7 @@
 
 		inquiryService.getServiceDetail(UDDIBrowser.getInstance().getToken(), serviceKey, new AsyncCallback<InquiryResponse>()
{
 			public void onFailure(Throwable caught) {
-				Window.alert("Could not connect to the UDDI registry.");
+				Window.alert("Error:" + caught.getMessage());
 			}
 
 			public void onSuccess(InquiryResponse response) {
@@ -154,8 +152,7 @@
 						table.setHTML(row, 1, bindingtable.toString());
 					}
 				} else {
-					Window.alert("error: " + response.getMessage() 
-							+ ". Make sure the UDDI service is up and running.");
+					Window.alert("error: " + response.getMessage());
 				}
 			}
 		});

Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/JUDDIPublisher.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/JUDDIPublisher.java?rev=825419&r1=825418&r2=825419&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/JUDDIPublisher.java
(original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/JUDDIPublisher.java
Thu Oct 15 07:31:15 2009
@@ -139,7 +139,7 @@
 		juddiApiService.restartManager(token, new AsyncCallback<JUDDIApiResponse>() 
 		{
 			public void onFailure(Throwable caught) {
-				Window.alert("Could not connect to the UDDI registry. " + caught.getMessage());
+				Window.alert("Error: " + caught.getMessage());
 			}
 
 			public void onSuccess(JUDDIApiResponse response) {

Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/LoginPanel.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/LoginPanel.java?rev=825419&r1=825418&r2=825419&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/LoginPanel.java
(original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/LoginPanel.java
Thu Oct 15 07:31:15 2009
@@ -82,7 +82,7 @@
 		securityService.get(user, password, new AsyncCallback<SecurityResponse>() 
 		{
 			public void onFailure(Throwable caught) {
-				Window.alert("Could not connect to the UDDI registry. " + caught.getMessage());
+				Window.alert("Error: " + caught.getMessage());
 			}
 
 			public void onSuccess(SecurityResponse response) {
@@ -91,7 +91,7 @@
 					publisherId = response.getUsername();
 					application.login();
 				} else {
-					Window.alert("error: " + response.getMessage() + ". Make sure the UDDI server is up
and running.");
+					Window.alert("error: " + response.getMessage());
 				}
 			}
 		}); 

Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherListPanel.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherListPanel.java?rev=825419&r1=825418&r2=825419&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherListPanel.java
(original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherListPanel.java
Thu Oct 15 07:31:15 2009
@@ -84,7 +84,7 @@
 		juddiApiService.getPublishers(token, publisherId,  new AsyncCallback<JUDDIApiResponse>()

 				{
 			public void onFailure(Throwable caught) {
-				Window.alert("Could not connect to the UDDI registry. " + caught.getMessage());
+				Window.alert("Error: " + caught.getMessage());
 			}
 
 			public void onSuccess(JUDDIApiResponse response) {

Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherPanel.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherPanel.java?rev=825419&r1=825418&r2=825419&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherPanel.java
(original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/PublisherPanel.java
Thu Oct 15 07:31:15 2009
@@ -126,14 +126,14 @@
 			juddiApiService.deletePublisher(token, publisher.getAuthorizedName(), new AsyncCallback<JUDDIApiResponse>()

 			{
 				public void onFailure(Throwable caught) {
-					Window.alert("Could not connect to the UDDI registry. " + caught.getMessage());
+					Window.alert("Error: " + caught.getMessage());
 				}
 	
 				public void onSuccess(JUDDIApiResponse response) {
 					if (response.isSuccess()) {
 						JUDDIPublisher.getInstance().hidePublisher();
 					} else {
-						Window.alert("error: " + response.getMessage() + ". Make sure the UDDI server is up
and running.");
+						Window.alert("error: " + response.getMessage());
 					}
 				}
 			});
@@ -164,7 +164,7 @@
 			juddiApiService.savePublisher(token, publisher, new AsyncCallback<JUDDIApiResponse>()

 			{
 				public void onFailure(Throwable caught) {
-					Window.alert("Could not connect to the UDDI registry. " + caught.getMessage());
+					Window.alert("Error:  " + caught.getMessage());
 				}
 	
 				public void onSuccess(JUDDIApiResponse response) {
@@ -173,7 +173,7 @@
 						JUDDIPublisher.getInstance().setSelectedPublisher(publisher.getAuthorizedName());
 						JUDDIPublisher.getInstance().displayPublisher(publisher);
 					} else {
-						Window.alert("error: " + response.getMessage() + ". Make sure the UDDI server is up
and running.");
+						Window.alert("error: " + response.getMessage());
 					}
 				}
 			}); 

Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionPanel.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionPanel.java?rev=825419&r1=825418&r2=825419&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionPanel.java
(original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionPanel.java
Thu Oct 15 07:31:15 2009
@@ -191,7 +191,7 @@
 			subscriptionServiceAsync.deleteSubscription(authToken, subscription, new AsyncCallback<SubscriptionResponse>()
 					{
 						public void onFailure(Throwable caught) {
-							Window.alert("Could not connect to the UDDI registry. " + caught.getMessage());
+							Window.alert("Error: " + caught.getMessage());
 						}
 			
 						public void onSuccess(SubscriptionResponse response) {
@@ -199,7 +199,7 @@
 								UDDISubscription.getInstance().refreshSubscriptionTree();
 								UDDISubscription.getInstance().removeDetailPanel();
 							} else {
-								Window.alert("error: " + response.getMessage() + ". Make sure the UDDI server is
up and running.");
+								Window.alert("error: " + response.getMessage());
 							}
 						}
 					}); 
@@ -248,7 +248,7 @@
 			subscriptionServiceAsync.saveSubscription(authToken, subscription, new AsyncCallback<SubscriptionResponse>()
 			{
 				public void onFailure(Throwable caught) {
-					Window.alert("Could not connect to the UDDI registry. " + caught.getMessage());
+					Window.alert("Error: " + caught.getMessage());
 				}
 	
 				public void onSuccess(SubscriptionResponse response) {
@@ -256,7 +256,7 @@
 						UDDISubscription.getInstance().displaySubscription(response.getSubscription());
 						UDDISubscription.getInstance().refreshSubscriptionTree();
 					} else {
-						Window.alert("error: " + response.getMessage() + ". Make sure the UDDI server is up
and running.");
+						Window.alert("error: " + response.getMessage());
 					}
 				}
 			}); 

Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionTreePanel.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionTreePanel.java?rev=825419&r1=825418&r2=825419&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionTreePanel.java
(original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/SubscriptionTreePanel.java
Thu Oct 15 07:31:15 2009
@@ -53,7 +53,7 @@
 		subscriptionService.getSubscriptions(new AsyncCallback<SubscriptionResponse>() 
 		{
 			public void onFailure(Throwable caught) {
-				Window.alert("Could not connect to the UDDI registry.");
+				Window.alert("Error:" + caught.getMessage());
 			}
 
 			public void onSuccess(SubscriptionResponse response) {
@@ -96,7 +96,7 @@
 					}
 					
 				} else {
-					Window.alert(response.getMessage());
+					Window.alert("error" + response.getMessage());
 				}
 			}
 		});

Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISearch.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISearch.java?rev=825419&r1=825418&r2=825419&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISearch.java
(original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISearch.java
Thu Oct 15 07:31:15 2009
@@ -95,7 +95,7 @@
 		inquiryService.queryJUDDI(query, new AsyncCallback<SearchResponse>() 
 		{
 			public void onFailure(Throwable caught) {
-				Window.alert("Could not connect to the UDDI registry.");
+				Window.alert("Error:" + caught.getMessage());
 			}
 
 			public void onSuccess(SearchResponse response) {

Modified: webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/SubscriptionServiceImpl.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/SubscriptionServiceImpl.java?rev=825419&r1=825418&r2=825419&view=diff
==============================================================================
--- webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/SubscriptionServiceImpl.java
(original)
+++ webservices/juddi/trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/service/SubscriptionServiceImpl.java
Thu Oct 15 07:31:15 2009
@@ -69,7 +69,7 @@
 	public SubscriptionResponse getSubscriptions() 
 	{
 		SubscriptionResponse response = new SubscriptionResponse();
-		response.setSuccess(false);
+		response.setSuccess(true);
 		HttpServletRequest request = getThreadLocalRequest();
 		HttpSession session = request.getSession();
 		String publisher = (String) session.getAttribute("UserName");
@@ -86,9 +86,9 @@
 				if (publisher.equals(clerk.getPublisher())) {
 					isMatchingClerk = true;
 					Node modelNode = getSubscriptions(session, clerk);
-					if (UP.equals(modelNode.getStatus())) {
-						response.setSuccess(true);
-					}
+					//if (UP.equals(modelNode.getStatus())) {
+						
+					//}
 					modelNode.setClerkName(clerk.getName());
 					response.getNodes().add(modelNode);
 				}
@@ -136,8 +136,8 @@
 			}
 			modelNode.setStatus(UP);
 		} catch (Exception e) {
-			logger.error("Could not obtain subscription due to " + e.getMessage(), e);
-			modelNode.setStatus("Down, communication problem: " + e.getMessage());
+			logger.error("Could not obtain subscription due to " + e.getCause(), e);
+			modelNode.setStatus("Down, communication problem: " + e.getCause());
 		} 
 		return modelNode;
 	}



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


Mime
View raw message