portals-pluto-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddew...@apache.org
Subject svn commit: r154583 - in portals/pluto/trunk/portal/src/webapp: DeployWarHelp.html DeployWarView.jsp PageRegistryAdd.jsp PageRegistryAdd2.jsp PageRegistryHelp.html PageRegistryView.jsp PortletEntityRegistryHelp.html PortletEntityRegistryView.jsp
Date Mon, 21 Feb 2005 00:31:34 GMT
Author: ddewolf
Date: Sun Feb 20 16:31:33 2005
New Revision: 154583

URL: http://svn.apache.org/viewcvs?view=rev&rev=154583
Log:
Adding admin portlets courtesy of Craig Doremus and Ken Atherton.  THANKS
The portlets are being added to the portal context due to their tight integration with the
portal driver.  This integration eliminates the need to either:
1) Refactor portal classes into a shared jar and place them within shared/lib
2) Duplicate classes

NOTE: The portal MUST be restarted before changes take effect.  This issue can be resolved
now that the portal and admin portlets are located within the same webapp.  A new issues has
been added to jira and this should be resolved asap to avoid confusion.

NOTE 2:At some point we probably want to refactor the jsps and html into a sub directory (/portlets/admin
?)instead of locating them in the root of the context.

Added:
    portals/pluto/trunk/portal/src/webapp/DeployWarHelp.html
    portals/pluto/trunk/portal/src/webapp/DeployWarView.jsp
    portals/pluto/trunk/portal/src/webapp/PageRegistryAdd.jsp
    portals/pluto/trunk/portal/src/webapp/PageRegistryAdd2.jsp
    portals/pluto/trunk/portal/src/webapp/PageRegistryHelp.html
    portals/pluto/trunk/portal/src/webapp/PageRegistryView.jsp
    portals/pluto/trunk/portal/src/webapp/PortletEntityRegistryHelp.html
    portals/pluto/trunk/portal/src/webapp/PortletEntityRegistryView.jsp

Added: portals/pluto/trunk/portal/src/webapp/DeployWarHelp.html
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/portal/src/webapp/DeployWarHelp.html?view=auto&rev=154583
==============================================================================
--- portals/pluto/trunk/portal/src/webapp/DeployWarHelp.html (added)
+++ portals/pluto/trunk/portal/src/webapp/DeployWarHelp.html Sun Feb 20 16:31:33 2005
@@ -0,0 +1,81 @@
+<!--
+Copyright 2004,2005 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.
+-->
+<h2>Deploy War Portlet Help</h2>
+
+
+<p class="portlet-font">
+This portlet is used to deploy new portlet applications to Pluto packaged
+in a war file. Deployment involves unzippling the war file into
+Pluto's webapps directory and adding records to the
+registry files located in <CATALINA_HOME>/webapps/pluto/WEB-INF/data (
+portletentityregistry.xml, pageregistry.xml and portletcontexts.txt).
+</p>
+
+
+<h3>Deploying portlets</h3>
+
+<ol>
+</li>
+<li class="portlet-font">
+Build a valid war file containing the portlet application to be deployed including a portlet.xml
and web.xml
+file in the WEB-INF directory.
+</li>
+<li class="portlet-font">Select the war file using the Browse button in the Deploy
War
+portlet.
+</li>
+<li class="portlet-font">Click submit. The war will be deployed to Pluto's webapps
directory and
+a record added to portletentityregistry.xml and portletcontexts.txt.
+</li>
+<li class="portlet-font">Fill in the portlet's title, which will be used as a navigation
link,
+and the number of rows and columns needed to display all portlets in the
+application. If the portlet app only contains one portlet, then keep the default
+one row, one column. The description field on that page is optional.
+JavaScript validation is done on this page to make sure that the layout
+(rows and columns) can accomodate the number of portlets in the portlet
+application that is being deployed
+</li>
+<li class="portlet-font">Click submit. The Define Page Layout page should be displayed
next.
+</li>
+<li class="portlet-font">In each row/column cell, select the portlet that will be displayed
there.
+</li>
+<li class="portlet-font">Click Submit. The pageregistry.xml file should be updated
and the first
+page of the Deploy War portlet displayed. You will also notice new records in the Portlet
Entity Registry and Page Registry portlets.
+</li>
+<li class="portlet-font">Restart Pluto and you will notice a link to the new portlet
on Pluto's
+navigation bar.
+</li>
+</ol>
+
+<h3>Redeploying portlets</h3>
+<p class="portlet-font">
+Redeployment of previously deployed portlets can be done, but the results can be
+somewhat flaky due to caching of portlet content by the Pluto portal.
+To redeploy select the war file with its new contents using the Browse
+button and click Submit.
+The new war file will be uploaded, but no changes will be made to the
+porletentityregistry.xml or portletcontexts.txt. You should skip the following
+two pages that set page layout because they cannot be changed at this time.
+</p>
+<p class="portlet-font">
+Once the portlet has been redeployed, we have found that clicking on the
+Admin link  in Pluto's menu will cause the cache to be refreshed. Then you
+can click on the portlet's link. If the portlet is not refreshed, try
+clearing your browser cache and/or restarting Pluto. Pluto's
+portal, which uses Tomcat, also contains a cache of the portlet contents
+within its 'work' directory. This can be deleted after the portal is shutdown
+to clear the old content.
+</p>

Added: portals/pluto/trunk/portal/src/webapp/DeployWarView.jsp
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/portal/src/webapp/DeployWarView.jsp?view=auto&rev=154583
==============================================================================
--- portals/pluto/trunk/portal/src/webapp/DeployWarView.jsp (added)
+++ portals/pluto/trunk/portal/src/webapp/DeployWarView.jsp Sun Feb 20 16:31:33 2005
@@ -0,0 +1,50 @@
+<%--
+Copyright 2004,2005 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.
+--%>
+<%@ page language="java" %>
+<%@ page import="javax.portlet.RenderRequest" %>
+<%@ page import="javax.portlet.PortletPreferences" %>
+<%@ page import="javax.portlet.RenderResponse" %>
+<%@ page import="javax.portlet.PortletURL" %>
+<%@ page session="false" %>
+<%@ taglib uri='http://java.sun.com/portlet' prefix='portlet'%>
+<%@ taglib uri="/WEB-INF/pluto-admin.tld" prefix="pluto-admin" %>
+
+<portlet:defineObjects/>
+
+<p class="portlet-section-header">Deploy War</p>
+<!--  'Post' method is required for portlet action -->
+<form action="<portlet:actionURL/>"
+	enctype="multipart/form-data" method="post">
+<table>
+<tr>
+<td class="portlet-section-body">
+<span class="portlet-section-subheader">Please select a war file to deploy:</span>
+</td>
+</tr>
+<tr>
+<td class="portlet-section-body">
+	Upload File: <input type="file" name="fileupload">
+</td>
+</tr>
+<tr>
+<td class="portlet-section-body">
+	<input class="portlet-form-button" type="submit" value="Submit">
+</td>
+</tr>
+</table>
+</form>
+<pluto-admin:portlet-message/>

Added: portals/pluto/trunk/portal/src/webapp/PageRegistryAdd.jsp
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/portal/src/webapp/PageRegistryAdd.jsp?view=auto&rev=154583
==============================================================================
--- portals/pluto/trunk/portal/src/webapp/PageRegistryAdd.jsp (added)
+++ portals/pluto/trunk/portal/src/webapp/PageRegistryAdd.jsp Sun Feb 20 16:31:33 2005
@@ -0,0 +1,119 @@
+<%--
+Copyright 2004,2005 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.
+--%>
+<%@ page language="java" %>
+<%@ page import="java.util.Map" %>
+<%@ page import="javax.portlet.RenderRequest" %>
+<%@ page import="javax.portlet.PortletPreferences" %>
+<%@ page import="javax.portlet.RenderResponse" %>
+<%@ page import="javax.portlet.PortletURL" %>
+<%@ page import="javax.portlet.PortletMode" %>
+<%@ page import="org.apache.pluto.portlet.admin.bean.PageTO" %>
+<%@ page import="org.apache.pluto.portlet.admin.bean.PortletTO" %>
+<%@ page import="org.apache.pluto.portlet.admin.PlutoAdminConstants" %>
+<%@ taglib uri='http://java.sun.com/portlet' prefix='portlet'%>
+<%@ taglib uri="/WEB-INF/pluto-admin.tld" prefix="pluto-admin" %>
+
+
+<portlet:defineObjects/>
+<%
+	PageTO ppage = (PageTO)renderRequest.getPortletSession().getAttribute(PlutoAdminConstants.PAGE_ATTR);
+	Map pmap = (Map)renderRequest.getPortletSession().getAttribute(PlutoAdminConstants.PORTLET_MAP_ATTR);
+	int pcount = 1;
+	if (pmap != null) {
+		pcount = pmap.size();
+		if (pcount == 0) {
+			pcount = 1;
+		}
+	}
+%>
+
+<script language="JavaScript">
+	function checkCount(field){
+		if (validateRequired(field)) {
+			var pcount = <%= pcount %>;
+			var cols = document.pinfoform.numcols.value;
+			var rows = document.pinfoform.numrows.value;
+			if (cols * rows != pcount) {
+				alert("Too many or too few rows and/or columns for the " + pcount + " portlets in this
application.");
+			}
+		}
+	}
+	
+	function validateRequired(field) {
+		if (field.value == ""){
+			alert("This field is required!");
+			return false;
+		} else {
+			return true;
+		}
+	}
+</script>
+<p class="portlet-section-header">Enter layout information for <%= ppage.getName()
%> portlet app</p>
+
+<!--  'Post' method is required for portlet action -->
+<form action="<portlet:actionURL/>" method="post" name="pinfoform">
+	<input type="hidden" name="action" value="showpagelayout"/>
+<table>
+<tr>
+<td>
+<b>Title:</b>
+</td>
+<td>
+<input type="text" name="title" size="20" value="<%= ppage.getTitle() %>">
+</td>
+</tr>
+<tr>
+<td>
+<b>Description:</b>
+</td>
+<td>
+<input type="text" name="description" size="30" value="<%= ppage.getDescription() %>">
+</td>
+</tr>
+<tr>
+<td colspan="2">
+<p class="portlet-section-subheader">Layout for the <%= pcount %> portlet<%=
pcount > 1 ? "s" : "" %>
+ in this application:</p>
+</td>
+</tr>
+<tr>
+<td>
+<b>Number of columns:</b>
+</td>
+<td>
+<input type="text" name="numcols" size="4" value="<%= ppage == null ? "" : Integer.toString(ppage.getCols())
%>" onBlur="validateRequired(this);">
+</td>
+</tr>
+<tr>
+<td>
+<b>Number of rows:</b>
+</td>
+<td>
+<input type="text" name="numrows" size="4" value="<%= ppage == null ? "" : Integer.toString(ppage.getRows())
%>" onBlur="checkCount(this);">
+</td>
+</tr>
+<tr>
+<td>
+<input type="submit" value="Submit">
+</td>
+</tr>
+</table>
+</form>
+<pluto-admin:portlet-message/>
+<p class="portlet-font">
+<a href='<portlet:actionURL><portlet:param name="action" value="showhome"/></portlet:actionURL>'>Deploy
War home</a> 
+</p>

Added: portals/pluto/trunk/portal/src/webapp/PageRegistryAdd2.jsp
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/portal/src/webapp/PageRegistryAdd2.jsp?view=auto&rev=154583
==============================================================================
--- portals/pluto/trunk/portal/src/webapp/PageRegistryAdd2.jsp (added)
+++ portals/pluto/trunk/portal/src/webapp/PageRegistryAdd2.jsp Sun Feb 20 16:31:33 2005
@@ -0,0 +1,97 @@
+<%--
+Copyright 2004,2005 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.
+--%>
+<%@ page language="java" %>
+<%@ page import="javax.portlet.RenderRequest" %>
+<%@ page import="java.util.Iterator" %>
+<%@ page import="java.util.Map" %>
+<%@ page import="java.util.Map.Entry" %>
+<%@ page import="java.util.Set" %>
+<%@ page import="javax.portlet.PortletPreferences" %>
+<%@ page import="javax.portlet.RenderResponse" %>
+<%@ page import="javax.portlet.PortletURL" %>
+<%@ page import="javax.portlet.PortletMode" %>
+<%@ page import="org.apache.pluto.portlet.admin.bean.PageTO" %>
+<%@ page import="org.apache.pluto.portlet.admin.PlutoAdminConstants" %>
+<%@ taglib uri='http://java.sun.com/portlet' prefix='portlet'%>
+<%@ taglib uri="/WEB-INF/pluto-admin.tld" prefix="pluto-admin" %>
+
+
+<portlet:defineObjects/>
+	<%
+		PageTO ppage = (PageTO)renderRequest.getPortletSession().getAttribute(PlutoAdminConstants.PAGE_ATTR);
+		Map pmap = (Map)renderRequest.getPortletSession().getAttribute(PlutoAdminConstants.PORTLET_MAP_ATTR);
+		int rows = 0;
+		int cols = 0;
+		if (ppage != null) {
+			rows = ppage.getRows();
+			cols = ppage.getCols();
+		}
+	%>
+<p class="portlet-section-header">Define page layout for <%= ppage.getTitle() %>
portlet application</p>
+
+<!--  'Post' method is required for portlet action -->
+<form action="<portlet:actionURL/>" method="post">
+	<input type="hidden" name="action" value="savepagelayout"/>
+	
+<table border="2">
+<!-- column titles in top row -->
+<tr>
+<%
+		for (int j = 0; j <= cols ; j++) {
+%>
+<% if (j == 0) { %>
+	<th>
+	</th>
+<%  } else { %>
+	<td>
+	<b>Column <%= j %></b>
+	</td>
+<%  } %>
+<%  }//end of loop %>
+</tr>
+<!-- end of top row -->
+
+<%
+		//rows and cols are indexed starting at 1
+    for (int i = 0; i < rows ; i++) {		
+%>
+<tr>
+<%
+		for (int j = 0; j < cols ; j++) {
+%>
+
+<!-- First column is always row title -->
+<% if (j == 0) { %>
+	<td>
+	<b>Row <%= Integer.toString(i + 1) %></b>
+	</td>
+<%  } %>	
+<td class="portlet-section-body">Portlet:
+<pluto-admin:portletselect row="<%= i + 1 %>" column="<%= j + 1 %>" portletMap="<%=
pmap %>" />
+</td>
+
+<% 	} //end of cols loop %>
+</tr> <%-- end of col --%>
+<% } //end of rows loop %>
+</table>
+<br/>
+<input type="submit" value="Submit">
+</form>
+<pluto-admin:portlet-message/>
+<p class="portlet-font">
+<a href='<portlet:actionURL><portlet:param name="action" value="showhome"/></portlet:actionURL>'>Deploy
War home</a> 
+</p>

Added: portals/pluto/trunk/portal/src/webapp/PageRegistryHelp.html
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/portal/src/webapp/PageRegistryHelp.html?view=auto&rev=154583
==============================================================================
--- portals/pluto/trunk/portal/src/webapp/PageRegistryHelp.html (added)
+++ portals/pluto/trunk/portal/src/webapp/PageRegistryHelp.html Sun Feb 20 16:31:33 2005
@@ -0,0 +1,35 @@
+<!--
+Copyright 2004,2005 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.
+-->
+<h2>Page Registry Portlet Help</h2>
+<p class="portlet-font">
+This portlet is a view of data contained in the pageregistry.xml
+file located in <CATALINA_HOME>/webapps/pluto/WEB-INF/data. This file is
+ used to define a portlet's page layout.
+</p>
+<h3>View Mode</h3>
+<p class="portlet-font">
+Each row represents the layout of a page or portlet application in Pluto.
+In pageregistry.xml this is manifested by a fragment element with a type attribute
+of 'page'. The Page column in the table is the value of the title element in pageregistry.xml,
+which is also used as the navigation link in Pluto. The number of rows and columns in the
+layout also shown in the table.
+</p>
+
+<p class="portlet-font">
+This portlet is a simplified view of the pageregistry.xml file. For more details on the file's
+structure see <a href="http://portals.apache.org/pluto/faq.html#portal" target="_blank">http://portals.apache.org/pluto/faq.html#portal</a>
+</p>
\ No newline at end of file

Added: portals/pluto/trunk/portal/src/webapp/PageRegistryView.jsp
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/portal/src/webapp/PageRegistryView.jsp?view=auto&rev=154583
==============================================================================
--- portals/pluto/trunk/portal/src/webapp/PageRegistryView.jsp (added)
+++ portals/pluto/trunk/portal/src/webapp/PageRegistryView.jsp Sun Feb 20 16:31:33 2005
@@ -0,0 +1,89 @@
+<%--
+Copyright 2004,2005 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.
+--%>
+<%@ page session="false" %>
+<%@ page language="java" %>
+<%@ page import="java.util.List" %>
+<%@ page import="java.util.ArrayList" %>
+<%@ page import="java.util.Iterator" %>
+<%@ page import="javax.portlet.RenderRequest" %>
+<%@ page import="javax.portlet.PortletPreferences" %>
+<%@ page import="javax.portlet.RenderResponse" %>
+<%@ page import="javax.portlet.PortletURL" %>
+<%@ page import="org.apache.pluto.portlet.admin.bean.PageTO" %>
+<%@ page import="org.apache.pluto.portlet.admin.PlutoAdminConstants" %>
+<%@ taglib uri='http://java.sun.com/portlet' prefix='portlet'%>
+<%@ taglib uri="/WEB-INF/pluto-admin.tld" prefix="pluto-admin" %>
+
+<portlet:defineObjects/>
+
+<portlet:defineObjects/>
+<p class="portlet-section-header">Page Registry</p>
+<pluto-admin:portlet-message/>
+
+<table border="2">
+<tr>
+<th>
+Page
+</th>
+<th>
+No of rows
+</th>
+<th>
+No of columns
+</th>
+<th>
+
+</th>
+</tr>
+<%
+	Iterator iter = (Iterator)renderRequest.getAttribute(PlutoAdminConstants.PAGE_LIST_ATTR);
+	while(iter.hasNext()) {	
+		PageTO ppage = (PageTO)iter.next();
+%>
+<!-- Page fragment start -->
+<tr>
+<td class="portlet-section-body">
+	<%= ppage.getTitle() %>
+</td>
+<td class="portlet-section-body">
+	<%= ppage.getRows() %>
+</td>
+<td class="portlet-section-body">
+	<%= ppage.getCols() %>
+</td>
+<!-- TEMP REMOVE EDIT
+<td class="portlet-section-body">
+<a href="<portlet:actionURL><portlet:param name="action" value="showpage"/><portlet:param
name="pageName" value="<%= ppage.getName() %>"/></portlet:actionURL>" >Edit</a>
+</td>
+-->
+</tr>
+<%
+	}
+%>
+<!-- Page fragment end -->
+
+<!-- TEMP REMOVE ADD
+<tr>
+<td colspan="4" class="portlet-section-body">
+<form action="<portlet:actionURL/>">
+	<input class="portlet-form-button" type="submit" name="submit" value="Add Page">
+</form>
+</td>
+</tr>
+-->
+
+</table>
\ No newline at end of file

Added: portals/pluto/trunk/portal/src/webapp/PortletEntityRegistryHelp.html
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/portal/src/webapp/PortletEntityRegistryHelp.html?view=auto&rev=154583
==============================================================================
--- portals/pluto/trunk/portal/src/webapp/PortletEntityRegistryHelp.html (added)
+++ portals/pluto/trunk/portal/src/webapp/PortletEntityRegistryHelp.html Sun Feb 20 16:31:33
2005
@@ -0,0 +1,39 @@
+<!--
+Copyright 2004,2005 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.
+-->
+<h2>Portlet Entity Registry Portlet Help</h2>
+<p class="portlet-font">
+This portlet is a view of data contained in the portletentityregistry.xml
+file located in <CATALINA_HOME>/webapps/pluto/WEB-INF/data. This file is
+ used to define Pluto's portlet applications.
+</p>
+
+<h3>View Mode</h3>
+<p class="portlet-font">
+Each row represents a portlet application in Pluto.
+In portletentityregistry.xml this is manifested in an application element.
+The application id column represents the id attribute of the application element,
+while the Definition ID column contains the application name and portlet name
+separated by a period. The application name is the same name as the war file
+and webapps subdirectory where the portlet application is deployed. The
+portlet name comes from the portlet-name element in the portlet app's portlet.xml
+file.
+</p>
+
+<p class="portlet-font">
+This portlet is a partial view of the portletentityregistry.xml file. For more details on
the file's
+structure see <a href="http://portals.apache.org/pluto/faq.html#portal" target="_blank">http://portals.apache.org/pluto/faq.html#portal</a>
+</p>
\ No newline at end of file

Added: portals/pluto/trunk/portal/src/webapp/PortletEntityRegistryView.jsp
URL: http://svn.apache.org/viewcvs/portals/pluto/trunk/portal/src/webapp/PortletEntityRegistryView.jsp?view=auto&rev=154583
==============================================================================
--- portals/pluto/trunk/portal/src/webapp/PortletEntityRegistryView.jsp (added)
+++ portals/pluto/trunk/portal/src/webapp/PortletEntityRegistryView.jsp Sun Feb 20 16:31:33
2005
@@ -0,0 +1,97 @@
+<%--
+Copyright 2004,2005 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.
+--%>
+<%@ page language="java" %>
+<%@ page import="javax.portlet.RenderRequest" %>
+<%@ page import="javax.portlet.PortletPreferences" %>
+<%@ page import="javax.portlet.RenderResponse" %>
+<%@ page import="javax.portlet.PortletURL" %>
+<%@ page import="javax.portlet.PortletSession" %>
+<%@ page import="java.util.Collection" %>
+<%@ page import="java.util.Iterator" %>
+<%@ page import="org.apache.pluto.portalImpl.om.entity.impl.PortletApplicationEntityImpl"
%>
+<%@ page import="org.apache.pluto.portalImpl.om.entity.impl.PortletEntityImpl" %>
+<%@ page import="org.apache.pluto.portlet.admin.PlutoAdminConstants" %>
+<%@ taglib uri='http://java.sun.com/portlet' prefix='portlet'%>
+<%@ taglib uri='http://portals.apache.org/pluto/admin' prefix='pluto-admin'%>
+
+<portlet:defineObjects/>
+<%! Iterator list = null; %>
+<%
+	list = (Iterator)renderRequest.getAttribute(PlutoAdminConstants.PER_LIST_ATTR); 
+%>
+<p class="portlet-section-header">Portlet Entity Registry</p>
+<table border="2">
+<tr>
+<th>
+App ID
+</th>
+<th>
+App Name.Portlet Name (Definition ID)
+</th>
+<th>
+
+</th>
+</tr>
+<!-- Portlet start -->
+<% while (list.hasNext()) {
+	PortletApplicationEntityImpl app = (PortletApplicationEntityImpl)list.next();
+%>
+<tr>
+<td class="portlet-section-body">
+<%= app.getCastorId() %>
+</td>
+<td class="portlet-section-body">
+<%
+	Collection plets = app.getCastorPortlets();
+	Iterator iter2 = plets.iterator();
+	while (iter2.hasNext()) {
+		PortletEntityImpl plet = (PortletEntityImpl)iter2.next();
+%>
+		<%-- Display definition ID --%>
+		<%= plet.getDefinitionId() %><br/>	
+<%
+	}	
+%>
+	
+</td>
+<!-- TEMP REMOVE EDIT
+<td class="portlet-section-body">
+<a href="<portlet:actionURL>
+<portlet:param name="page" value="showportlet"/>
+<portlet:param name="appid" value="<%= app.getCastorId() %>"/>
+</portlet:actionURL>" >Edit</a>
+</td>
+ -->
+
+</tr>
+<% 
+	}//end of while
+%>
+<!-- Portlet end -->
+
+<!-- TEMP REMOVE ADD
+<tr>
+<td colspan="3" class="portlet-section-body">
+<form action="<portlet:actionURL/>">
+	<input type="hidden" name="page" value="addportlet"/>
+	<input class="portlet-form-button" type="submit" name="submit" value="Add Portlet">
+</form>
+</td>
+</tr>
+-->
+
+</table>
\ No newline at end of file



Mime
View raw message