You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ho...@apache.org on 2005/11/21 05:24:07 UTC

svn commit: r345825 - in /geronimo/trunk/applications/console-standard/src: java/org/apache/geronimo/console/welcome/ webapp/WEB-INF/view/welcome/

Author: hogstrom
Date: Sun Nov 20 20:24:02 2005
New Revision: 345825

URL: http://svn.apache.org/viewcvs?rev=345825&view=rev
Log:
GERONIMO-1195 Missing files for new Welcome Portlet

Added:
    geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/welcome/
    geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/welcome/WelcomePortlet.java
    geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/
    geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeHelp.jsp
    geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeMaximized.jsp
    geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeNormal.jsp

Added: geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/welcome/WelcomePortlet.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/welcome/WelcomePortlet.java?rev=345825&view=auto
==============================================================================
--- geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/welcome/WelcomePortlet.java (added)
+++ geronimo/trunk/applications/console-standard/src/java/org/apache/geronimo/console/welcome/WelcomePortlet.java Sun Nov 20 20:24:02 2005
@@ -0,0 +1,92 @@
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ *  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.geronimo.console.welcome;
+
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.StringTokenizer;
+import java.util.Map;
+import java.util.TreeMap;
+
+import javax.portlet.ActionRequest;
+import javax.portlet.ActionResponse;
+import javax.portlet.PortletConfig;
+import javax.portlet.PortletException;
+import javax.portlet.PortletRequestDispatcher;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import javax.portlet.WindowState;
+
+import org.apache.geronimo.console.BasePortlet;
+import org.apache.geronimo.console.util.PortletManager;
+
+public class WelcomePortlet extends BasePortlet {
+
+    private static final String NORMALVIEW_JSP = "/WEB-INF/view/welcome/welcomeNormal.jsp";
+
+    private static final String MAXIMIZEDVIEW_JSP = "/WEB-INF/view/welcome/welcomeMaximized.jsp";
+
+    private static final String HELPVIEW_JSP = "/WEB-INF/view/welcome/welcomeHelp.jsp";
+
+    private PortletRequestDispatcher normalView;
+
+    private PortletRequestDispatcher maximizedView;
+
+    private PortletRequestDispatcher helpView;
+
+    public void processAction(ActionRequest actionRequest,
+            ActionResponse actionResponse) throws PortletException, IOException {
+    }
+
+    protected void doView(RenderRequest renderRequest,
+            RenderResponse renderResponse) throws IOException, PortletException {
+        if (WindowState.MINIMIZED.equals(renderRequest.getWindowState())) {
+            return;
+        }
+
+        if (WindowState.NORMAL.equals(renderRequest.getWindowState())) {
+            normalView.include(renderRequest, renderResponse);
+        } else {
+            maximizedView.include(renderRequest, renderResponse);
+        }
+    }
+
+    protected void doHelp(RenderRequest renderRequest,
+            RenderResponse renderResponse) throws PortletException, IOException {
+        helpView.include(renderRequest, renderResponse);
+    }
+
+    public void init(PortletConfig portletConfig) throws PortletException {
+        super.init(portletConfig);
+        normalView = portletConfig.getPortletContext().getRequestDispatcher(
+                NORMALVIEW_JSP);
+        maximizedView = portletConfig.getPortletContext().getRequestDispatcher(
+                MAXIMIZEDVIEW_JSP);
+        helpView = portletConfig.getPortletContext().getRequestDispatcher(
+                HELPVIEW_JSP);
+    }
+
+    public void destroy() {
+        normalView = null;
+        maximizedView = null;
+        helpView = null;
+        super.destroy();
+    }
+
+}
\ No newline at end of file

Added: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeHelp.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeHelp.jsp?rev=345825&view=auto
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeHelp.jsp (added)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeHelp.jsp Sun Nov 20 20:24:02 2005
@@ -0,0 +1,7 @@
+
+
+<p><font face="Verdana" size="+1"><center><b>This is the help for the Geronimo Administration Console Welcome.</b></center></font></p>
+
+<P>The welcome portlet is the first page that users see when they log in to the Geronimo Administration Console.  It contains introductory information about the Administration Console and links to other information about Apache Geronimo.</P>
+
+<P>To return to the main Welcome panel select the "view" link from the header of this portlet.</P>

Added: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeMaximized.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeMaximized.jsp?rev=345825&view=auto
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeMaximized.jsp (added)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeMaximized.jsp Sun Nov 20 20:24:02 2005
@@ -0,0 +1 @@
+<%@ include file="welcomeNormal.jsp" %>
\ No newline at end of file

Added: geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeNormal.jsp
URL: http://svn.apache.org/viewcvs/geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeNormal.jsp?rev=345825&view=auto
==============================================================================
--- geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeNormal.jsp (added)
+++ geronimo/trunk/applications/console-standard/src/webapp/WEB-INF/view/welcome/welcomeNormal.jsp Sun Nov 20 20:24:02 2005
@@ -0,0 +1,104 @@
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<portlet:defineObjects/>
+
+
+<table>
+    <tr>
+
+        <!-- Body -->
+        <td width="90%" align="left" valign="top">
+            <p><font face="Verdana" size="+1"><center><b>Welcome to the Apache Geronimo&#8482;<BR>Administration Console!</b></center></font></p>
+
+            <p>The administration console provides a convenient, user friendly way to administer many aspects of the Geronimo Server and will continue to evolve over time.  The navigation panel on the lefthand side of the screen provides easy access to the individual tasks.  It is always present and allows easy transition from task to task.</p>  
+
+            <p>This space is the main content area where the real work happens.  Each view contains one or more portlets (self contained view fragments) that typically include a link for help in the header.  Look at the top of this portlet for an example and try it out.</p>
+
+            <p>The references on the right are provided so that you can learn more about Apache Geronimo, its capabilities, and what might be coming in future releases.</p>
+
+            <p>Mailing lists are available to get involved in the development of Apache Geronimo or to ask questions of the community:</p>
+
+           <ul>
+               <li><b><a href="mailto:user-subscribe@geronimo.apache.org">user@geronimo.apache.org</a></b> for general questions related to configuring and using Geronimo</li>
+               <li><b><a href="mailto:dev-subscribe@geronimo.apache.org">dev@geronimo.apache.org</a></b> for developers working on Geronimo</li>
+           </ul>
+
+            <p>So share your experiences with us and let us know how we can make Geronimo even better.</p>
+
+            <p><CENTER><B>Thanks for using Geronimo!</B></CENTER></p>
+
+
+        </td>
+
+        <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
+
+        <!-- Geronimo Links -->
+        <td valign="top">
+
+            <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
+                <tr>                                
+                    <td class="DarkBackground" align="left" nowrap>
+                        <font face="Verdana" size="+1"><i>Geronimo Online</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>
+                    </td>
+                </tr>
+                <tr>
+                    <td bgcolor="#FFFFFF" nowrap>
+                        &nbsp;<br>
+                        <a href="http://geronimo.apache.org/">The Geronimo Home Page</a><br>
+                        <a href="http://nagoya.apache.org/jira/secure/BrowseProject.jspa?id=10220">Problem Tracking Database</a><br>
+                        <a href="http://mail-archives.apache.org/mod_mbox/geronimo-user/">Users Mailing List</a><br>
+                        <a href="http://mail-archives.apache.org/mod_mbox/geronimo-dev/">Developers Mailing List</a><br>
+                        <a href="irc://irc.freenode.net/#geronimo">Geronimo IRC chat</a><br>
+                        &nbsp;<br>
+                        &nbsp;<br>
+                        &nbsp;<br>
+                        &nbsp;<br>
+                    </td>
+                </tr>
+            </table>
+
+            <br>
+            <br>
+
+            <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="#000000">
+                <tr>
+                    <td class="DarkBackground" align="left" nowrap>
+                        <font face="Verdana" size="+1"><i>Geronimo Documentation</i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font>
+                    </td>
+                </tr>
+                <tr>
+                    <td bgcolor="#FFFFFF" nowrap>
+                        &nbsp;<br>
+                        <a href="http://geronimo.apache.org/faq.html">FAQ</a><br>
+                        <a href="http://wiki.apache.org/geronimo">Wiki</a><br>
+                        <a href="http://geronimo.apache.org/documentation.html">Geronimo Documentation</a><br>
+                        <a href="http://opensource2.atlassian.com/confluence/oss/display/GERONIMO/Home">Additional Documentation</a><br>
+                        &nbsp;<br>
+                        &nbsp;<br>
+                        &nbsp;<br>
+                        &nbsp;<br>
+                        &nbsp;<br>
+                    </td>
+                </tr>
+            </table>
+
+            <br>
+            <br>
+
+            <p align="right"><font size=-1>
+<!--   Bring this line in and add the powered by icon when available
+            <img src="<%=request.getContextPath()%>/images/ico_geronimo_16x16.gif"/>
+-->
+            </font><br>
+            &nbsp;
+            <font size=-1>Copyright &copy; 1999-2005 Apache Software Foundation</font><br>
+            <font size=-1>All Rights Reserved</font><br>
+            &nbsp;</p>
+            <p align="right">&nbsp;</p>
+
+        </td>
+
+    </tr>
+</table>
+
+