portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r725977 [48/48] - in /portals/jetspeed-2/portal/trunk: ./ app-servers/security/jboss/src/java/META-INF/jboss-secsvc/ app-servers/security/jboss/src/java/org/apache/jetspeed/appservers/security/jboss/ applications/jetspeed/src/main/javascrip...
Date Fri, 12 Dec 2008 12:07:04 GMT
Modified: portals/jetspeed-2/portal/trunk/tutorial/xdocs/05/jetspeed-service.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/tutorial/xdocs/05/jetspeed-service.xml?rev=725977&r1=725976&r2=725977&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/tutorial/xdocs/05/jetspeed-service.xml (original)
+++ portals/jetspeed-2/portal/trunk/tutorial/xdocs/05/jetspeed-service.xml Fri Dec 12 04:06:29 2008
@@ -1,340 +1,340 @@
-<?xml version="1.0"?>
-<!--
+<?xml version="1.0"?>
+<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You 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.
--->
-<document>
-  <properties>
-    <title>Jetspeed Service</title>
-    <subtitle>Jetspeed Services</subtitle>
-	<authors>
-		<person name="David Sean Taylor" email="taylor@apache.org" />
-	</authors>
-  </properties>
-  <body>
-    <section name="Jetspeed Services">
-    <p>
-    This tutorial shows you how to use Jetspeed Services from the Express Demo Portlet Application. 
-    Please note that all edits, unless explicity specified otherwise, are applied to the express-demo PA source tree.
-    We will learn how to:
-    <ul>
-    <li>add new roles</li>
-    <li>add new groups</li>
-    <li>register new users</li>
-    <li>manipulate pages</li>
-    <li>get a filtered list of portlets</li>
-    </ul>
-    using the RoleManager, GroupManager, PortletAdministration, and Page Manager Jetspeed API interfaces.
-    </p>
-    <p>
-    Lets get started by entering a new portlet in the portlet.xml:
-    </p>
-	 <source>	
-	 <![CDATA[	
-<portlet id="ServicesTutorialPortlet">    
-    <description>Tutorial for using Jetspeed Services, such as PortalAdministration, PageManager, Registry.</description>
-    <portlet-name>ServicesTutorialPortlet</portlet-name>
-    <display-name>Jetspeed Services Tutorial Portlet</display-name>
-    <portlet-class>com.bluesunrise.portal.portlets.services.ServicesTutorialPortlet</portlet-class>
-    <init-param>
-        <description>This parameter sets the template used in view mode.</description>
-        <name>ViewPage</name>
-        <value>/WEB-INF/view/services-tutorial.jsp</value>
-    </init-param>
-    <init-param>
-        <description>Comma-separated list of roles to create via Role Manager</description>
-        <name>roles</name>
-        <value>role1,role2,role3</value>
-    </init-param>    
-    <init-param>
-        <description>Comma-separated list of groups to create via Group Manager</description>
-        <name>groups</name>
-        <value>group1,group2,group3</value>
-    </init-param>    
-    <init-param>
-        <description>Comma-separated list of Users to create and Register via PortalAdminstration service</description>
-        <name>users</name>
-        <value>user1,user2,user3</value>
-    </init-param>        
-    <init-param>
-        <description>Comma-separated list of roles to assign to a new user</description>
-        <name>registration-roles</name>
-        <value>user,role1,role2</value>
-    </init-param>
-    <init-param>
-        <description>Comma-separated list of groups to assign to a new user</description>
-        <name>registration-groups</name>
-        <value>group1,group2</value>
-    </init-param>
-    <init-param>
-        <name>portlet-icon</name>
-        <value>start-here.png</value>
-    </init-param>    
-    <supports>
-        <mime-type>text/html</mime-type>
-        <portlet-mode>VIEW</portlet-mode>
-    </supports>
-    <supported-locale>en</supported-locale>
-    <portlet-info>
-        <title>Services Tutorial</title>
-        <short-title>Services</short-title>
-        <keywords>tutorial,services,jetspeed-services</keywords>
-    </portlet-info>
- </portlet>	 
-	     ]]>
-	</source> 			     
-    <p>
-    Jetspeed has an extended descriptor for defining extended portal features and services.
-    Edit the <b>jetspeed-portlet.xml</b> found in <i>src/webapp/WEB-INF/</i>, and add the following
-    services under the &lt;js:services&gt; element. This tells Jetspeed what services you require:
-    </p>
-	 <source>	
-	 <![CDATA[	
-        <js:service name='GroupManager'/>    
-        <js:service name='PageManager'/>    
-        <js:service name='PortalAdministration'/>        
-        <js:service name='PortletRegistryComponent'/>
-        <js:service name='RoleManager'/>	 
-        <js:service name='UserManager'/>        
-	     ]]>
-	</source> 			     	
-    <p>
-    Create a new JSP page named <b>services-tutorial.jsp</b> in the <i>src/webapp/WEB-INF/view/</i> directory.
-    Enter the following code:
-	 <source>	
-	 <![CDATA[	
-<%@ page language="java" session="true" %>
-<%@ page import="javax.portlet.*" %>
-
-<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
-<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
-<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
-
-<portlet:defineObjects/>
-
-<portlet:actionURL var="newRolesAction"/>
-<br/>
-<div class='portlet-section-header'>Services Tutorial Portlet</div>
-
-<form name="servicesTutorialForm" action="<c:out value="${newRolesAction}"/>" method="post">
-<input type="submit" name='action' value="createRoles" class="portlet-form-button" />
-<input type="submit" name='action' value="createGroups" class="portlet-form-button" />
-<input type="submit" name='action' value="registerUsers" class="portlet-form-button" />
-<input type="submit" name='action' value="modifyPages" class="portlet-form-button" />
-<input type="submit" name='action' value="createSharedPages" class="portlet-form-button" />
-</form>
-<c:if test="${message != null}">
-<div class='portlet-msg-info'><c:out value="${message}"/></div>
-</c:if>
-<c:if test="${errorMessage != null}">
-<div class='portlet-msg-error'><c:out value="${errorMessage}"/></div>
-</c:if>    
-	     ]]>
-	</source> 			         
-    </p>
-    <p>
-    <ul>
-    <li>Create a new package using Eclipse: <b>com.bluesunrise.portal.portlets.services</b></li>
-    <li>Create a portlet in the above package named <b>ServicesTutorialPortlet.java</b> extending 
-    <b>GenericServletPortlet</b>.</li>
-    <li>Override and implement the <b>init</b>, <b>doView</b> and <b>processAction</b> methods</li>
-    </ul>
-	</p> 
-	<p>
-	Add the following data members to the portlet class:
-	</p>
-	 <source>	
-	 <![CDATA[	
-    private PortalAdministration admin;
-    private PageManager pageManager;
-    private RoleManager roleManager;
-    private UserManager userManager;
-    private GroupManager groupManager;
-    protected PortletRegistry registry;
-
-    private List registrationRoles;
-    private List registrationGroups;
-    private List newRoles;
-    private List newGroups;
-    private List newUsers;    
-    ]]>
-	</source> 			 
-	<p>
-	Press <b>Ctrl-Shift-O</b> to resolve the two above class imports.	
-	</p>
-	<p>
-	Enter the following code into the init(PortletConfig config) method, replacing whats there:
-	</p>
-	 <source>	
+  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.
+-->
+<document>
+  <properties>
+    <title>Jetspeed Service</title>
+    <subtitle>Jetspeed Services</subtitle>
+	<authors>
+		<person name="David Sean Taylor" email="taylor@apache.org" />
+	</authors>
+  </properties>
+  <body>
+    <section name="Jetspeed Services">
+    <p>
+    This tutorial shows you how to use Jetspeed Services from the Express Demo Portlet Application. 
+    Please note that all edits, unless explicity specified otherwise, are applied to the express-demo PA source tree.
+    We will learn how to:
+    <ul>
+    <li>add new roles</li>
+    <li>add new groups</li>
+    <li>register new users</li>
+    <li>manipulate pages</li>
+    <li>get a filtered list of portlets</li>
+    </ul>
+    using the RoleManager, GroupManager, PortletAdministration, and Page Manager Jetspeed API interfaces.
+    </p>
+    <p>
+    Lets get started by entering a new portlet in the portlet.xml:
+    </p>
+	 <source>	
+	 <![CDATA[	
+<portlet id="ServicesTutorialPortlet">    
+    <description>Tutorial for using Jetspeed Services, such as PortalAdministration, PageManager, Registry.</description>
+    <portlet-name>ServicesTutorialPortlet</portlet-name>
+    <display-name>Jetspeed Services Tutorial Portlet</display-name>
+    <portlet-class>com.bluesunrise.portal.portlets.services.ServicesTutorialPortlet</portlet-class>
+    <init-param>
+        <description>This parameter sets the template used in view mode.</description>
+        <name>ViewPage</name>
+        <value>/WEB-INF/view/services-tutorial.jsp</value>
+    </init-param>
+    <init-param>
+        <description>Comma-separated list of roles to create via Role Manager</description>
+        <name>roles</name>
+        <value>role1,role2,role3</value>
+    </init-param>    
+    <init-param>
+        <description>Comma-separated list of groups to create via Group Manager</description>
+        <name>groups</name>
+        <value>group1,group2,group3</value>
+    </init-param>    
+    <init-param>
+        <description>Comma-separated list of Users to create and Register via PortalAdminstration service</description>
+        <name>users</name>
+        <value>user1,user2,user3</value>
+    </init-param>        
+    <init-param>
+        <description>Comma-separated list of roles to assign to a new user</description>
+        <name>registration-roles</name>
+        <value>user,role1,role2</value>
+    </init-param>
+    <init-param>
+        <description>Comma-separated list of groups to assign to a new user</description>
+        <name>registration-groups</name>
+        <value>group1,group2</value>
+    </init-param>
+    <init-param>
+        <name>portlet-icon</name>
+        <value>start-here.png</value>
+    </init-param>    
+    <supports>
+        <mime-type>text/html</mime-type>
+        <portlet-mode>VIEW</portlet-mode>
+    </supports>
+    <supported-locale>en</supported-locale>
+    <portlet-info>
+        <title>Services Tutorial</title>
+        <short-title>Services</short-title>
+        <keywords>tutorial,services,jetspeed-services</keywords>
+    </portlet-info>
+ </portlet>	 
+	     ]]>
+	</source> 			     
+    <p>
+    Jetspeed has an extended descriptor for defining extended portal features and services.
+    Edit the <b>jetspeed-portlet.xml</b> found in <i>src/webapp/WEB-INF/</i>, and add the following
+    services under the &lt;js:services&gt; element. This tells Jetspeed what services you require:
+    </p>
+	 <source>	
+	 <![CDATA[	
+        <js:service name='GroupManager'/>    
+        <js:service name='PageManager'/>    
+        <js:service name='PortalAdministration'/>        
+        <js:service name='PortletRegistryComponent'/>
+        <js:service name='RoleManager'/>	 
+        <js:service name='UserManager'/>        
+	     ]]>
+	</source> 			     	
+    <p>
+    Create a new JSP page named <b>services-tutorial.jsp</b> in the <i>src/webapp/WEB-INF/view/</i> directory.
+    Enter the following code:
+	 <source>	
+	 <![CDATA[	
+<%@ page language="java" session="true" %>
+<%@ page import="javax.portlet.*" %>
+
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet"%>
+<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
+<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
+
+<portlet:defineObjects/>
+
+<portlet:actionURL var="newRolesAction"/>
+<br/>
+<div class='portlet-section-header'>Services Tutorial Portlet</div>
+
+<form name="servicesTutorialForm" action="<c:out value="${newRolesAction}"/>" method="post">
+<input type="submit" name='action' value="createRoles" class="portlet-form-button" />
+<input type="submit" name='action' value="createGroups" class="portlet-form-button" />
+<input type="submit" name='action' value="registerUsers" class="portlet-form-button" />
+<input type="submit" name='action' value="modifyPages" class="portlet-form-button" />
+<input type="submit" name='action' value="createSharedPages" class="portlet-form-button" />
+</form>
+<c:if test="${message != null}">
+<div class='portlet-msg-info'><c:out value="${message}"/></div>
+</c:if>
+<c:if test="${errorMessage != null}">
+<div class='portlet-msg-error'><c:out value="${errorMessage}"/></div>
+</c:if>    
+	     ]]>
+	</source> 			         
+    </p>
+    <p>
+    <ul>
+    <li>Create a new package using Eclipse: <b>com.bluesunrise.portal.portlets.services</b></li>
+    <li>Create a portlet in the above package named <b>ServicesTutorialPortlet.java</b> extending 
+    <b>GenericServletPortlet</b>.</li>
+    <li>Override and implement the <b>init</b>, <b>doView</b> and <b>processAction</b> methods</li>
+    </ul>
+	</p> 
+	<p>
+	Add the following data members to the portlet class:
+	</p>
+	 <source>	
+	 <![CDATA[	
+    private PortalAdministration admin;
+    private PageManager pageManager;
+    private RoleManager roleManager;
+    private UserManager userManager;
+    private GroupManager groupManager;
+    protected PortletRegistry registry;
+
+    private List registrationRoles;
+    private List registrationGroups;
+    private List newRoles;
+    private List newGroups;
+    private List newUsers;    
+    ]]>
+	</source> 			 
+	<p>
+	Press <b>Ctrl-Shift-O</b> to resolve the two above class imports.	
+	</p>
+	<p>
+	Enter the following code into the init(PortletConfig config) method, replacing whats there:
+	</p>
+	 <source>	
 	 <![CDATA[
-	    super.init();	 
-        admin = (PortalAdministration) getPortletContext().getAttribute(
-				CommonPortletServices.CPS_PORTAL_ADMINISTRATION);
-		if (null == admin) {
-			throw new PortletException(
-					"Failed to find the Portal Administration on portlet initialization");
-		}
-		userManager = (UserManager) getPortletContext().getAttribute(
-				CommonPortletServices.CPS_USER_MANAGER_COMPONENT);
-		if (null == userManager) {
-			throw new PortletException(
-					"Failed to find the User Manager on portlet initialization");
-		}
-		roleManager = (RoleManager) getPortletContext().getAttribute(
-				CommonPortletServices.CPS_ROLE_MANAGER_COMPONENT);
-		if (null == roleManager) {
-			throw new PortletException(
-					"Failed to find the Role Manager on portlet initialization");
-		}
-		groupManager = (GroupManager) getPortletContext().getAttribute(
-				CommonPortletServices.CPS_GROUP_MANAGER_COMPONENT);
-		if (null == groupManager) {
-			throw new PortletException(
-					"Failed to find the Group Manager on portlet initialization");
-		}
-		pageManager = (PageManager) getPortletContext().getAttribute(
-				CommonPortletServices.CPS_PAGE_MANAGER_COMPONENT);
-		if (null == pageManager) {
-			throw new PortletException(
-					"Failed to find the Page Manager on portlet initialization");
-		}
-        registry = (PortletRegistry)getPortletContext().getAttribute(CommonPortletServices.CPS_REGISTRY_COMPONENT);
-        if (null == registry) {
-			throw new PortletException(
-					"Failed to find the Portlet Registry on portlet initialization");
-		}                
-        this.newRoles = getInitParameterList(config, "roles");
-        this.newGroups = getInitParameterList(config, "groups");
-        this.newUsers = getInitParameterList(config, "users");        
-        this.registrationRoles = getInitParameterList(config, "registration-roles");
-        this.registrationGroups = getInitParameterList(config, "registration-groups");	 
-	     ]]>
-	</source>
-	<p>
-	Add this helper function to the class:
-	</p>
-	 <source>	
-	 <![CDATA[	
-    protected List getInitParameterList(PortletConfig config, String ipName)
-    {
-        String temp = config.getInitParameter(ipName);
-        if (temp == null) return new ArrayList();
-
-        String[] temps = temp.split("\\,");
-        for (int ix = 0; ix < temps.length; ix++)
-            temps[ix] = temps[ix].trim();
-
-        return Arrays.asList(temps);
-    }
-	     ]]>
-	</source>		 			 
-	<p>
-	Write the doView method:
-	</p>
-	 <source>	
-	 <![CDATA[	
-	public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException 
-	{
-		request.setAttribute("message", request.getParameter("message"));
-		request.setAttribute("errorMessage", request.getParameter("errorMessage"));
-		super.doView(request, response);
-	}	 
-	     ]]>
-	</source>		 			 	
-	<p>
-	Write the portletAction method:
-	</p>
-	 <source>	
-	 <![CDATA[	
-	public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException 
-	{
-		String action = request.getParameter("action");
-		try
-		{
-			if (action != null)
-			{			
-				if (action.equals("createRoles"))
-				{
-					String message = "Created " + createRoles() + " roles";
-					response.setRenderParameter("message", message);
-				}
-				else if (action.equals("createGroups"))
-				{
-					String message = "Created " + createGroups() + " groups";
-					response.setRenderParameter("message", message);
-				}
-				else if (action.equals("registerUsers"))
-				{
-					String message = "Registered " + registerUsers() + " users";
-					response.setRenderParameter("message", message);
-				}
-				else if (action.equals("modifyPages"))
-				{
-					String message = "Modified " + modifyPages() + " pages";
-					response.setRenderParameter("message", message);					
-				}
-				else if (action.equals("createSharedPages"))
-				{
-					String message = "Created " + createSharedPages() + " pages";
-					response.setRenderParameter("message", message);										
-				}
-			}
-		}
-		catch (Exception e)
-		{
-			response.setRenderParameter("serviceError", e.getMessage());
-			// TODO: proper logging
-			e.printStackTrace();
-		}
-	}	 
-	     ]]>
-	</source>		 			 
-	<p>
-	Implement the undefined methods using the Jetspeed Services...
-	<table>
-	<tr>
-	<th>method</th>
-	<th>purpose</th>
-	</tr>
-	<tr>
-	<td>createRoles</td>
-	<td>using the roles init param, create new roles with the RoleManager service. If the role already exists, skip it.</td>
-	</tr>
-	<tr>
-	<td>createGroups</td>
-	<td>using the groups init param, create new groups with the GroupManager service. If the group already exists, skip it.</td>
-	</tr>
-	<tr>
-	<td>registerUsers</td>
-	<td>using the users init param, register new users with the PortalAdministration service. If the user already exists, skip it.</td>
-	</tr>
-	<tr>
-	<td>modifyPages</td>
-	<td>using the users init param, modify pages with the PageManager service. If the page doesnt exist, dont create it.
-	    Modifications: for user1, create a 1 column collection of 1 portlet, for user2, create a 2 column collection of 2 portlets, for user3 create a 3 column collection of 3 portets</td>
-	</tr>
-	<tr>
-	<td>createSharedPages</td>
-	<td>create a folder named /shared, create a page name /friends.psml. add some portlets to the page. grant public-view security constraint to the folder</td>
-	</tr>
-	</table>
-	</p>
-	  <p>
-	    <a href='../04/taglib.html'>Previous</a> 
-	  </p>     	
-    </section>
-  </body>
-</document>
-
+	    super.init();	 
+        admin = (PortalAdministration) getPortletContext().getAttribute(
+				CommonPortletServices.CPS_PORTAL_ADMINISTRATION);
+		if (null == admin) {
+			throw new PortletException(
+					"Failed to find the Portal Administration on portlet initialization");
+		}
+		userManager = (UserManager) getPortletContext().getAttribute(
+				CommonPortletServices.CPS_USER_MANAGER_COMPONENT);
+		if (null == userManager) {
+			throw new PortletException(
+					"Failed to find the User Manager on portlet initialization");
+		}
+		roleManager = (RoleManager) getPortletContext().getAttribute(
+				CommonPortletServices.CPS_ROLE_MANAGER_COMPONENT);
+		if (null == roleManager) {
+			throw new PortletException(
+					"Failed to find the Role Manager on portlet initialization");
+		}
+		groupManager = (GroupManager) getPortletContext().getAttribute(
+				CommonPortletServices.CPS_GROUP_MANAGER_COMPONENT);
+		if (null == groupManager) {
+			throw new PortletException(
+					"Failed to find the Group Manager on portlet initialization");
+		}
+		pageManager = (PageManager) getPortletContext().getAttribute(
+				CommonPortletServices.CPS_PAGE_MANAGER_COMPONENT);
+		if (null == pageManager) {
+			throw new PortletException(
+					"Failed to find the Page Manager on portlet initialization");
+		}
+        registry = (PortletRegistry)getPortletContext().getAttribute(CommonPortletServices.CPS_REGISTRY_COMPONENT);
+        if (null == registry) {
+			throw new PortletException(
+					"Failed to find the Portlet Registry on portlet initialization");
+		}                
+        this.newRoles = getInitParameterList(config, "roles");
+        this.newGroups = getInitParameterList(config, "groups");
+        this.newUsers = getInitParameterList(config, "users");        
+        this.registrationRoles = getInitParameterList(config, "registration-roles");
+        this.registrationGroups = getInitParameterList(config, "registration-groups");	 
+	     ]]>
+	</source>
+	<p>
+	Add this helper function to the class:
+	</p>
+	 <source>	
+	 <![CDATA[	
+    protected List getInitParameterList(PortletConfig config, String ipName)
+    {
+        String temp = config.getInitParameter(ipName);
+        if (temp == null) return new ArrayList();
+
+        String[] temps = temp.split("\\,");
+        for (int ix = 0; ix < temps.length; ix++)
+            temps[ix] = temps[ix].trim();
+
+        return Arrays.asList(temps);
+    }
+	     ]]>
+	</source>		 			 
+	<p>
+	Write the doView method:
+	</p>
+	 <source>	
+	 <![CDATA[	
+	public void doView(RenderRequest request, RenderResponse response) throws PortletException, IOException 
+	{
+		request.setAttribute("message", request.getParameter("message"));
+		request.setAttribute("errorMessage", request.getParameter("errorMessage"));
+		super.doView(request, response);
+	}	 
+	     ]]>
+	</source>		 			 	
+	<p>
+	Write the portletAction method:
+	</p>
+	 <source>	
+	 <![CDATA[	
+	public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException 
+	{
+		String action = request.getParameter("action");
+		try
+		{
+			if (action != null)
+			{			
+				if (action.equals("createRoles"))
+				{
+					String message = "Created " + createRoles() + " roles";
+					response.setRenderParameter("message", message);
+				}
+				else if (action.equals("createGroups"))
+				{
+					String message = "Created " + createGroups() + " groups";
+					response.setRenderParameter("message", message);
+				}
+				else if (action.equals("registerUsers"))
+				{
+					String message = "Registered " + registerUsers() + " users";
+					response.setRenderParameter("message", message);
+				}
+				else if (action.equals("modifyPages"))
+				{
+					String message = "Modified " + modifyPages() + " pages";
+					response.setRenderParameter("message", message);					
+				}
+				else if (action.equals("createSharedPages"))
+				{
+					String message = "Created " + createSharedPages() + " pages";
+					response.setRenderParameter("message", message);										
+				}
+			}
+		}
+		catch (Exception e)
+		{
+			response.setRenderParameter("serviceError", e.getMessage());
+			// TODO: proper logging
+			e.printStackTrace();
+		}
+	}	 
+	     ]]>
+	</source>		 			 
+	<p>
+	Implement the undefined methods using the Jetspeed Services...
+	<table>
+	<tr>
+	<th>method</th>
+	<th>purpose</th>
+	</tr>
+	<tr>
+	<td>createRoles</td>
+	<td>using the roles init param, create new roles with the RoleManager service. If the role already exists, skip it.</td>
+	</tr>
+	<tr>
+	<td>createGroups</td>
+	<td>using the groups init param, create new groups with the GroupManager service. If the group already exists, skip it.</td>
+	</tr>
+	<tr>
+	<td>registerUsers</td>
+	<td>using the users init param, register new users with the PortalAdministration service. If the user already exists, skip it.</td>
+	</tr>
+	<tr>
+	<td>modifyPages</td>
+	<td>using the users init param, modify pages with the PageManager service. If the page doesnt exist, dont create it.
+	    Modifications: for user1, create a 1 column collection of 1 portlet, for user2, create a 2 column collection of 2 portlets, for user3 create a 3 column collection of 3 portets</td>
+	</tr>
+	<tr>
+	<td>createSharedPages</td>
+	<td>create a folder named /shared, create a page name /friends.psml. add some portlets to the page. grant public-view security constraint to the folder</td>
+	</tr>
+	</table>
+	</p>
+	  <p>
+	    <a href='../04/taglib.html'>Previous</a> 
+	  </p>     	
+    </section>
+  </body>
+</document>
+

Propchange: portals/jetspeed-2/portal/trunk/tutorial/xdocs/05/jetspeed-service.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: portals/jetspeed-2/portal/trunk/tutorial/xdocs/build-commands.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/tutorial/xdocs/build-commands.xml?rev=725977&r1=725976&r2=725977&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/tutorial/xdocs/build-commands.xml (original)
+++ portals/jetspeed-2/portal/trunk/tutorial/xdocs/build-commands.xml Fri Dec 12 04:06:29 2008
@@ -1,139 +1,139 @@
-<?xml version="1.0"?>
-<!--
+<?xml version="1.0"?>
+<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You 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.
--->
-<document>
-  <properties>
-    <title>Build Commands</title>
-    <subtitle>Build Commands for Maven-2 and Jetspeed</subtitle>
-	<authors>
-		<person name="David Sean Taylor" email="taylor@apache.org" />
-	</authors>
-  </properties>
-  <body>
-    <section name="Build Commands for Maven-2 and Jetspeed">
-      <p>      
-      	Here is a quick summary of the current Jetspeed2 Maven2 build commands:
-      </p>
-<div>
-<table>
-<tr>
-<td>
-<strong><tt>commands</tt></strong>
-</td>
-<td>
-<strong><tt>explanation</tt></strong>
-</td>
-</tr>
-<tr>
-<td>
-<strong><tt>mvn</tt></strong>
-</td>
-<td>
-performs base build and installs J2 artifacts in the Maven2 repository, (install is the default Maven2 goal for this build)
-</td>
-</tr>
-<tr>
-<td>
-<strong><tt>mvn -P test</tt></strong>
-</td>
-<td>
-performs base build and includes execution of test cases, (includes test database setup)
-</td>
-</tr>
-<tr>
-<td>
-<strong><tt>mvn -P tomcat</tt></strong>
-</td>
-<td>
-performs base build and deploys to Tomcat app server, (includes prodution database setup). 
-Other app servers will be supported in the future, (see below for details)
-</td>
-</tr>
-<tr>
-<td>
-<strong><tt>mvn clean</tt></strong>
-</td>
-<td>
-cleans all build target directories
-</td>
-</tr>
-</table>
-</div>
-<p><em>Please note that the Maven2 repositories used by default with this build are generally saturated and the Jetspeed2 Maven2 repository does not yet contain a full mirror of the artifacts required to build Jetspeed2. If you experience download or connection failures, simply restart the build by issuing your last command again to retry.</em> </p>
-      
-<subsection name='Additional Profiles'>
-<p>The following profiles are optional and can be supplied when building/deploying to Tomcat </p>
-<div>
-<table>
-<tr>
-<td>
-<strong><tt>mvn -P tomcat,min</tt></strong>
-</td>
-<td>
-specified that only the administrative portlets be deployed along with a minimal set of PSML pages.
-</td>
-</tr>
-<tr>
-<td>
-<strong><tt>mvn -P tomcat,full</tt></strong>
-</td>
-<td>
-at the moment, this is the same as the default build: deploys a full J2 set of portlets and PSML pages.
-</td>
-</tr>
-<tr>
-<td>
-<strong><tt>mvn -P tomcat,nodb</tt></strong>
-</td>
-<td>
-specifies that configuration of the production database should be skipped.
-</td>
-</tr>
-<tr>
-<td>
-<strong><tt>mvn -P tomcat,hot</tt></strong>
-</td>
-<td>
-indicates that a portlet app, component, or content should be directly written to the deployed Jetspeed2 webapp.
-</td>
-</tr>
-<tr>
-<td>
-<strong><tt>mvn -P tomcat,dbpsml</tt></strong>
-</td>
-<td>
-specifies portal build and database deployment/import to include configuration of database PSML.
-</td>
-</tr>
-<tr>
-<td>
-<strong><tt>mvn -P prod</tt></strong>
-</td>
-<td>
-executes deployment to application server specified in settings.xml, (see below).
-</td>
-</tr>
-</table>
-</div>
-<p>Currently, only Tomcat 5 and Tomcat 5.5 application servers are supported by this build. 
-   More platforms are to be supported in the near future. 
-</p>
-</subsection>
-</section>
-</body>
-</document>
-
+  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.
+-->
+<document>
+  <properties>
+    <title>Build Commands</title>
+    <subtitle>Build Commands for Maven-2 and Jetspeed</subtitle>
+	<authors>
+		<person name="David Sean Taylor" email="taylor@apache.org" />
+	</authors>
+  </properties>
+  <body>
+    <section name="Build Commands for Maven-2 and Jetspeed">
+      <p>      
+      	Here is a quick summary of the current Jetspeed2 Maven2 build commands:
+      </p>
+<div>
+<table>
+<tr>
+<td>
+<strong><tt>commands</tt></strong>
+</td>
+<td>
+<strong><tt>explanation</tt></strong>
+</td>
+</tr>
+<tr>
+<td>
+<strong><tt>mvn</tt></strong>
+</td>
+<td>
+performs base build and installs J2 artifacts in the Maven2 repository, (install is the default Maven2 goal for this build)
+</td>
+</tr>
+<tr>
+<td>
+<strong><tt>mvn -P test</tt></strong>
+</td>
+<td>
+performs base build and includes execution of test cases, (includes test database setup)
+</td>
+</tr>
+<tr>
+<td>
+<strong><tt>mvn -P tomcat</tt></strong>
+</td>
+<td>
+performs base build and deploys to Tomcat app server, (includes prodution database setup). 
+Other app servers will be supported in the future, (see below for details)
+</td>
+</tr>
+<tr>
+<td>
+<strong><tt>mvn clean</tt></strong>
+</td>
+<td>
+cleans all build target directories
+</td>
+</tr>
+</table>
+</div>
+<p><em>Please note that the Maven2 repositories used by default with this build are generally saturated and the Jetspeed2 Maven2 repository does not yet contain a full mirror of the artifacts required to build Jetspeed2. If you experience download or connection failures, simply restart the build by issuing your last command again to retry.</em> </p>
+      
+<subsection name='Additional Profiles'>
+<p>The following profiles are optional and can be supplied when building/deploying to Tomcat </p>
+<div>
+<table>
+<tr>
+<td>
+<strong><tt>mvn -P tomcat,min</tt></strong>
+</td>
+<td>
+specified that only the administrative portlets be deployed along with a minimal set of PSML pages.
+</td>
+</tr>
+<tr>
+<td>
+<strong><tt>mvn -P tomcat,full</tt></strong>
+</td>
+<td>
+at the moment, this is the same as the default build: deploys a full J2 set of portlets and PSML pages.
+</td>
+</tr>
+<tr>
+<td>
+<strong><tt>mvn -P tomcat,nodb</tt></strong>
+</td>
+<td>
+specifies that configuration of the production database should be skipped.
+</td>
+</tr>
+<tr>
+<td>
+<strong><tt>mvn -P tomcat,hot</tt></strong>
+</td>
+<td>
+indicates that a portlet app, component, or content should be directly written to the deployed Jetspeed2 webapp.
+</td>
+</tr>
+<tr>
+<td>
+<strong><tt>mvn -P tomcat,dbpsml</tt></strong>
+</td>
+<td>
+specifies portal build and database deployment/import to include configuration of database PSML.
+</td>
+</tr>
+<tr>
+<td>
+<strong><tt>mvn -P prod</tt></strong>
+</td>
+<td>
+executes deployment to application server specified in settings.xml, (see below).
+</td>
+</tr>
+</table>
+</div>
+<p>Currently, only Tomcat 5 and Tomcat 5.5 application servers are supported by this build. 
+   More platforms are to be supported in the near future. 
+</p>
+</subsection>
+</section>
+</body>
+</document>
+

Propchange: portals/jetspeed-2/portal/trunk/tutorial/xdocs/build-commands.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: portals/jetspeed-2/portal/trunk/tutorial/xdocs/index.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/tutorial/xdocs/index.xml?rev=725977&r1=725976&r2=725977&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/tutorial/xdocs/index.xml (original)
+++ portals/jetspeed-2/portal/trunk/tutorial/xdocs/index.xml Fri Dec 12 04:06:29 2008
@@ -1,74 +1,74 @@
-<?xml version="1.0"?>
-<!--
-	Licensed to the Apache Software Foundation (ASF) under one or more
-	contributor license agreements.  See the NOTICE file distributed with
-	this work for additional information regarding copyright ownership.
-	The ASF licenses this file to You 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.
--->
-<document>
-	<properties>
-		<title>Jetspeed Tutorial</title>
-		<subtitle>The Jetspeed Complete Tutorial</subtitle>
-		<authors>
-			<person name="David Sean Taylor" email="taylor@apache.org" />
-		</authors>
-	</properties>
-	<body>
-    <section name="Welcome to the Jetspeed Tutorial!">
-      <p> 
-		The Jetspeed Tutorial is a step-by-step set of instruction and source code for 
-		creating a custom Jetspeed Portal from scratch. 
-      </p>	
-      <p> 
-		When starting a new Jetspeed portal project, 
-		we strongly recommend that you create a custom portal project, 
-		and do not edit the Jetspeed-2 source and resources directly.         
-      </p>	
-	  <p>
-	    This tutorial will guide you through the steps to create a sample portal named <b>jetexpress</b>.
-	    The goal of this tutorial is to prepare you for creating your own custom Jetspeed portal,
-	    complete with your own set of portal pages, your company logos and text, your own set of portlet applications,
-	    and any special integration required to run inside Jetspeed.	   
-	  </p>	          
-	  <subsection name='Prerequisites'>
-	   The tutorial requires the following software installed on your system:
-	   <ul>
-	     <li>Java 1.4 or higher</li>
-	     <li>Maven-2</li>	 
-	     <li>An internet connection so that Maven can download plugins</li>
-	     <li>Jetspeed-2 tutorial resources <a href="jetspeed-2-resources.zip">download</a></li>
-	   </ul>
-	  <p>
-	    Before getting started with the tutorial, review the Custom Build commands available to you:
-	    <ul>
-	    <li><a href='build-commands.html'>Build Commands</a></li>
-	    <li><a href='project-generation.html'>Project Generation Archetypes</a></li>
-	    <li><a href='project-directory.html'>Project Directory Overview</a></li>
-	  	</ul>
-	  </p>
-	  </subsection>	  
-	  <subsection name='Tutorial Resources'>	  	  
-	  <p>
-	    During the tutorial, at times you will be asked to copy files from the <i>resources</i> directory.
-	    You can cut and paste the <i>copy | cp</i> commands (for Windows and Linux) into a shell,
-	    and copy the resources into your new custom portal project. These commands are not really
-	    a part of the normal development cycle, but are there to demonstrate the incremental changes 
-	    to the portal as we progress through the tutorial.
-	  </p>
-	  <p>
-	    To get started with the tutorial, click here: <a href='01/first-steps.html'>Start Tutorial</a>
-	  </p>
-	  </subsection>
-	  </section>
-	</body>
+<?xml version="1.0"?>
+<!--
+	Licensed to the Apache Software Foundation (ASF) under one or more
+	contributor license agreements.  See the NOTICE file distributed with
+	this work for additional information regarding copyright ownership.
+	The ASF licenses this file to You 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.
+-->
+<document>
+	<properties>
+		<title>Jetspeed Tutorial</title>
+		<subtitle>The Jetspeed Complete Tutorial</subtitle>
+		<authors>
+			<person name="David Sean Taylor" email="taylor@apache.org" />
+		</authors>
+	</properties>
+	<body>
+    <section name="Welcome to the Jetspeed Tutorial!">
+      <p> 
+		The Jetspeed Tutorial is a step-by-step set of instruction and source code for 
+		creating a custom Jetspeed Portal from scratch. 
+      </p>	
+      <p> 
+		When starting a new Jetspeed portal project, 
+		we strongly recommend that you create a custom portal project, 
+		and do not edit the Jetspeed-2 source and resources directly.         
+      </p>	
+	  <p>
+	    This tutorial will guide you through the steps to create a sample portal named <b>jetexpress</b>.
+	    The goal of this tutorial is to prepare you for creating your own custom Jetspeed portal,
+	    complete with your own set of portal pages, your company logos and text, your own set of portlet applications,
+	    and any special integration required to run inside Jetspeed.	   
+	  </p>	          
+	  <subsection name='Prerequisites'>
+	   The tutorial requires the following software installed on your system:
+	   <ul>
+	     <li>Java 1.4 or higher</li>
+	     <li>Maven-2</li>	 
+	     <li>An internet connection so that Maven can download plugins</li>
+	     <li>Jetspeed-2 tutorial resources <a href="jetspeed-2-resources.zip">download</a></li>
+	   </ul>
+	  <p>
+	    Before getting started with the tutorial, review the Custom Build commands available to you:
+	    <ul>
+	    <li><a href='build-commands.html'>Build Commands</a></li>
+	    <li><a href='project-generation.html'>Project Generation Archetypes</a></li>
+	    <li><a href='project-directory.html'>Project Directory Overview</a></li>
+	  	</ul>
+	  </p>
+	  </subsection>	  
+	  <subsection name='Tutorial Resources'>	  	  
+	  <p>
+	    During the tutorial, at times you will be asked to copy files from the <i>resources</i> directory.
+	    You can cut and paste the <i>copy | cp</i> commands (for Windows and Linux) into a shell,
+	    and copy the resources into your new custom portal project. These commands are not really
+	    a part of the normal development cycle, but are there to demonstrate the incremental changes 
+	    to the portal as we progress through the tutorial.
+	  </p>
+	  <p>
+	    To get started with the tutorial, click here: <a href='01/first-steps.html'>Start Tutorial</a>
+	  </p>
+	  </subsection>
+	  </section>
+	</body>
 </document>
\ No newline at end of file

Propchange: portals/jetspeed-2/portal/trunk/tutorial/xdocs/index.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: portals/jetspeed-2/portal/trunk/tutorial/xdocs/navigation.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/tutorial/xdocs/navigation.xml?rev=725977&r1=725976&r2=725977&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/tutorial/xdocs/navigation.xml (original)
+++ portals/jetspeed-2/portal/trunk/tutorial/xdocs/navigation.xml Fri Dec 12 04:06:29 2008
@@ -1,61 +1,61 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
     Licensed to the Apache Software Foundation (ASF) under one or more
     contributor license agreements.  See the NOTICE file distributed with
     this work for additional information regarding copyright ownership.
     The ASF licenses this file to You 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.
--->
-<project>
-    <body>
-        <links>
-        	<item name="Jetspeed-1" href="http://portals.apache.org/jetspeed-1" target="_nw"/>
-        	<item name="Jetspeed-2" href="http://portals.apache.org/jetspeed-2" target="_nw"/>
-        	<item name="Bridges" href="http://portals.apache.org/bridges" target="_nw"/>
-        </links>
-        <menu name="Tutorial Overview">
-            <item name="Welcome" href="index.html" />        
-        	<item name="Build Commands" href="build-commands.html" />
-        	<item name="Project Generation Archetypes" href="project-generation.html" />
-        	<item name="Project Directory Overview" href="project-directory.html" />        	
-        </menu>        
-        <menu name="01. Custom Portal Generation">
-        	<item name="Maven First Steps" href="01/first-steps.html" />                    
-            <item name="Generating a Jetspeed Portal" href="01/genapp.html" />
-        	<item name="Build and Deploy Custom Portal" href="01/build-it.html" />            
-        	<item name="Run the Custom Portal" href="01/run-it.html" />            
-        </menu>
-        <menu name="02. Customizing Your Portal Design">
-            <item name="Decorators and Themes" href="02/customizing-overview.html" />        
-            <item name="Page Decoration" href="02/page-decoration.html" />
-            <item name="Portlet Decoration" href="02/portlet-decoration.html" />            
-            <item name="Desktop Themes" href="02/desktop-theme.html" />            
-            <item name="Changing the Default Page" href="02/default-page.html" />            
-            <item name="Deploying your Customizations" href="02/deploy-custom.html"/>            
-        </menu>
-        <menu name="03. Portlet Application Configuration">
-            <item name="Generating a Portlet Application" href="03/portlet-app.html" />
-            <item name="Building and Deploying" href="03/build-it.html" />            
-            <item name="Configuring Portal Pages" href="03/pages.html" />                                    
-        </menu>
-        <menu name="04. Portlet Development 101">
-            <item name="Overview" href="04/overview.html" />
-            <item name="Eclipse" href="04/eclipse.html" />            
-            <item name="Hello World" href="04/hello.html" />                        
-            <item name="Adding a Page" href="04/tutorial-psml.html" />             
-            <item name="JSP and Portlet API Taglib" href="04/taglib.html" />                         
-        </menu>
-        <menu name="05. Jetspeed Services">
-            <item name="Services Tutorial Portlet" href="05/jetspeed-service.html" />
-        </menu>
-    </body>
-</project>
+    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.
+-->
+<project>
+    <body>
+        <links>
+        	<item name="Jetspeed-1" href="http://portals.apache.org/jetspeed-1" target="_nw"/>
+        	<item name="Jetspeed-2" href="http://portals.apache.org/jetspeed-2" target="_nw"/>
+        	<item name="Bridges" href="http://portals.apache.org/bridges" target="_nw"/>
+        </links>
+        <menu name="Tutorial Overview">
+            <item name="Welcome" href="index.html" />        
+        	<item name="Build Commands" href="build-commands.html" />
+        	<item name="Project Generation Archetypes" href="project-generation.html" />
+        	<item name="Project Directory Overview" href="project-directory.html" />        	
+        </menu>        
+        <menu name="01. Custom Portal Generation">
+        	<item name="Maven First Steps" href="01/first-steps.html" />                    
+            <item name="Generating a Jetspeed Portal" href="01/genapp.html" />
+        	<item name="Build and Deploy Custom Portal" href="01/build-it.html" />            
+        	<item name="Run the Custom Portal" href="01/run-it.html" />            
+        </menu>
+        <menu name="02. Customizing Your Portal Design">
+            <item name="Decorators and Themes" href="02/customizing-overview.html" />        
+            <item name="Page Decoration" href="02/page-decoration.html" />
+            <item name="Portlet Decoration" href="02/portlet-decoration.html" />            
+            <item name="Desktop Themes" href="02/desktop-theme.html" />            
+            <item name="Changing the Default Page" href="02/default-page.html" />            
+            <item name="Deploying your Customizations" href="02/deploy-custom.html"/>            
+        </menu>
+        <menu name="03. Portlet Application Configuration">
+            <item name="Generating a Portlet Application" href="03/portlet-app.html" />
+            <item name="Building and Deploying" href="03/build-it.html" />            
+            <item name="Configuring Portal Pages" href="03/pages.html" />                                    
+        </menu>
+        <menu name="04. Portlet Development 101">
+            <item name="Overview" href="04/overview.html" />
+            <item name="Eclipse" href="04/eclipse.html" />            
+            <item name="Hello World" href="04/hello.html" />                        
+            <item name="Adding a Page" href="04/tutorial-psml.html" />             
+            <item name="JSP and Portlet API Taglib" href="04/taglib.html" />                         
+        </menu>
+        <menu name="05. Jetspeed Services">
+            <item name="Services Tutorial Portlet" href="05/jetspeed-service.html" />
+        </menu>
+    </body>
+</project>

Propchange: portals/jetspeed-2/portal/trunk/tutorial/xdocs/navigation.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: portals/jetspeed-2/portal/trunk/tutorial/xdocs/project-directory.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/tutorial/xdocs/project-directory.xml?rev=725977&r1=725976&r2=725977&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/tutorial/xdocs/project-directory.xml (original)
+++ portals/jetspeed-2/portal/trunk/tutorial/xdocs/project-directory.xml Fri Dec 12 04:06:29 2008
@@ -1,132 +1,132 @@
-<?xml version="1.0"?>
-<!--
+<?xml version="1.0"?>
+<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You 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.
--->
-<document>
-  <properties>
-    <title>Project Directory</title>
-    <subtitle>Overview of the Custom Project Directory Structure</subtitle>
-	<authors>
-		<person name="David Sean Taylor" email="taylor@apache.org" />
-	</authors>
-  </properties>
-  <body>
- <section name="Overview of the Custom Project Directory Structure">
- <p>      
- The <b>portal-archetype</b> generates a complete Maven-2 project directory structure for developing
- a custom Jetspeed portal as well as JSR 168 portlet applications.
- Here is an overview of directories created by the portal-archetype (directories are relative to the custom portal root):
- </p>
- <div>
-<table>
-<tr>
-<td>
-<strong><tt>directory</tt></strong>
-</td>
-<td>
-<strong><tt>explanation</tt></strong>
-</td>
-</tr>
-<tr>
-<td>/applications
-</td>
-<td>conventional subdirectory location for one or more portal application projects
-</td>
-</tr>
-<tr>
-<td>/app-servers
-</td>
-<td>contains portal deployment builds and resources.
-</td>
-</tr>
-<tr>
-<td>/components 
-</td>
-<td>conventional subdirectory for one or more portal component projects 
-</td>
-</tr>
-<tr>
-<td>enterprise
-</td>
-<td>maven-2 build to create an J2EE enterprise archive (EAR) deployable file
-</td>
-</tr>
-<tr>
-<td>etc/assembly
-</td>
-<td>custom portal application component Spring assemblies
-</td>
-</tr>
-<tr>
-<td>etc/conf
-</td>
-<td>portal application context configuration files
-</td>
-</tr>
-<tr>
-<td>etc/decorations
-</td>
-<td>custom decorations in images, layout, and portlet subdirectories
-</td>
-</tr>
-<tr>
-<td>etc/pages
-</td>
-<td>custom portal PSML pages to augment/override minimal defaults, (e.g. /Administrative/**, /default-page.psml, /myaccount.psml, /page.security, and /system/**)
-</td>
-</tr>
-<tr>
-<td>etc/schema
-</td>
-<td>Jetspeed2 database schema definitions
-</td>
-</tr>
-<tr>
-<td>etc/sql
-</td>
-<td>Jetspeed base database configuration scripts
-</td>
-</tr>
-<tr>
-<td>etc/templates
-</td>
-<td>custom overrides for Jetspeed2 layout portlet templates
-</td>
-</tr>
-<tr>
-<td>etc/webapp
-</td>
-<td>
-</td>custom content reaources to be packaged with portal application
-</tr>
-<tr>
-<td>portal
-</td>
-<td>portal application war build scripts and webapp resource overrides
-</td>
-</tr>
-<tr>
-<td>src
-</td>
-<td>these directories are an artifact of archetype expansion and should be deleted
-</td>
-</tr>
-</table>
-</div>
- </section>
-</body>
-</document>
-
+  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.
+-->
+<document>
+  <properties>
+    <title>Project Directory</title>
+    <subtitle>Overview of the Custom Project Directory Structure</subtitle>
+	<authors>
+		<person name="David Sean Taylor" email="taylor@apache.org" />
+	</authors>
+  </properties>
+  <body>
+ <section name="Overview of the Custom Project Directory Structure">
+ <p>      
+ The <b>portal-archetype</b> generates a complete Maven-2 project directory structure for developing
+ a custom Jetspeed portal as well as JSR 168 portlet applications.
+ Here is an overview of directories created by the portal-archetype (directories are relative to the custom portal root):
+ </p>
+ <div>
+<table>
+<tr>
+<td>
+<strong><tt>directory</tt></strong>
+</td>
+<td>
+<strong><tt>explanation</tt></strong>
+</td>
+</tr>
+<tr>
+<td>/applications
+</td>
+<td>conventional subdirectory location for one or more portal application projects
+</td>
+</tr>
+<tr>
+<td>/app-servers
+</td>
+<td>contains portal deployment builds and resources.
+</td>
+</tr>
+<tr>
+<td>/components 
+</td>
+<td>conventional subdirectory for one or more portal component projects 
+</td>
+</tr>
+<tr>
+<td>enterprise
+</td>
+<td>maven-2 build to create an J2EE enterprise archive (EAR) deployable file
+</td>
+</tr>
+<tr>
+<td>etc/assembly
+</td>
+<td>custom portal application component Spring assemblies
+</td>
+</tr>
+<tr>
+<td>etc/conf
+</td>
+<td>portal application context configuration files
+</td>
+</tr>
+<tr>
+<td>etc/decorations
+</td>
+<td>custom decorations in images, layout, and portlet subdirectories
+</td>
+</tr>
+<tr>
+<td>etc/pages
+</td>
+<td>custom portal PSML pages to augment/override minimal defaults, (e.g. /Administrative/**, /default-page.psml, /myaccount.psml, /page.security, and /system/**)
+</td>
+</tr>
+<tr>
+<td>etc/schema
+</td>
+<td>Jetspeed2 database schema definitions
+</td>
+</tr>
+<tr>
+<td>etc/sql
+</td>
+<td>Jetspeed base database configuration scripts
+</td>
+</tr>
+<tr>
+<td>etc/templates
+</td>
+<td>custom overrides for Jetspeed2 layout portlet templates
+</td>
+</tr>
+<tr>
+<td>etc/webapp
+</td>
+<td>
+</td>custom content reaources to be packaged with portal application
+</tr>
+<tr>
+<td>portal
+</td>
+<td>portal application war build scripts and webapp resource overrides
+</td>
+</tr>
+<tr>
+<td>src
+</td>
+<td>these directories are an artifact of archetype expansion and should be deleted
+</td>
+</tr>
+</table>
+</div>
+ </section>
+</body>
+</document>
+

Propchange: portals/jetspeed-2/portal/trunk/tutorial/xdocs/project-directory.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: portals/jetspeed-2/portal/trunk/tutorial/xdocs/project-generation.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/tutorial/xdocs/project-generation.xml?rev=725977&r1=725976&r2=725977&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/tutorial/xdocs/project-generation.xml (original)
+++ portals/jetspeed-2/portal/trunk/tutorial/xdocs/project-generation.xml Fri Dec 12 04:06:29 2008
@@ -1,80 +1,80 @@
-<?xml version="1.0"?>
-<!--
+<?xml version="1.0"?>
+<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You 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.
--->
-<document>
-  <properties>
-    <title>Project Generation</title>
-    <subtitle>Project Generation Commands for Maven-2 and Jetspeed</subtitle>
-	<authors>
-		<person name="David Sean Taylor" email="taylor@apache.org" />
-	</authors>
-  </properties>
-  <body>
- <section name="Project Generation Commands for Maven-2 and Jetspeed">
- <p>      
- We support several kinds of project generation commands in the build.
- These commands are based on <i>Maven Archetypes</i>. The project generation
- commands create a template for building certain types of Jetspeed projects.
- The most common archetype is the <i>portal-archetype</i>, which creates a new Jetspeed Custom Portal.
- The complete list of project generation commands are:
- </p>
- <div>
-<table>
-<tr>
-<td>
-<strong><tt>archetypeArtifactId</tt></strong>
-</td>
-<td>
-<strong><tt>explanation</tt></strong>
-</td>
-</tr>
-<tr>
-<td>portal-archetype
-</td>
-<td>Generate a Maven project for a new custom Jetspeed Portal Application
-</td>
-</tr>
-<tr>
-<td>application-archetype
-</td>
-<td>Generate a Maven project for a new JSR 168 Portlet Application 
-</td>
-</tr>
-<tr>
-<td>component-archetype
-</td>
-<td>Generate a Maven project for a new general Java component
-</td>
-</tr>
-<tr>
-<td>shared-component-archetype
-</td>
-<td>Generate a Maven project for a new shared Jetspeed component
-</td>
-</tr>
-<tr>
-<td>portal-component-archetype
-</td>
-<td>Generate a Maven project for a new Jetspeed component (installed in Jetspeed core)
-</td>
-</tr>
-</table>
-</div>
- </section>
-</body>
-</document>
-
+  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.
+-->
+<document>
+  <properties>
+    <title>Project Generation</title>
+    <subtitle>Project Generation Commands for Maven-2 and Jetspeed</subtitle>
+	<authors>
+		<person name="David Sean Taylor" email="taylor@apache.org" />
+	</authors>
+  </properties>
+  <body>
+ <section name="Project Generation Commands for Maven-2 and Jetspeed">
+ <p>      
+ We support several kinds of project generation commands in the build.
+ These commands are based on <i>Maven Archetypes</i>. The project generation
+ commands create a template for building certain types of Jetspeed projects.
+ The most common archetype is the <i>portal-archetype</i>, which creates a new Jetspeed Custom Portal.
+ The complete list of project generation commands are:
+ </p>
+ <div>
+<table>
+<tr>
+<td>
+<strong><tt>archetypeArtifactId</tt></strong>
+</td>
+<td>
+<strong><tt>explanation</tt></strong>
+</td>
+</tr>
+<tr>
+<td>portal-archetype
+</td>
+<td>Generate a Maven project for a new custom Jetspeed Portal Application
+</td>
+</tr>
+<tr>
+<td>application-archetype
+</td>
+<td>Generate a Maven project for a new JSR 168 Portlet Application 
+</td>
+</tr>
+<tr>
+<td>component-archetype
+</td>
+<td>Generate a Maven project for a new general Java component
+</td>
+</tr>
+<tr>
+<td>shared-component-archetype
+</td>
+<td>Generate a Maven project for a new shared Jetspeed component
+</td>
+</tr>
+<tr>
+<td>portal-component-archetype
+</td>
+<td>Generate a Maven project for a new Jetspeed component (installed in Jetspeed core)
+</td>
+</tr>
+</table>
+</div>
+ </section>
+</body>
+</document>
+

Propchange: portals/jetspeed-2/portal/trunk/tutorial/xdocs/project-generation.xml
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message