[gatein-commits] gatein SVN: r975 - in portal/branches/wsrp-integration/portlet: exoadmin/src/main/java/org/exoplatform/wsrp and 15 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Dec 8 22:23:12 EST 2009


Author: wesleyhales
Date: 2009-12-08 22:23:12 -0500 (Tue, 08 Dec 2009)
New Revision: 975

Added:
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpConsole.java
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpConsumerEditor.java
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpConsumerOverview.java
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpPortlet.java
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/WEB-INF/conf/portlet/exoadmin/WSRPAdminPortlet/
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/WEB-INF/conf/portlet/exoadmin/WSRPAdminPortlet/webui/
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/WEB-INF/conf/portlet/exoadmin/WSRPAdminPortlet/webui/configuration.xml
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsole.gtmpl
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsoleContent.gtmpl
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsumerEditor.gtmpl
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsumerOverview.gtmpl
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpPopup.gtmpl
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpPortlet.gtmpl
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/skin/wsrp/
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/skin/wsrp/webui/
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/skin/wsrp/webui/component/
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/skin/wsrp/webui/component/DefaultStylesheet.css
Modified:
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/WEB-INF/gatein-resources.xml
   portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/WEB-INF/portlet.xml
   portal/branches/wsrp-integration/portlet/web/src/main/webapp/WEB-INF/gatein-resources.xml
   portal/branches/wsrp-integration/portlet/web/src/main/webapp/WEB-INF/portlet.xml
Log:
Initial WSRP ui and flow for adding consumer

Added: portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpConsole.java
===================================================================
--- portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpConsole.java	                        (rev 0)
+++ portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpConsole.java	2009-12-09 03:23:12 UTC (rev 975)
@@ -0,0 +1,138 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat                                               *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual                    *
+ * contributors as indicated by the @authors tag. See the                     *
+ * copyright.txt in the distribution for a full listing of                    *
+ * individual contributors.                                                   *
+ *                                                                            *
+ * This is free software; you can redistribute it and/or modify it            *
+ * under the terms of the GNU Lesser General Public License as                *
+ * published by the Free Software Foundation; either version 2.1 of           *
+ * the License, or (at your option) any later version.                        *
+ *                                                                            *
+ * This software is distributed in the hope that it will be useful,           *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU           *
+ * Lesser General Public License for more details.                            *
+ *                                                                            *
+ * You should have received a copy of the GNU Lesser General Public           *
+ * License along with this software; if not, write to the Free                *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA         *
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.                   *
+ ******************************************************************************/
+package org.exoplatform.wsrp.webui.component;
+
+import org.exoplatform.portal.webui.application.UIApplicationList;
+import org.exoplatform.portal.webui.application.UIPortlet;
+import org.exoplatform.portal.webui.container.UIContainerList;
+import org.exoplatform.portal.webui.util.Util;
+import org.exoplatform.portal.webui.workspace.UIPortalApplication;
+import org.exoplatform.webui.application.WebuiRequestContext;
+import org.exoplatform.webui.config.annotation.ComponentConfig;
+import org.exoplatform.webui.config.annotation.ComponentConfigs;
+import org.exoplatform.webui.config.annotation.EventConfig;
+import org.exoplatform.webui.core.UIComponent;
+import org.exoplatform.webui.core.UIContainer;
+import org.exoplatform.webui.core.UITabPane;
+import org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle;
+import org.exoplatform.webui.event.Event;
+
+/** @author Wesley Hales */
+ at ComponentConfigs({
+ at ComponentConfig(
+   lifecycle = UIApplicationLifecycle.class,
+   template = "app:/groovy/wsrp/webui/component/UIWsrpConsole.gtmpl"),
+ at ComponentConfig(
+   id = "UIWsrpConsoleTab",
+   type = UITabPane.class,
+   template = "app:/groovy/wsrp/webui/component/UIWsrpConsoleContent.gtmpl",
+   events = {@EventConfig(listeners = UIWsrpConsole.SelectTabActionListener.class)})})
+public class UIWsrpConsole extends UIContainer
+{
+   public UIWsrpConsole() throws Exception
+   {
+      UITabPane uiTabPane = addChild(UITabPane.class, "UIWsrpConsoleTab", null);
+      uiTabPane.addChild(UIWsrpConsumerOverview.class, null, null).setRendered(true);
+      uiTabPane.addChild(UIContainerList.class, null, null);
+      uiTabPane.setSelectedTab(1);
+   }
+
+   public void processRender(WebuiRequestContext context) throws Exception
+   {
+      UIPortalApplication uiPortalApp = Util.getUIPortalApplication();
+      int portalMode = uiPortalApp.getModeState();
+      if (portalMode != UIPortalApplication.NORMAL_MODE)
+      {
+         UITabPane uiTabPane = this.getChild(UITabPane.class);
+         UIComponent uiComponent = uiTabPane.getChildById(uiTabPane.getSelectedTabId());
+         if (uiComponent instanceof UIWsrpConsumerOverview)
+         {
+            if (portalMode == UIPortalApplication.APP_VIEW_EDIT_MODE)
+            {
+               Util.showComponentEditInViewMode(UIPortlet.class);
+            }
+            else
+            {
+               uiPortalApp.setModeState(UIPortalApplication.APP_BLOCK_EDIT_MODE);
+               Util.showComponentLayoutMode(UIPortlet.class);
+            }
+         }
+         else if (uiComponent instanceof UIContainerList)
+         {
+            if (portalMode == UIPortalApplication.CONTAINER_VIEW_EDIT_MODE)
+            {
+               Util.showComponentEditInViewMode(org.exoplatform.portal.webui.container.UIContainer.class);
+            }
+            else
+            {
+               uiPortalApp.setModeState(UIPortalApplication.CONTAINER_BLOCK_EDIT_MODE);
+               Util.showComponentLayoutMode(org.exoplatform.portal.webui.container.UIContainer.class);
+            }
+         }
+      }
+      super.processRender(context);
+   }
+
+   static public class SelectTabActionListener extends UITabPane.SelectTabActionListener
+   {
+      public void execute(Event<UITabPane> event) throws Exception
+      {
+         super.execute(event);
+         UITabPane uiTabPane = event.getSource();
+         UIComponent uiComponent = uiTabPane.getChildById(uiTabPane.getSelectedTabId());
+         UIPortalApplication uiPortalApp = Util.getUIPortalApplication();
+         int portalMode = uiPortalApp.getModeState();
+
+         if (uiComponent instanceof UIWsrpConsumerOverview)
+         { // Swicth to Porlets Tab
+            if (portalMode % 2 == 0)
+            {
+               uiPortalApp.setModeState(UIPortalApplication.APP_VIEW_EDIT_MODE);
+               Util.showComponentEditInViewMode(UIPortlet.class);
+            }
+            else
+            {
+               uiPortalApp.setModeState(UIPortalApplication.APP_BLOCK_EDIT_MODE);
+               Util.showComponentLayoutMode(UIPortlet.class);
+            }
+         }
+         else if (uiComponent instanceof UIContainerList)
+         { // Swicth to
+            // Containers Tab
+            if (portalMode % 2 == 0)
+            {
+               uiPortalApp.setModeState(UIPortalApplication.CONTAINER_VIEW_EDIT_MODE);
+               Util.showComponentEditInViewMode(org.exoplatform.portal.webui.container.UIContainer.class);
+            }
+            else
+            {
+               uiPortalApp.setModeState(UIPortalApplication.CONTAINER_BLOCK_EDIT_MODE);
+               Util.showComponentLayoutMode(org.exoplatform.portal.webui.container.UIContainer.class);
+            }
+         }
+         event.getRequestContext().addUIComponentToUpdateByAjax(
+            Util.getUIPortalApplication().getChildById(UIPortalApplication.UI_WORKING_WS_ID));
+      }
+   }
+
+}

Added: portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpConsumerEditor.java
===================================================================
--- portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpConsumerEditor.java	                        (rev 0)
+++ portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpConsumerEditor.java	2009-12-09 03:23:12 UTC (rev 975)
@@ -0,0 +1,72 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat                                               *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual                    *
+ * contributors as indicated by the @authors tag. See the                     *
+ * copyright.txt in the distribution for a full listing of                    *
+ * individual contributors.                                                   *
+ *                                                                            *
+ * This is free software; you can redistribute it and/or modify it            *
+ * under the terms of the GNU Lesser General Public License as                *
+ * published by the Free Software Foundation; either version 2.1 of           *
+ * the License, or (at your option) any later version.                        *
+ *                                                                            *
+ * This software is distributed in the hope that it will be useful,           *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU           *
+ * Lesser General Public License for more details.                            *
+ *                                                                            *
+ * You should have received a copy of the GNU Lesser General Public           *
+ * License along with this software; if not, write to the Free                *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA         *
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.                   *
+ ******************************************************************************/
+package org.exoplatform.wsrp.webui.component;
+
+import org.exoplatform.applicationregistry.webui.component.UIAddApplicationForm;
+import org.exoplatform.applicationregistry.webui.component.UIApplicationForm;
+import org.exoplatform.applicationregistry.webui.component.UIApplicationOrganizer;
+import org.exoplatform.webui.application.WebuiRequestContext;
+import org.exoplatform.webui.config.annotation.ComponentConfig;
+import org.exoplatform.webui.config.annotation.EventConfig;
+import org.exoplatform.webui.core.lifecycle.UIFormLifecycle;
+import org.exoplatform.webui.event.Event;
+import org.exoplatform.webui.event.EventListener;
+import org.exoplatform.webui.form.UIForm;
+import org.exoplatform.webui.form.UIFormStringInput;
+import org.exoplatform.webui.form.validator.MandatoryValidator;
+
+/** @author Wesley Hales */
+ at ComponentConfig(template = "app:/groovy/wsrp/webui/component/UIWsrpConsumerEditor.gtmpl", lifecycle = UIFormLifecycle.class, events = {
+   @EventConfig(listeners = UIAddApplicationForm.AddActionListener.class),
+   @EventConfig(listeners = UIApplicationForm.SaveActionListener.class),
+   @EventConfig(listeners = UIAddApplicationForm.CancelActionListener.class, phase = Event.Phase.DECODE)})
+public class UIWsrpConsumerEditor extends UIApplicationForm
+{
+   protected static final String CONSUMER_NAME = "Consumer Name:";
+
+   public UIWsrpConsumerEditor() throws Exception
+   {
+      addUIFormInput(new UIFormStringInput(CONSUMER_NAME, CONSUMER_NAME, null).addValidator(MandatoryValidator.class));
+   }
+
+   private String getConsumerName(){
+      return getUIStringInput(CONSUMER_NAME).getValue();
+   }
+
+   static public class SaveActionListener extends EventListener<UIWsrpConsumerEditor>
+   {
+      public void execute(Event<UIWsrpConsumerEditor> event) throws Exception
+      {
+         UIWsrpConsumerEditor consumerEditor = event.getSource();
+         WebuiRequestContext ctx = event.getRequestContext();
+         consumerEditor.save(ctx);
+      }
+   }
+
+   public boolean save(WebuiRequestContext context) throws Exception
+   {
+      System.out.println("----------getConsumerName: " + getConsumerName());
+      return true;
+   }
+
+}

Added: portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpConsumerOverview.java
===================================================================
--- portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpConsumerOverview.java	                        (rev 0)
+++ portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpConsumerOverview.java	2009-12-09 03:23:12 UTC (rev 975)
@@ -0,0 +1,61 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat                                               *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual                    *
+ * contributors as indicated by the @authors tag. See the                     *
+ * copyright.txt in the distribution for a full listing of                    *
+ * individual contributors.                                                   *
+ *                                                                            *
+ * This is free software; you can redistribute it and/or modify it            *
+ * under the terms of the GNU Lesser General Public License as                *
+ * published by the Free Software Foundation; either version 2.1 of           *
+ * the License, or (at your option) any later version.                        *
+ *                                                                            *
+ * This software is distributed in the hope that it will be useful,           *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU           *
+ * Lesser General Public License for more details.                            *
+ *                                                                            *
+ * You should have received a copy of the GNU Lesser General Public           *
+ * License along with this software; if not, write to the Free                *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA         *
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.                   *
+ ******************************************************************************/
+package org.exoplatform.wsrp.webui.component;
+
+import org.exoplatform.webui.config.annotation.ComponentConfig;
+import org.exoplatform.webui.config.annotation.EventConfig;
+import org.exoplatform.webui.core.UIContainer;
+import org.exoplatform.webui.core.UIPopupWindow;
+import org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle;
+import org.exoplatform.webui.event.Event;
+import org.exoplatform.webui.event.EventListener;
+
+/** @author Wesley Hales */
+ at ComponentConfig(
+   lifecycle = UIApplicationLifecycle.class,
+   template = "app:/groovy/wsrp/webui/component/UIWsrpConsumerOverview.gtmpl",
+   events = {
+         @EventConfig(listeners = UIWsrpConsumerOverview.OpenPopupActionListener.class)
+   })
+public class UIWsrpConsumerOverview extends UIContainer
+{
+   public UIWsrpConsumerOverview() throws Exception
+   {
+      UIPopupWindow popup = addChild(UIPopupWindow.class, null, null);
+      popup.setWindowSize(400, 300);
+      UIWsrpConsumerEditor consumerForm = createUIComponent(UIWsrpConsumerEditor.class,null,null);
+      popup.setUIComponent(consumerForm);
+      popup.setRendered(false);
+   }
+
+   static public class OpenPopupActionListener extends EventListener<UIWsrpConsumerOverview>
+   {
+      public void execute(Event<UIWsrpConsumerOverview> event) throws Exception
+      {
+         UIWsrpConsumerOverview consumerOverview = event.getSource();
+         UIPopupWindow popup = consumerOverview.getChild(UIPopupWindow.class);
+         popup.setRendered(true);
+         popup.setShow(true);
+      }
+   }
+}

Added: portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpPortlet.java
===================================================================
--- portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpPortlet.java	                        (rev 0)
+++ portal/branches/wsrp-integration/portlet/exoadmin/src/main/java/org/exoplatform/wsrp/webui/component/UIWsrpPortlet.java	2009-12-09 03:23:12 UTC (rev 975)
@@ -0,0 +1,46 @@
+/******************************************************************************
+ * JBoss, a division of Red Hat                                               *
+ * Copyright 2006, Red Hat Middleware, LLC, and individual                    *
+ * contributors as indicated by the @authors tag. See the                     *
+ * copyright.txt in the distribution for a full listing of                    *
+ * individual contributors.                                                   *
+ *                                                                            *
+ * This is free software; you can redistribute it and/or modify it            *
+ * under the terms of the GNU Lesser General Public License as                *
+ * published by the Free Software Foundation; either version 2.1 of           *
+ * the License, or (at your option) any later version.                        *
+ *                                                                            *
+ * This software is distributed in the hope that it will be useful,           *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of             *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU           *
+ * Lesser General Public License for more details.                            *
+ *                                                                            *
+ * You should have received a copy of the GNU Lesser General Public           *
+ * License along with this software; if not, write to the Free                *
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA         *
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.                   *
+ ******************************************************************************/
+package org.exoplatform.wsrp.webui.component;
+
+import org.exoplatform.webui.config.annotation.ComponentConfig;
+import org.exoplatform.webui.config.annotation.EventConfig;
+import org.exoplatform.webui.core.UIPortletApplication;
+import org.exoplatform.webui.core.lifecycle.UIApplicationLifecycle;
+
+/** @author Wesley Hales */
+ at ComponentConfig(
+   lifecycle = UIApplicationLifecycle.class,
+   template = "app:/groovy/wsrp/webui/component/UIWsrpPortlet.gtmpl"
+)
+
+public class UIWsrpPortlet extends UIPortletApplication
+{
+   public UIWsrpPortlet() throws Exception
+   {
+      addChild(UIWsrpConsole.class,null,null);
+   }
+
+
+
+
+}

Added: portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/WEB-INF/conf/portlet/exoadmin/WSRPAdminPortlet/webui/configuration.xml
===================================================================
--- portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/WEB-INF/conf/portlet/exoadmin/WSRPAdminPortlet/webui/configuration.xml	                        (rev 0)
+++ portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/WEB-INF/conf/portlet/exoadmin/WSRPAdminPortlet/webui/configuration.xml	2009-12-09 03:23:12 UTC (rev 975)
@@ -0,0 +1,30 @@
+<!--
+
+    Copyright (C) 2009 eXo Platform SAS.
+
+    This is free software; you can redistribute it and/or modify it
+    under the terms of the GNU Lesser General Public License as
+    published by the Free Software Foundation; either version 2.1 of
+    the License, or (at your option) any later version.
+
+    This software is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with this software; if not, write to the Free
+    Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+    02110-1301 USA, or see the FSF site: http://www.fsf.org.
+
+-->
+
+<webui-configuration>
+  <application>
+    <ui-component-root>org.exoplatform.wsrp.webui.component.UIWsrpPortlet</ui-component-root>
+    <state-manager>org.exoplatform.webui.application.portlet.ParentAppStateManager</state-manager>
+    <application-lifecycle-listeners>
+      <listener>org.exoplatform.portal.application.PortletStatisticLifecycle</listener>
+    </application-lifecycle-listeners>
+  </application>
+</webui-configuration>

Modified: portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/WEB-INF/gatein-resources.xml
===================================================================
--- portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/WEB-INF/gatein-resources.xml	2009-12-09 03:05:21 UTC (rev 974)
+++ portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/WEB-INF/gatein-resources.xml	2009-12-09 03:23:12 UTC (rev 975)
@@ -83,6 +83,15 @@
 		<skin-name>Default</skin-name>
 		<css-path>/skin/register/webui/component/DefaultStylesheet.css</css-path>
 	</portlet-skin>
+
+    <!-- WSRP Admin Portlet skins -->
+
+	<portlet-skin>
+		<application-name>exoadmin</application-name>
+		<portlet-name>WSRPAdminPortlet</portlet-name>
+		<skin-name>Default</skin-name>
+		<css-path>/skin/wsrp/webui/component/DefaultStylesheet.css</css-path>
+	</portlet-skin>
 			
 </gatein-resources>
 

Modified: portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/WEB-INF/portlet.xml	2009-12-09 03:05:21 UTC (rev 974)
+++ portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/WEB-INF/portlet.xml	2009-12-09 03:23:12 UTC (rev 975)
@@ -105,6 +105,32 @@
      </portlet-info>
    </portlet>
 
+    <portlet>
+     <description xml:lang="EN">WSRP Admin Portlet</description>
+     <portlet-name>WSRPAdminPortlet</portlet-name>
+     <display-name xml:lang="EN">WSRP Admin Portlet</display-name>
+     <portlet-class>org.exoplatform.webui.application.portlet.PortletApplicationController</portlet-class>
+
+     <init-param>
+       <name>webui.configuration</name>
+       <value>/WEB-INF/conf/portlet/exoadmin/WSRPAdminPortlet/webui/configuration.xml</value>
+     </init-param>
+
+     <expiration-cache>0</expiration-cache>
+     <supports>
+       <mime-type>text/html</mime-type>
+       <portlet-mode>help</portlet-mode>
+     </supports>
+     <supported-locale>en</supported-locale>
+
+     <resource-bundle>locale.portlet.exoadmin.RegisterPortlet</resource-bundle>
+     <portlet-info>
+       <title>Register Portlet</title>
+       <short-title>Register Portlet</short-title>
+       <keywords>Administration</keywords>
+     </portlet-info>
+   </portlet>
+
    <portlet>
       <description xml:lang="EN">Group Navigation Portlet</description>
       <portlet-name>GroupNavigationPortlet</portlet-name>

Added: portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsole.gtmpl
===================================================================
--- portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsole.gtmpl	                        (rev 0)
+++ portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsole.gtmpl	2009-12-09 03:23:12 UTC (rev 975)
@@ -0,0 +1,4 @@
+<% uicomponent.renderChildren(); %>
+<div>
+  Console Text...
+</div>
\ No newline at end of file

Added: portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsoleContent.gtmpl
===================================================================
--- portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsoleContent.gtmpl	                        (rev 0)
+++ portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsoleContent.gtmpl	2009-12-09 03:23:12 UTC (rev 975)
@@ -0,0 +1,48 @@
+<%
+  import org.exoplatform.wsrp.webui.component.UIWsrpConsumerOverview;
+
+
+  def rcontext = _ctx.getRequestContext();
+  rcontext.getJavascriptManager().importJavascript('eXo.webui.UIHorizontalTabs');
+%>
+
+<div class="UITabPane" id="$uicomponent.id">
+  <div class="UIHorizontalTabs">
+    <div class="TabsContainer">
+      <%
+        String url = uicomponent.url("SelectTab");
+        String selTabId = uicomponent.getSelectedTabId();
+        
+        UIWsrpConsumerOverview consumerOverview = uicomponent.getChild(UIWsrpConsumerOverview.class);
+      %>
+      <div class="UITab GrayTabStyle">
+        <div class="<%= consumerOverview.getId().equals(selTabId) ? "SelectedTab" : "NormalTab" %>">
+          <div class="LeftTab">
+            <div class="RightTab">
+              <% String appLink = "ajaxAsyncGetRequest('" + uicomponent.url("SelectTab",consumerOverview.getId()) + "', true)" %>
+              <div class="MiddleTab" onclick="eXo.webui.UIHorizontalTabs.changeTabForUITabPane(this, '${consumerOverview.getId()}', '$url');$appLink;if(eXo.portal.portalMode) eXo.portal.portalMode -= 2;">
+                  <%=_ctx.appRes("UITabPane.title." + consumerOverview.getId());%>
+              </div>
+            </div>
+          </div>
+        </div>
+      </div>
+      <div class="UITab GrayTabStyle">
+        <div class="NormalTab">
+          <div class="LeftTab">
+            <div class="RightTab">
+
+              <div class="MiddleTab" onclick="">
+                Manage Producers
+              </div>
+            </div>
+          </div>
+        </div>
+      </div>
+    </div>
+  </div>
+  <div class="UITabContentContainer GrayTabContainer">
+    <div class="UITabContent" style="display: <%=consumerOverview.getId().equals(selTabId) ? "block": "none"%>;overflow:auto;clear:both"><% uicomponent.renderUIComponent(consumerOverview);  %></div>
+    <div class="UITabContent" style="display:none;overflow:auto;clear:both">Producer content</div>
+  </div>
+</div>

Added: portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsumerEditor.gtmpl
===================================================================
--- portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsumerEditor.gtmpl	                        (rev 0)
+++ portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsumerEditor.gtmpl	2009-12-09 03:23:12 UTC (rev 975)
@@ -0,0 +1,44 @@
+<%
+
+	import org.exoplatform.webui.form.UIFormStringInput;
+
+%>
+
+<div class="UILoginForm" id="ChildTest">
+
+	<%uiform.begin()%>
+
+  <%
+        UIFormStringInput name = uicomponent.getChild(UIFormStringInput.class);
+ %>
+	<div class="SignIn">Add new Consumer</div>
+	<div class="FloatRight">
+		<div class="FloatLeft">
+			<div class="UserName" >
+				<label>Consumer Name</label>
+				<% uiform.renderField(name); %>
+			</div>
+
+		</div>
+		<div class="UIAction"> 
+            <table class="ActionContainer">
+                <tr>
+                    <td>
+                        <div onclick="<%=uicomponent.event("Save")%>" class="ActionButton LightBlueStyle">
+                            <div class="ButtonLeft">
+                                <div class="ButtonRight">
+                                    <div class="ButtonMiddle">
+                                        <a href="javascript:void(0);"><%=_ctx.appRes(uicomponent.getId() + ".action.Save")%></a>
+                                    </div>
+                                </div>
+                            </div>
+                        </div>
+                    </td>
+                </tr>
+            </table>
+        </div>
+		<div class="ClearLeft"><span></span></div>
+	</div>
+	<div class="ClearRight"><span></span></div>
+	<%uiform.end()%>
+</div>

Added: portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsumerOverview.gtmpl
===================================================================
--- portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsumerOverview.gtmpl	                        (rev 0)
+++ portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpConsumerOverview.gtmpl	2009-12-09 03:23:12 UTC (rev 975)
@@ -0,0 +1,6 @@
+<% uicomponent.renderChildren(); %>
+<div class="<%=uicomponent.getId()%>">
+
+  <a href="<%=uicomponent.event("OpenPopup", "")%>">Add Consumer</a>
+
+</div>
\ No newline at end of file

Added: portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpPopup.gtmpl
===================================================================
--- portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpPopup.gtmpl	                        (rev 0)
+++ portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpPopup.gtmpl	2009-12-09 03:23:12 UTC (rev 975)
@@ -0,0 +1,3 @@
+<div class="<%=uicomponent.getId()%>">
+ this is a popup?
+</div>
\ No newline at end of file

Added: portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpPortlet.gtmpl
===================================================================
--- portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpPortlet.gtmpl	                        (rev 0)
+++ portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/groovy/wsrp/webui/component/UIWsrpPortlet.gtmpl	2009-12-09 03:23:12 UTC (rev 975)
@@ -0,0 +1,4 @@
+<% uicomponent.renderChildren(); %>
+<div class="<%=uicomponent.getId()%>">
+
+</div>
\ No newline at end of file

Added: portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/skin/wsrp/webui/component/DefaultStylesheet.css
===================================================================
--- portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/skin/wsrp/webui/component/DefaultStylesheet.css	                        (rev 0)
+++ portal/branches/wsrp-integration/portlet/exoadmin/src/main/webapp/skin/wsrp/webui/component/DefaultStylesheet.css	2009-12-09 03:23:12 UTC (rev 975)
@@ -0,0 +1,23 @@
+/**
+ * Copyright (C) 2009 eXo Platform SAS.
+ * 
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ * 
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ * 
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+.UIWsrpPortlet {
+	padding: 30px 0;
+    border:2px dotted brown;
+}
\ No newline at end of file

Modified: portal/branches/wsrp-integration/portlet/web/src/main/webapp/WEB-INF/gatein-resources.xml
===================================================================
--- portal/branches/wsrp-integration/portlet/web/src/main/webapp/WEB-INF/gatein-resources.xml	2009-12-09 03:05:21 UTC (rev 974)
+++ portal/branches/wsrp-integration/portlet/web/src/main/webapp/WEB-INF/gatein-resources.xml	2009-12-09 03:23:12 UTC (rev 975)
@@ -58,7 +58,7 @@
 
 	<portlet-skin>
 		<application-name>web</application-name>
-		<portlet-name>PortalNavigationPortlet</portlet-name>
+		<portlet-name>PortalNavigationPortlet2</portlet-name>
 		<skin-name>Default</skin-name>
 		<css-path>/skin/portal/webui/component/UIPortalNavigationPortlet/DefaultStylesheet.css</css-path>
 	</portlet-skin>

Modified: portal/branches/wsrp-integration/portlet/web/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- portal/branches/wsrp-integration/portlet/web/src/main/webapp/WEB-INF/portlet.xml	2009-12-09 03:05:21 UTC (rev 974)
+++ portal/branches/wsrp-integration/portlet/web/src/main/webapp/WEB-INF/portlet.xml	2009-12-09 03:23:12 UTC (rev 975)
@@ -197,7 +197,7 @@
   
   <portlet>
     <description xml:lang="EN">Portal Navigation Portlet</description>
-    <portlet-name>PortalNavigationPortlet</portlet-name>
+    <portlet-name>PortalNavigationPortlet2</portlet-name>
     <display-name xml:lang="EN">Portal Navigation Portlet</display-name>
     <portlet-class>org.exoplatform.webui.application.portlet.PortletApplicationController</portlet-class>    
     



More information about the gatein-commits mailing list