You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by tc...@apache.org on 2009/05/12 21:26:45 UTC
svn commit: r774042 - in
/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets: ./
src/main/java/org/apache/juddi/portlets/client/
src/main/java/org/apache/juddi/portlets/public/
src/main/java/org/apache/juddi/portlets/server/
Author: tcunning
Date: Tue May 12 19:26:45 2009
New Revision: 774042
URL: http://svn.apache.org/viewvc?rev=774042&view=rev
Log:
JUDDI-196
Add subscription listener UI.
Added:
webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/NotifyPanel.java
webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISubscriptionNotification.java
Modified:
webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/pom.xml
webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/UDDISubscriptionNotification.html
webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDISubscriptionNotificationPortlet.java
Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/pom.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/pom.xml?rev=774042&r1=774041&r2=774042&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/pom.xml (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/pom.xml Tue May 12 19:26:45 2009
@@ -149,6 +149,7 @@
<version>2.0-beta26</version>
<configuration>
<compileTargets>
+ <value>org.apache.juddi.portlets.UDDISubscriptionNotification</value>
<value>org.apache.juddi.portlets.UDDIBrowser</value>
</compileTargets>
<runTarget>org.apache.juddi.portlets.UDDIBrowser/UDDIBrowser.html</runTarget>
@@ -263,4 +264,4 @@
</activation>
</profile>
</profiles>
-</project>
\ No newline at end of file
+</project>
Added: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/NotifyPanel.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/NotifyPanel.java?rev=774042&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/NotifyPanel.java (added)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/NotifyPanel.java Tue May 12 19:26:45 2009
@@ -0,0 +1,47 @@
+package org.apache.juddi.portlets.client;
+
+import java.util.List;
+
+import org.apache.juddi.portlets.client.model.Business;
+import org.apache.juddi.portlets.client.model.Service;
+import org.apache.juddi.portlets.client.model.ServiceBinding;
+import org.apache.juddi.portlets.client.service.InquiryResponse;
+import org.apache.juddi.portlets.client.service.PublicationResponse;
+import org.apache.juddi.portlets.client.service.PublicationService;
+import org.apache.juddi.portlets.client.service.PublicationServiceAsync;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.google.gwt.user.client.ui.Composite;
+import com.google.gwt.user.client.ui.FlexTable;
+import com.google.gwt.user.client.ui.HTML;
+import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.user.client.ui.RootPanel;
+import com.google.gwt.user.client.ui.TextArea;
+import com.google.gwt.user.client.ui.Tree;
+import com.google.gwt.user.client.ui.TreeItem;
+import com.google.gwt.user.client.ui.TreeListener;
+import com.google.gwt.user.client.ui.VerticalPanel;
+
+public class NotifyPanel extends VerticalPanel {
+
+ private UDDISubscriptionNotification notification = null;
+ private NotifyPanel notifyPanel = null;
+ FlexTable table = null;
+
+ public NotifyPanel(UDDISubscriptionNotification notification) {
+ super();
+ this.notification = notification;
+ notifyPanel = this;
+ getElement().setId("notifications-body");
+ Label notifyLabel = new Label ("Subscription notifications:");
+ notifyLabel.setStyleName("portlet-form-field-label");
+ add(notifyLabel);
+
+ TextArea ta = new TextArea();
+ ta.setCharacterWidth(50);
+ ta.setVisibleLines(50);
+ add(ta);
+ }
+}
Added: 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=774042&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISubscriptionNotification.java (added)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/client/UDDISubscriptionNotification.java Tue May 12 19:26:45 2009
@@ -0,0 +1,62 @@
+/*
+ * Copyright 2001-2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.juddi.portlets.client;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.user.client.ui.DockPanel;
+import com.google.gwt.user.client.ui.RootPanel;
+
+/**
+ * Entry point classes define <code>onModuleLoad()</code>.
+ *
+ * @author <a href="mailto:tcunning@apache.org">Tom Cunningham</a>
+ */
+public class UDDISubscriptionNotification implements EntryPoint {
+
+ //public static final Images images = (Images) GWT.create(Images.class);
+ private NotifyPanel notifyPanel = null;
+ private String token = null;
+
+ /**
+ * This is the entry point method.
+ */
+ public void onModuleLoad() {
+ notifyPanel = new NotifyPanel(this);
+ notifyPanel.setVisible(true);
+ setNotifyPanel(notifyPanel);
+ RootPanel.get("notification").add(notifyPanel);
+ }
+
+ protected NotifyPanel getNotifyPanel() {
+ return notifyPanel;
+ }
+
+ protected void setNotifyPanel(NotifyPanel notifyPanel) {
+ this.notifyPanel = notifyPanel;
+ }
+
+ public String getToken() {
+ return token;
+ }
+
+ public void setToken(String token) {
+ this.token = token;
+ }
+}
+
+
\ No newline at end of file
Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/UDDISubscriptionNotification.html
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/UDDISubscriptionNotification.html?rev=774042&r1=774041&r2=774042&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/UDDISubscriptionNotification.html (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/public/UDDISubscriptionNotification.html Tue May 12 19:26:45 2009
@@ -15,7 +15,7 @@
* limitations under the License.
*
*/ -->
-
+
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
@@ -28,6 +28,6 @@
<script type="text/javascript" language="javascript" src="org.apache.juddi.portlets.UDDISubscriptionNotification.nocache.js"></script>
</head>
<body>
- <div id="search"></div>
+ <div id="notification"></div>
</body>
</html>
Modified: webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDISubscriptionNotificationPortlet.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDISubscriptionNotificationPortlet.java?rev=774042&r1=774041&r2=774042&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDISubscriptionNotificationPortlet.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-console/uddi-portlets/src/main/java/org/apache/juddi/portlets/server/UDDISubscriptionNotificationPortlet.java Tue May 12 19:26:45 2009
@@ -19,7 +19,7 @@
writer.println("<script type='text/javascript' language='javascript' src='"
+ renderRequest.getContextPath()
+ "/org.apache.juddi.portlets.UDDISubscriptionNotification/org.apache.juddi.portlets.UDDISubscriptionNotification.nocache.js'></script>");
- writer.println("<div id=\"search\"></div>");
+ writer.println("<div id=\"notification\"></div>");
writer.close();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org