Author: roy.russo(a)jboss.com
Date: 2007-02-12 12:52:07 -0500 (Mon, 12 Feb 2007)
New Revision: 6222
Added:
trunk/core-admin/src/main/org/jboss/portal/core/admin/AdminPortlet.java
Modified:
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/default-object.xml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/portlet-instances.xml
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/portlet.xml
Log:
portal-admin portlet stub
Added: trunk/core-admin/src/main/org/jboss/portal/core/admin/AdminPortlet.java
===================================================================
--- trunk/core-admin/src/main/org/jboss/portal/core/admin/AdminPortlet.java
(rev 0)
+++ trunk/core-admin/src/main/org/jboss/portal/core/admin/AdminPortlet.java 2007-02-12
17:52:07 UTC (rev 6222)
@@ -0,0 +1,54 @@
+/*
+* 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.jboss.portal.core.admin;
+
+import org.apache.log4j.Logger;
+import org.jboss.portlet.JBossActionRequest;
+import org.jboss.portlet.JBossActionResponse;
+
+import javax.portlet.PortletException;
+import javax.portlet.PortletSecurityException;
+import javax.portlet.RenderRequest;
+import javax.portlet.RenderResponse;
+import java.io.IOException;
+
+/**
+ * @author <a href="mailto:roy.russo@jboss.com">Roy Russo</a>
+ * @version $Revision: 0 $
+ */
+public class AdminPortlet
+{
+ /** Logger. */
+ private static Logger log = Logger.getLogger(AdminPortlet.class);
+
+ public void init() throws PortletException
+ {
+ }
+
+ public void doView(RenderRequest req, RenderResponse resp) throws PortletException,
PortletSecurityException, IOException
+ {
+ }
+
+ public void processAction(JBossActionRequest aReq, JBossActionResponse aRes) throws
PortletException
+ {
+ }
+}
Modified: trunk/core-admin/src/resources/portal-admin-war/WEB-INF/default-object.xml
===================================================================
--- trunk/core-admin/src/resources/portal-admin-war/WEB-INF/default-object.xml 2007-02-12
17:40:34 UTC (rev 6221)
+++ trunk/core-admin/src/resources/portal-admin-war/WEB-INF/default-object.xml 2007-02-12
17:52:07 UTC (rev 6222)
@@ -27,5 +27,16 @@
"http://www.jboss.org/portal/dtd/portal-object_2_6.dtd">
<deployments>
-
+ <deployment>
+ <parent-ref>admin</parent-ref>
+ <page>
+ <page-name>Portal Admin</page-name>
+ <window>
+ <window-name>AdminPortletWindow</window-name>
+ <instance-ref>AdminPortletInstance</instance-ref>
+ <region>center</region>
+ <height>1</height>
+ </window>
+ </page>
+ </deployment>
</deployments>
Modified: trunk/core-admin/src/resources/portal-admin-war/WEB-INF/portlet-instances.xml
===================================================================
---
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/portlet-instances.xml 2007-02-12
17:40:34 UTC (rev 6221)
+++
trunk/core-admin/src/resources/portal-admin-war/WEB-INF/portlet-instances.xml 2007-02-12
17:52:07 UTC (rev 6222)
@@ -27,5 +27,16 @@
"http://www.jboss.org/portal/dtd/portlet-instances_2_6.dtd">
<deployments>
-
+ <deployment>
+ <instance>
+ <instance-id>AdminPortletInstance</instance-id>
+ <portlet-ref>AdminPortlet</portlet-ref>
+ <security-constraint>
+ <policy-permission>
+ <role-name>Admin</role-name>
+ <action-name>view</action-name>
+ </policy-permission>
+ </security-constraint>
+ </instance>
+ </deployment>
</deployments>
\ No newline at end of file
Modified: trunk/core-admin/src/resources/portal-admin-war/WEB-INF/portlet.xml
===================================================================
--- trunk/core-admin/src/resources/portal-admin-war/WEB-INF/portlet.xml 2007-02-12
17:40:34 UTC (rev 6221)
+++ trunk/core-admin/src/resources/portal-admin-war/WEB-INF/portlet.xml 2007-02-12
17:52:07 UTC (rev 6222)
@@ -27,5 +27,18 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1...
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
version="1.0">
-
+ <portlet>
+ <description>Administration portlet for portal pages
administration</description>
+ <portlet-name>AdminPortlet</portlet-name>
+ <display-name>Portal Admin Portlet</display-name>
+
<portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>
+ <expiration-cache>-1</expiration-cache>
+ <supports>
+ <mime-type>text/html</mime-type>
+ <portlet-mode>VIEW</portlet-mode>
+ </supports>
+ <portlet-info>
+ <title>Portal Administration</title>
+ </portlet-info>
+ </portlet>
</portlet-app>