You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rave.apache.org by bu...@apache.org on 2012/03/26 21:51:20 UTC

svn commit: r810108 [3/6] - in /websites/staging/rave/trunk/content: ./ css/ docs/ docs/governance/ documentation/ images/ rave/ rave/css/ rave/docs/ rave/documentation/ rave/images/

Added: websites/staging/rave/trunk/content/documentation/configure-ssl.html
==============================================================================
--- websites/staging/rave/trunk/content/documentation/configure-ssl.html (added)
+++ websites/staging/rave/trunk/content/documentation/configure-ssl.html Mon Mar 26 19:51:18 2012
@@ -0,0 +1,273 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    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.
+-->
+  <link rel="shortcut icon" href="/rave/images/RAVE-icon.ico" type="image/x-icon" />
+  <link href="/rave/css/rave.css" rel="stylesheet" type="text/css">
+  <title>Configuring Apache Rave for SSL</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="banner">
+    <img id="logo" alt="Apache Rave" src="/rave/images/RAVE-logo_main-logo-small.png"/>
+  </div>
+  
+  <div id="navigation">
+  <h1 id="general">General</h1>
+<ul>
+<li><a href="/rave/index.html">About</a></li>
+<li><a href="/rave/documentation/index.html">Documentation</a></li>
+<li><a href="/rave/downloads.html">Downloads</a></li>
+<li><a href="/rave/license.html">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/rave/get-involved.html">Get Involved</a></li>
+<li><a href="/rave/mailing-lists.html">Mailing Lists</a></li>
+<li><a href="/rave/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/rave/source.html">Getting Started</a></li>
+<li><a href="/rave/ide-settings-and-debugging.html">IDE Settings and debugging</a></li>
+<li><a href="/rave/release-management.html">Release Management</a></li>
+<li><a href="/rave/issue-management.html">Issue Tracker</a></li>
+<li><a href="https://builds.apache.org/hudson/view/M-R/view/Rave/">Continuous Integration</a></li>
+<li><a href="https://analysis.apache.org/dashboard/index/58996">Sonar Dashboard</a></li>
+<li><a href="/rave/edit-website.html">Website</a></li>
+</ul>
+<h1 id="asf">ASF</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+  </div>
+
+  <div id="content">
+    <h1 class="title">Configuring Apache Rave for SSL</h1>
+    <h2 id="prerequisites">Prerequisites</h2>
+<p>To follow these instructions you'll need a working copy of Apache Rave up and running under Tomcat 6.  Please see the <a href="installing.html">Installing Rave</a> page for instructions on how to get up and running.</p>
+<p>These instructions are written assuming a Tomcat installation path of /temp/tomcat so you may want to use that path for testing while you follow these instructions.</p>
+<p>Also note that these instructions were written and tested using Tomcat running on Windows.  Tomcat on other platforms <em>should</em> be exaclty the same except for startup scripts (.bat vs .sh) and file locations (c:\ vs /).</p>
+<h2 id="enabling-ssl-in-tomcat">Enabling SSL in Tomcat</h2>
+<p>These instructions demonstrate how to get Tomcat 6 running over SSL using a self signed certificate.</p>
+<ul>
+<li>
+<p>Copy the default cacerts file to /temp/tomcat (this allows you to not have to pollute your real cacerts file with test certs).</p>
+<div class="codehilite"><pre><span class="n">cp</span> <span class="s">&quot;%JAVA_HOME%/jre/lib/security/cacerts&quot;</span> <span class="s">&quot;/temp/tomcat/custom-cacerts&quot;</span>
+</pre></div>
+
+
+</li>
+<li>
+<p>Generate a self signed certificate that you'll use with Tomcat.</p>
+<div class="codehilite"><pre><span class="s">&quot;%JAVA_HOME%\bin\keytool&quot;</span> <span class="o">-</span><span class="n">genkey</span> <span class="o">-</span><span class="n">alias</span> <span class="n">tomcat</span> <span class="o">-</span><span class="n">keyalg</span> <span class="n">RSA</span> <span class="o">-</span><span class="n">validity</span> <span class="mi">365</span> <span class="o">-</span><span class="n">storepass</span> <span class="n">changeit</span> <span class="o">-</span><span class="n">keystore</span> <span class="sr">/temp/</span><span class="n">tomcat</span><span class="o">/</span><span class="n">custom</span><span class="o">-</span><span class="n">cacerts</span>
+
+<span class="n">What</span> <span class="n">is</span> <span class="n">your</span> <span class="n">first</span> <span class="ow">and</span> <span class="k">last</span> <span class="n">name</span><span class="p">?</span>  
+  <span class="p">[</span><span class="n">Unknown</span><span class="p">]:</span>  <span class="n">rave</span><span class="o">-</span><span class="n">server</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span>  
+<span class="n">What</span> <span class="n">is</span> <span class="n">the</span> <span class="n">name</span> <span class="n">of</span> <span class="n">your</span> <span class="n">organizational</span> <span class="n">unit</span><span class="p">?</span>  
+  <span class="p">[</span><span class="n">Unknown</span><span class="p">]:</span>  <span class="n">example</span> <span class="n">unit</span>  
+<span class="n">What</span> <span class="n">is</span> <span class="n">the</span> <span class="n">name</span> <span class="n">of</span> <span class="n">your</span> <span class="n">organization</span><span class="p">?</span>  
+  <span class="p">[</span><span class="n">Unknown</span><span class="p">]:</span>  <span class="n">example</span> <span class="n">organization</span>  
+<span class="n">What</span> <span class="n">is</span> <span class="n">the</span> <span class="n">name</span> <span class="n">of</span> <span class="n">your</span> <span class="n">City</span> <span class="ow">or</span> <span class="n">Locality</span><span class="p">?</span>  
+  <span class="p">[</span><span class="n">Unknown</span><span class="p">]:</span>  <span class="n">example</span> <span class="n">city</span>  
+<span class="n">What</span> <span class="n">is</span> <span class="n">the</span> <span class="n">name</span> <span class="n">of</span> <span class="n">your</span> <span class="n">State</span> <span class="ow">or</span> <span class="n">Province</span><span class="p">?</span>  
+  <span class="p">[</span><span class="n">Unknown</span><span class="p">]:</span>  <span class="n">example</span> <span class="n">state</span>  
+<span class="n">What</span> <span class="n">is</span> <span class="n">the</span> <span class="n">two</span><span class="o">-</span><span class="n">letter</span> <span class="n">country</span> <span class="n">code</span> <span class="k">for</span> <span class="n">this</span> <span class="n">unit</span><span class="p">?</span>  
+  <span class="p">[</span><span class="n">Unknown</span><span class="p">]:</span>  <span class="n">US</span>  
+<span class="n">Is</span> <span class="n">CN</span><span class="o">=</span><span class="n">rave</span><span class="o">-</span><span class="n">server</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="p">,</span> <span class="n">OU</span><span class="o">=</span><span class="n">example</span> <span class="n">unit</span><span class="p">,</span> <span class="n">O</span><span class="o">=</span><span class="n">example</span> <span class="n">organization</span><span class="p">,</span> <span class="n">L</span><span class="o">=</span><span class="n">example</span> <span class="n">city</span><span class="p">,</span> <span class="n">ST</span><span class="o">=</span><span class="n">example</span> <span class="n">state</span><span class="p">,</span> <span class="n">C</span><span class="o">=</span><span class="n">US</span> <span class="n">correct</span><span class="p">?</span>  
+  <span class="p">[</span><span class="nb">no</span><span class="p">]:</span>  <span class="n">yes</span>
+
+<span class="n">Enter</span> <span class="n">key</span> <span class="n">password</span> <span class="k">for</span> <span class="sr">&lt;tomcat&gt;</span>  
+        <span class="p">(</span><span class="n">RETURN</span> <span class="k">if</span> <span class="n">same</span> <span class="n">as</span> <span class="n">keystore</span> <span class="n">password</span><span class="p">):</span>
+</pre></div>
+
+
+</li>
+<li>
+<p>Edit Tomcats startup.bat file to get the JVM to use our alternate cacerts file.  It is important for the JVM to trust our self signed certificate because Apache Rave makes HTTP requests to Shindig to fetch gadget metadata, and if those requests are over SSL then the JVM must trust the certificate being used for the SSL communication.</p>
+<p>(added the following line above the "call "%EXECUTABLE%" start ..." line)</p>
+<div class="codehilite"><pre><span class="n">set</span> <span class="n">JAVA_OPTS</span><span class="o">=</span><span class="nv">%JAVA_OPTS%</span> <span class="err">-</span><span class="nv">Djavax</span><span class="o">.</span><span class="n">net</span><span class="o">.</span><span class="n">ssl</span><span class="o">.</span><span class="n">trustStore</span><span class="o">=</span><span class="n">c:</span><span class="o">\</span><span class="n">temp</span><span class="o">\</span><span class="n">tomcat</span><span class="o">\</span><span class="n">custom</span><span class="o">-</span><span class="n">cacerts</span>
+</pre></div>
+
+
+</li>
+<li>
+<p>Edit Tomcats server.xml to enable an SSL listener on port 443 using our alternate cacerts file.  By default Tomcat looks for a certificate with the alias "tomcat" which is what we used to create our self signed certificate.</p>
+<p>(did a search and replace of 8443 with 443)  <br />
+(uncommented the HTTPS connector and configured it to use our custom cacerts file)</p>
+<div class="codehilite"><pre><span class="o">&lt;</span><span class="n">Connector</span> <span class="n">port</span><span class="o">=</span><span class="s">&quot;443&quot;</span> <span class="n">protocol</span><span class="o">=</span><span class="s">&quot;HTTP/1.1&quot;</span> <span class="n">SSLEnabled</span><span class="o">=</span><span class="s">&quot;true&quot;</span>
+           <span class="n">maxThreads</span><span class="o">=</span><span class="s">&quot;150&quot;</span> <span class="n">scheme</span><span class="o">=</span><span class="s">&quot;https&quot;</span> <span class="n">secure</span><span class="o">=</span><span class="s">&quot;true&quot;</span>
+           <span class="n">keystoreFile</span><span class="o">=</span><span class="s">&quot;c:\temp\tomcat\custom-cacerts&quot;</span> <span class="n">keystorePass</span><span class="o">=</span><span class="s">&quot;changeit&quot;</span>
+           <span class="n">clientAuth</span><span class="o">=</span><span class="s">&quot;false&quot;</span> <span class="n">sslProtocol</span><span class="o">=</span><span class="s">&quot;TLS&quot;</span> <span class="o">/&gt;</span>
+</pre></div>
+
+
+</li>
+<li>
+<p>Startup Tomcat and verify that Apache Rave still runs properly on http://localhost:8080/portal/</p>
+</li>
+<li>
+<p>Make sure you can access the portal login page at https://rave-server.example.com/portal</p>
+<p>Note - if you already have an authenticated session open in your browser you'll probably need to close and re-open your browser to access the login page.
+Also note that the rest of Apache Rave wont work over SSL yet.</p>
+</li>
+</ul>
+<h2 id="configure-apache-rave-and-shindig-to-run-over-ssl">Configure Apache Rave and Shindig to run over SSL.</h2>
+<ul>
+<li>
+<p>Edit the /temp/tomcat/webapps/portal/WEB-INF/classes/portal.properties file to configure Apache Rave to use SSL.</p>
+<p>(updated the following values at the top of the portal.properties config file with)</p>
+<div class="codehilite"><pre><span class="n">portal</span><span class="o">.</span><span class="n">opensocial_engine</span><span class="o">.</span><span class="n">protocol</span><span class="o">=</span><span class="n">https</span>
+<span class="n">portal</span><span class="o">.</span><span class="n">opensocial_engine</span><span class="o">.</span><span class="n">root</span><span class="o">=</span><span class="n">rave</span><span class="o">-</span><span class="n">server</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span>
+<span class="n">portal</span><span class="o">.</span><span class="n">opensocial_engine</span><span class="o">.</span><span class="n">gadget_path</span><span class="o">=/</span><span class="n">gadgets</span>
+</pre></div>
+
+
+</li>
+<li>
+<p>Edit the /temp/tomcat/webapps/ROOT/WEB-INF/classes/rave.shindig.properties and /temp/tomcat/webapps/ROOT/WEB-INF/classes/containers/default/container.js files to configure Shindig to use SSL.</p>
+<p>Note - there may be other ways to get Shindig to use SSL but this method does work.
+Also note - the changes to container.js are a search and replace of http:// with https://</p>
+<p>(updated the following values at the top of the rave.shindig.properties config file with)</p>
+<div class="codehilite"><pre><span class="n">shindig</span><span class="o">.</span><span class="n">host</span><span class="o">=</span><span class="n">rave</span><span class="o">-</span><span class="n">server</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span>
+<span class="n">shindig</span><span class="o">.</span><span class="n">port</span><span class="o">=</span>
+<span class="n">shindig</span><span class="o">.</span><span class="n">contextroot</span><span class="o">=</span>
+</pre></div>
+
+
+</li>
+<li>
+<p>Startup Tomcat and verify that Rave runs properly on https://rave-server.example.com/portal</p>
+</li>
+</ul>
+<h2 id="complete-diff-of-modified-files-follows">Complete diff of modified files follows</h2>
+<blockquote>
+diff -r tomcat-vanilla\bin\startup.bat tomcat\bin\startup.bat
+<br>56c56,57
+<br>< 
+<br>---
+<br>>  
+<br>> set JAVA_OPTS=%JAVA_OPTS% -Djavax.net.ssl.trustStore=c:\temp\tomcat\custom-cacerts
+<br>
+<br>diff -r tomcat-vanilla\conf\server.xml tomcat\conf\server.xml
+<br>71c71
+<br><                redirectPort="8443" />
+<br>---
+<br>>                redirectPort="443" />
+<br>77c77
+<br><                redirectPort="8443" />
+<br>---
+<br>>                redirectPort="443" />
+<br>79c79
+<br><     &lt;!-- Define a SSL HTTP/1.1 Connector on port 8443
+<br>---
+<br>>     &lt;!-- Define a SSL HTTP/1.1 Connector on port 443
+<br>83,84c83
+<br><     &lt;!--
+<br><     &lt;Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
+<br>---
+<br>>     &lt;Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
+<br>85a85
+<br>>              keystoreFile="c:\temp\tomcat\custom-cacerts" keystorePass="changeit"
+<br>87d86
+<br><     -->
+<br>90c89
+<br><     &lt;Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
+<br>---
+<br>>     &lt;Connector port="8009" protocol="AJP/1.3" redirectPort="443" />
+<br>
+<br>diff -r tomcat-vanilla\webapps\portal\WEB-INF\classes\portal.properties tomcat\webapps\portal\WEB-INF\classes\portal.properties
+<br>25,26c25,26
+<br>< portal.opensocial_engine.protocol=http
+<br>< portal.opensocial_engine.root=localhost:8080
+<br>---
+<br>> portal.opensocial_engine.protocol=https
+<br>> portal.opensocial_engine.root=rave-server.example.com
+<br>
+<br>diff -r tomcat-vanilla\webapps\ROOT\WEB-INF\classes\containers\default\container.js tomcat\webapps\ROOT\WEB-INF\classes\containers\default\container.js
+<br>10c10
+<br><  *     http://www.apache.org/licenses/LICENSE-2.0
+<br>---
+<br>>  *     https://www.apache.org/licenses/LICENSE-2.0
+<br>78c78
+<br>< "gadgets.jsUriTemplate" : "http://%host%${CONTEXT_ROOT}/gadgets/js/%js%",
+<br>---
+<br>> "gadgets.jsUriTemplate" : "https://%host%${CONTEXT_ROOT}/gadgets/js/%js%",
+<br>86c86
+<br>< "gadgets.uri.js.host" : "http://www.example.com/",
+<br>---
+<br>> "gadgets.uri.js.host" : "https://www.example.com/",
+<br>99c99
+<br>< "gadgets.osDataUri" : "http://%host%${CONTEXT_ROOT}/rpc",
+<br>---
+<br>> "gadgets.osDataUri" : "https://%host%${CONTEXT_ROOT}/rpc",
+<br>106,107c106,107
+<br>< //"defaultShindigTestHost": "http://${SERVER_HOST}:${SERVER_PORT}",
+<br>< "defaultShindigTestHost":"http://%authority%",
+<br>---
+<br>> //"defaultShindigTestHost": "https://${SERVER_HOST}:${SERVER_PORT}",
+<br>> "defaultShindigTestHost":"https://%authority%",
+<br>154c154
+<br><       "urlTemplate" : "http://localhost${CONTEXT_ROOT}/gadgets/profile?{var}",
+<br>---
+<br>>       "urlTemplate" : "https://localhost${CONTEXT_ROOT}/gadgets/profile?{var}",
+<br>159c159
+<br><       "urlTemplate" : "http://localhost${CONTEXT_ROOT}/gadgets/canvas?{var}",
+<br>---
+<br>>       "urlTemplate" : "https://localhost${CONTEXT_ROOT}/gadgets/canvas?{var}",
+<br>260c260
+<br><     "path" : "http://%host%${CONTEXT_ROOT}/rpc",
+<br>---
+<br>>     "path" : "https://%host%${CONTEXT_ROOT}/rpc",
+<br>262c262
+<br><     "invalidatePath" : "http://%host%${CONTEXT_ROOT}/rpc",
+<br>---
+<br>>     "invalidatePath" : "https://%host%${CONTEXT_ROOT}/rpc",
+<br>290c290
+<br><     "endPoints" : [ "http://%host%${CONTEXT_ROOT}/rpc" ]
+<br>---
+<br>>     "endPoints" : [ "https://%host%${CONTEXT_ROOT}/rpc" ]
+<br>
+<br>diff -r tomcat-vanilla\webapps\ROOT\WEB-INF\classes\rave.shindig.properties tomcat\webapps\ROOT\WEB-INF\classes\rave.shindig.properties
+<br>24,25c24,25
+<br>< shindig.host=localhost
+<br>< shindig.port=8080
+<br>---
+<br>> shindig.host=rave-server.example.com
+<br>> shindig.port=
+</blockquote>
+  </div>
+
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Added: websites/staging/rave/trunk/content/documentation/custom-app-context.html
==============================================================================
--- websites/staging/rave/trunk/content/documentation/custom-app-context.html (added)
+++ websites/staging/rave/trunk/content/documentation/custom-app-context.html Mon Mar 26 19:51:18 2012
@@ -0,0 +1,106 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    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.
+-->
+  <link rel="shortcut icon" href="/rave/images/RAVE-icon.ico" type="image/x-icon" />
+  <link href="/rave/css/rave.css" rel="stylesheet" type="text/css">
+  <title>Adding a Custom Application Context</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="banner">
+    <img id="logo" alt="Apache Rave" src="/rave/images/RAVE-logo_main-logo-small.png"/>
+  </div>
+  
+  <div id="navigation">
+  <h1 id="general">General</h1>
+<ul>
+<li><a href="/rave/index.html">About</a></li>
+<li><a href="/rave/documentation/index.html">Documentation</a></li>
+<li><a href="/rave/downloads.html">Downloads</a></li>
+<li><a href="/rave/license.html">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/rave/get-involved.html">Get Involved</a></li>
+<li><a href="/rave/mailing-lists.html">Mailing Lists</a></li>
+<li><a href="/rave/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/rave/source.html">Getting Started</a></li>
+<li><a href="/rave/ide-settings-and-debugging.html">IDE Settings and debugging</a></li>
+<li><a href="/rave/release-management.html">Release Management</a></li>
+<li><a href="/rave/issue-management.html">Issue Tracker</a></li>
+<li><a href="https://builds.apache.org/hudson/view/M-R/view/Rave/">Continuous Integration</a></li>
+<li><a href="https://analysis.apache.org/dashboard/index/58996">Sonar Dashboard</a></li>
+<li><a href="/rave/edit-website.html">Website</a></li>
+</ul>
+<h1 id="asf">ASF</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+  </div>
+
+  <div id="content">
+    <h1 class="title">Adding a Custom Application Context</h1>
+    <p>In order for custom components to participate in or replace Apache Rave implementations, they must be made available to the Spring Application Context during application initialization.  The simplest way to do this is to define a Spring context XML file that defines the custom beans to use.</p>
+<p>Follow the steps below to create and add additional application contexts to Apache Rave:</p>
+<h2 id="1-get-apache-rave">1) Get Apache Rave</h2>
+<p>There are multiple ways to build your custom Apache Rave instance, but the quickest is to use a Maven WAR overlay.  See <a href="rave-extensions.html">Extending Rave</a> for an example overlay.</p>
+<h2 id="2-create-a-new-spring-context-xml-file">2) Create a new Spring context XML file</h2>
+<p>Define a Spring context file in accordance with the <a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html">Spring Documentation</a>.  Place the file in src/main/webapp/WEB-INF</p>
+<h2 id="3-override-webxml">3) Override web.xml</h2>
+<p>Copy the web.xml file from the Apache Rave source distribution (or exploded war) and place it in your overlay's src/main/webapp/WEB-INF directory.</p>
+<h2 id="4-update-webxml">4) Update web.xml</h2>
+<p>Add the location of your context XML file to the top of the <code>&lt;param-value&gt;</code> element in the <code>contextConfigLocation</code> context param in the now overridden web.xml.</p>
+<div class="codehilite"><pre><span class="nt">&lt;context-param&gt;</span>
+    <span class="nt">&lt;param-name&gt;</span>contextConfigLocation<span class="nt">&lt;/param-name&gt;</span>
+    <span class="nt">&lt;param-value&gt;</span>
+        /WEB-INF/applicationContext.xml
+        /WEB-INF/dataContext.xml
+        /WEB-INF/applicationContext-security.xml
+    <span class="nt">&lt;/param-value&gt;</span>
+<span class="nt">&lt;/context-param&gt;</span>
+</pre></div>
+
+
+<h2 id="5-build-and-deploy-your-new-apache-rave-war">5) Build and deploy your new Apache Rave war</h2>
+<h1 id="notes-and-concerns">Notes and concerns</h1>
+<p>This approach will work for overlays of rave-portal, rave-shindig or rave-wookie.</p>
+<p>IF overriding a bean implementation with your own, the bean must be marked as primary.  See the Spring documentation for discussion on primary beans.</p>
+  </div>
+
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Added: websites/staging/rave/trunk/content/documentation/custom-gui.html
==============================================================================
--- websites/staging/rave/trunk/content/documentation/custom-gui.html (added)
+++ websites/staging/rave/trunk/content/documentation/custom-gui.html Mon Mar 26 19:51:18 2012
@@ -0,0 +1,101 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    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.
+-->
+  <link rel="shortcut icon" href="/rave/images/RAVE-icon.ico" type="image/x-icon" />
+  <link href="/rave/css/rave.css" rel="stylesheet" type="text/css">
+  <title>Customize the look and feel</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="banner">
+    <img id="logo" alt="Apache Rave" src="/rave/images/RAVE-logo_main-logo-small.png"/>
+  </div>
+  
+  <div id="navigation">
+  <h1 id="general">General</h1>
+<ul>
+<li><a href="/rave/index.html">About</a></li>
+<li><a href="/rave/documentation/index.html">Documentation</a></li>
+<li><a href="/rave/downloads.html">Downloads</a></li>
+<li><a href="/rave/license.html">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/rave/get-involved.html">Get Involved</a></li>
+<li><a href="/rave/mailing-lists.html">Mailing Lists</a></li>
+<li><a href="/rave/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/rave/source.html">Getting Started</a></li>
+<li><a href="/rave/ide-settings-and-debugging.html">IDE Settings and debugging</a></li>
+<li><a href="/rave/release-management.html">Release Management</a></li>
+<li><a href="/rave/issue-management.html">Issue Tracker</a></li>
+<li><a href="https://builds.apache.org/hudson/view/M-R/view/Rave/">Continuous Integration</a></li>
+<li><a href="https://analysis.apache.org/dashboard/index/58996">Sonar Dashboard</a></li>
+<li><a href="/rave/edit-website.html">Website</a></li>
+</ul>
+<h1 id="asf">ASF</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+  </div>
+
+  <div id="content">
+    <h1 class="title">Customize the look and feel</h1>
+    <p>The look and feel (GUI) of the Apache Rave Portal can be customized to your own preference. The Apache Rave Portal contains a mechanism to easily add your own CSS file(s) which are called after the default.css file.</p>
+<h2 id="1-get-apache-rave">1) Get Apache Rave</h2>
+<p>There are multiple ways to build your custom Apache Rave instance, but the quickest is to use a Maven WAR overlay.  See <a href="rave-extensions.html">Extending Rave</a> for an example overlay.</p>
+<h2 id="2-add-css-files">2) Add CSS file(s)</h2>
+<p>Add you own CSS file(s) to the <code>src/main/webapp/css</code> folder of your extension portal module.</p>
+<h2 id="3-refer-to-the-new-css-files">3) Refer to the new CSS file(s)</h2>
+<ul>
+<li>Create a JSP tag file: <code>src/main/webapp/WEB-INF/tags/custom_css.tag</code></li>
+<li>
+<p>Add a link to the stylesheet(s) in the custom_css.tag:</p>
+<div class="codehilite"><pre><span class="o">&lt;</span><span class="nv">%@</span> <span class="nv">taglib</span> <span class="n">uri</span><span class="o">=</span><span class="s">&quot;http://java.sun.com/jstl/core_rt&quot;</span> <span class="n">prefix</span><span class="o">=</span><span class="s">&quot;c&quot;</span><span class="o">&gt;</span>
+<span class="o">&lt;</span><span class="nb">link</span> <span class="n">rel</span><span class="o">=</span><span class="s">&quot;stylesheet&quot;</span> <span class="n">href</span><span class="o">=</span><span class="s">&quot;&lt;c:url value=&quot;</span><span class="sr">/css/m</span><span class="n">y_custom</span><span class="o">.</span><span class="n">css</span><span class="s">&quot;/&gt;&quot;</span><span class="o">/&gt;</span>
+</pre></div>
+
+
+</li>
+</ul>
+<h2 id="4-change-default-settings">4) Change default settings</h2>
+<p>A portal administrator can change default settings such as the page title in the browser's title bar.
+This is described on the <a href="admin-interface-preferences.html">Portal preferences</a> help page.</p>
+  </div>
+
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Added: websites/staging/rave/trunk/content/documentation/custom-widget-renderer.html
==============================================================================
--- websites/staging/rave/trunk/content/documentation/custom-widget-renderer.html (added)
+++ websites/staging/rave/trunk/content/documentation/custom-widget-renderer.html Mon Mar 26 19:51:18 2012
@@ -0,0 +1,92 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    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.
+-->
+  <link rel="shortcut icon" href="/rave/images/RAVE-icon.ico" type="image/x-icon" />
+  <link href="/rave/css/rave.css" rel="stylesheet" type="text/css">
+  <title>Creating a new Widget Renderer</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="banner">
+    <img id="logo" alt="Apache Rave" src="/rave/images/RAVE-logo_main-logo-small.png"/>
+  </div>
+  
+  <div id="navigation">
+  <h1 id="general">General</h1>
+<ul>
+<li><a href="/rave/index.html">About</a></li>
+<li><a href="/rave/documentation/index.html">Documentation</a></li>
+<li><a href="/rave/downloads.html">Downloads</a></li>
+<li><a href="/rave/license.html">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/rave/get-involved.html">Get Involved</a></li>
+<li><a href="/rave/mailing-lists.html">Mailing Lists</a></li>
+<li><a href="/rave/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/rave/source.html">Getting Started</a></li>
+<li><a href="/rave/ide-settings-and-debugging.html">IDE Settings and debugging</a></li>
+<li><a href="/rave/release-management.html">Release Management</a></li>
+<li><a href="/rave/issue-management.html">Issue Tracker</a></li>
+<li><a href="https://builds.apache.org/hudson/view/M-R/view/Rave/">Continuous Integration</a></li>
+<li><a href="https://analysis.apache.org/dashboard/index/58996">Sonar Dashboard</a></li>
+<li><a href="/rave/edit-website.html">Website</a></li>
+</ul>
+<h1 id="asf">ASF</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+  </div>
+
+  <div id="content">
+    <h1 class="title">Creating a new Widget Renderer</h1>
+    <p>The Apache Rave development team is striving to build rave-portal as a widget-agnostic mash-up engine.  This means that a new widget provider can be added to Apache Rave with a few simple steps.</p>
+<h2 id="1-get-apache-rave">1) Get Apache Rave</h2>
+<p>There are multiple ways to build your custom Apache Rave instance, but the simplest is to use a Maven WAR overlay. See <a href="rave-extensions.html">Extending Rave</a> for an example overlay.</p>
+<h2 id="2-define-a-custom-web-application-context">2) Define a custom web application context</h2>
+<p>See <a href="custom-app-context.html">Adding a custom Application Context</a></p>
+<h2 id="3-add-a-widget-renderer">3) Add a widget renderer</h2>
+<p>Add an implementation of org.apache.rave.portal.web.renderer.RegionWidgetRenderer to your custom application context.  This renderer will get called during the page render process at the point in the page where the HTML markup for the widget is to be output.  If your provider needs to add a script block to the render process, you can autowire in a reference to the <a href="script-manager.html">ScriptManager</a>.</p>
+<h2 id="4-add-a-widget-provider-js-file">4) Add a widget provider js file</h2>
+<p>If your widget provider has any javascript that needs to be executed to initialize the widget, you can define a widget provider javascript object.  The javascript widget provider must have a TYPE property and an initWidget function as documented in rave.js's registerProvider function.</p>
+<p>The easiest way to add a new widget provider javascript file is to create a separate include file in src/main/webapp/script and add a bean with a dependency on the ScriptManager that registers the Global script block.  If you are overriding any of the JSPs or adding your own front end, you can obviously add the script include at any point on the page after rave.js.<br />
+</p>
+  </div>
+
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Added: websites/staging/rave/trunk/content/documentation/customizing.html
==============================================================================
--- websites/staging/rave/trunk/content/documentation/customizing.html (added)
+++ websites/staging/rave/trunk/content/documentation/customizing.html Mon Mar 26 19:51:18 2012
@@ -0,0 +1,89 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    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.
+-->
+  <link rel="shortcut icon" href="/rave/images/RAVE-icon.ico" type="image/x-icon" />
+  <link href="/rave/css/rave.css" rel="stylesheet" type="text/css">
+  <title>Customizing Apache Rave</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="banner">
+    <img id="logo" alt="Apache Rave" src="/rave/images/RAVE-logo_main-logo-small.png"/>
+  </div>
+  
+  <div id="navigation">
+  <h1 id="general">General</h1>
+<ul>
+<li><a href="/rave/index.html">About</a></li>
+<li><a href="/rave/documentation/index.html">Documentation</a></li>
+<li><a href="/rave/downloads.html">Downloads</a></li>
+<li><a href="/rave/license.html">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/rave/get-involved.html">Get Involved</a></li>
+<li><a href="/rave/mailing-lists.html">Mailing Lists</a></li>
+<li><a href="/rave/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/rave/source.html">Getting Started</a></li>
+<li><a href="/rave/ide-settings-and-debugging.html">IDE Settings and debugging</a></li>
+<li><a href="/rave/release-management.html">Release Management</a></li>
+<li><a href="/rave/issue-management.html">Issue Tracker</a></li>
+<li><a href="https://builds.apache.org/hudson/view/M-R/view/Rave/">Continuous Integration</a></li>
+<li><a href="https://analysis.apache.org/dashboard/index/58996">Sonar Dashboard</a></li>
+<li><a href="/rave/edit-website.html">Website</a></li>
+</ul>
+<h1 id="asf">ASF</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+  </div>
+
+  <div id="content">
+    <h1 class="title">Customizing Apache Rave</h1>
+    <p>Apache Rave has been designed with extension in mind and provides many different ways to override, supplement or modify out of the box components.  Apache Rave leverages a combination of well defined interfaces and the <a href="http://www.springsource.org">Spring Framework</a> as a mechanism of extensibility. This powerful approach gives developers the ability to override Apache Rave bean implementations, inject Apache Rave beans into custom code and wire additional components into Apache Rave beans that depend on lists.</p>
+<p>You will find guides for extending Apache Rave in common ways below, but if you are unfamiliar with Spring's inversion of control (IoC), it is recommended that you read the Overview of the Spring Framework <a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/spring-introduction.html">here</a>.</p>
+<h2 id="customization-guides">Customization Guides</h2>
+<ul>
+<li><a href="custom-app-context.html">Adding a custom application context</a></li>
+<li><a href="custom-widget-renderer.html">Adding a new Widget Renderer</a></li>
+<li><a href="script-manager.html">Working with the Script Manager</a></li>
+</ul>
+  </div>
+
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Added: websites/staging/rave/trunk/content/documentation/host-configuration.html
==============================================================================
--- websites/staging/rave/trunk/content/documentation/host-configuration.html (added)
+++ websites/staging/rave/trunk/content/documentation/host-configuration.html Mon Mar 26 19:51:18 2012
@@ -0,0 +1,111 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    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.
+-->
+  <link rel="shortcut icon" href="/rave/images/RAVE-icon.ico" type="image/x-icon" />
+  <link href="/rave/css/rave.css" rel="stylesheet" type="text/css">
+  <title>Host configuration</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="banner">
+    <img id="logo" alt="Apache Rave" src="/rave/images/RAVE-logo_main-logo-small.png"/>
+  </div>
+  
+  <div id="navigation">
+  <h1 id="general">General</h1>
+<ul>
+<li><a href="/rave/index.html">About</a></li>
+<li><a href="/rave/documentation/index.html">Documentation</a></li>
+<li><a href="/rave/downloads.html">Downloads</a></li>
+<li><a href="/rave/license.html">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/rave/get-involved.html">Get Involved</a></li>
+<li><a href="/rave/mailing-lists.html">Mailing Lists</a></li>
+<li><a href="/rave/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/rave/source.html">Getting Started</a></li>
+<li><a href="/rave/ide-settings-and-debugging.html">IDE Settings and debugging</a></li>
+<li><a href="/rave/release-management.html">Release Management</a></li>
+<li><a href="/rave/issue-management.html">Issue Tracker</a></li>
+<li><a href="https://builds.apache.org/hudson/view/M-R/view/Rave/">Continuous Integration</a></li>
+<li><a href="https://analysis.apache.org/dashboard/index/58996">Sonar Dashboard</a></li>
+<li><a href="/rave/edit-website.html">Website</a></li>
+</ul>
+<h1 id="asf">ASF</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+  </div>
+
+  <div id="content">
+    <h1 class="title">Host configuration</h1>
+    <p>The default configuration uses the following URL's:</p>
+<ul>
+<li>Portal: <a href="http://localhost:8080/portal">http://localhost:8080/portal</a></li>
+<li>Base URL for rendering OpenSocial gadgets http://localhost:8080/gadgets</li>
+</ul>
+<h2 id="override-portal-configuration">Override portal configuration</h2>
+<p>First configure the portal to call a different URL for the OpenSocial engine:</p>
+<ul>
+<li>Make a copy of <a href="http://svn.apache.org/repos/asf/rave/trunk/rave-portal-resources/src/main/resources/portal.properties">portal.properties</a></li>
+<li>Change the properties <code>portal.opensocial_engine.protocol</code>, <code>portal.opensocial_engine.root</code> and/or <code>portal.opensocial_engine.gadget_path</code></li>
+<li>Set a system property <code>portal.override.properties</code> that points to the location of the custom properties file.<ul>
+<li>File system: <code>portal.override.properties=/new/location/of/myportal.properties</code></li>
+<li>Classpath: <code>portal.override.properties=classpath:myportal.properties</code></li>
+</ul>
+</li>
+</ul>
+<p>After a (re)start of Tomcat, the portal will now try to fetch gadget rendering data from your configured location.</p>
+<h2 id="override-opensocial-engine-configuration">Override OpenSocial engine configuration</h2>
+<ul>
+<li>Make a copy of <a href="http://svn.apache.org/repos/asf/rave/trunk/rave-providers/rave-opensocial-provider/rave-opensocial-server/rave-shindig/src/main/webapp/WEB-INF/classes/containers/default/container.js">container.js</a> (check if this version is still valid for your release)</li>
+<li>Make a copy of <a href="http://svn.apache.org/repos/asf/rave/trunk/rave-providers/rave-opensocial-provider/rave-opensocial-server/rave-shindig/src/main/resources/rave.shindig.properties">rave.shindig.properties</a></li>
+<li>Change the reference in <code>rave.shindig.properties</code> to <code>container.js</code>: <code>shindig.containers.default=/new/location/of/container.js</code></li>
+<li>Change the properties that point to localhost, port 8080 or http</li>
+<li>Set a system property <code>rave-shindig.override.properties</code> that points to the location of the custom properties file.<ul>
+<li>File system: <code>rave-shindig.override.properties=/new/location/of/myrave-shindig.properties</code></li>
+<li>Classpath: <code>rave-shindig.override.properties=classpath:myrave-shindig.properties</code></li>
+</ul>
+</li>
+</ul>
+<p>Note: Although <code>shindig.host</code>, <code>shindig.port</code> and <code>shindig.contextroot</code> can also be overridden by setting them as individual system properties, <code>container.js</code> contains hard coded values with <code>localhost</code></p>
+  </div>
+
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Added: websites/staging/rave/trunk/content/documentation/index.html
==============================================================================
--- websites/staging/rave/trunk/content/documentation/index.html (added)
+++ websites/staging/rave/trunk/content/documentation/index.html Mon Mar 26 19:51:18 2012
@@ -0,0 +1,122 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    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.
+-->
+  <link rel="shortcut icon" href="/rave/images/RAVE-icon.ico" type="image/x-icon" />
+  <link href="/rave/css/rave.css" rel="stylesheet" type="text/css">
+  <title>Documentation home</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="banner">
+    <img id="logo" alt="Apache Rave" src="/rave/images/RAVE-logo_main-logo-small.png"/>
+  </div>
+  
+  <div id="navigation">
+  <h1 id="general">General</h1>
+<ul>
+<li><a href="/rave/index.html">About</a></li>
+<li><a href="/rave/documentation/index.html">Documentation</a></li>
+<li><a href="/rave/downloads.html">Downloads</a></li>
+<li><a href="/rave/license.html">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/rave/get-involved.html">Get Involved</a></li>
+<li><a href="/rave/mailing-lists.html">Mailing Lists</a></li>
+<li><a href="/rave/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/rave/source.html">Getting Started</a></li>
+<li><a href="/rave/ide-settings-and-debugging.html">IDE Settings and debugging</a></li>
+<li><a href="/rave/release-management.html">Release Management</a></li>
+<li><a href="/rave/issue-management.html">Issue Tracker</a></li>
+<li><a href="https://builds.apache.org/hudson/view/M-R/view/Rave/">Continuous Integration</a></li>
+<li><a href="https://analysis.apache.org/dashboard/index/58996">Sonar Dashboard</a></li>
+<li><a href="/rave/edit-website.html">Website</a></li>
+</ul>
+<h1 id="asf">ASF</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+  </div>
+
+  <div id="content">
+    <h1 class="title">Documentation home</h1>
+    <h2 id="deployments">Deployments</h2>
+<ul>
+<li><a href="installing.html">Installing</a><ul>
+<li><a href="host-configuration.html">Host configuration</a></li>
+<li><a href="configure-ssl.html">SSL configuring</a></li>
+<li><a href="configure-database.html">Database configuration</a></li>
+<li><a href="configure-locked-domain.html">Locked Domain configuration</a></li>
+</ul>
+</li>
+</ul>
+<h2 id="customizing"><a href="customizing.html">Customizing</a></h2>
+<ul>
+<li><a href="custom-app-context.html">Adding a custom application context</a></li>
+<li><a href="custom-widget-renderer.html">Adding a new Widget Renderer</a></li>
+<li><a href="script-manager.html">Working with the Script Manager</a></li>
+</ul>
+<h2 id="security">Security</h2>
+<ul>
+<li><a href="security-model-permission.html">Security Model Permission Overview</a></li>
+<li><a href="new-model-permission-impl.html">How to Implement Permission Security for a New Rave Model Object</a></li>
+<li><a href="model-permission-override.html">How to Override the Default Permission Security for and Existing Rave Model Object</a></li>
+<li><a href="sso-login.html">How to configure Single Sign-On</a></li>
+<li><a href="ldap-authentication.html">LDAP Authentication</a></li>
+</ul>
+<h2 id="howto">Howto</h2>
+<ul>
+<li><a href="rave-extensions.html">Extend Rave to build your own portal</a></li>
+<li><a href="oauth-consumer.html">Use Rave as OAuth consumer (OpenSocial)</a></li>
+<li><a href="custom-gui.html">Customize the look and feel</a></li>
+<li><a href="translate-portal.html">Translate the portal</a></li>
+<li><a href="captcha-enabling.html">Enable CAPTCHA security for new account creation</a></li>
+</ul>
+<h2 id="portal-administration">Portal administration</h2>
+<ul>
+<li><a href="admin-interface.html">Portal admin interface</a><ul>
+<li><a href="admin-interface-users.html">Users</a></li>
+<li><a href="admin-interface-widgets.html">Widgets</a></li>
+<li><a href="admin-interface-preferences.html">Portal preferences</a></li>
+</ul>
+</li>
+</ul>
+  </div>
+
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Added: websites/staging/rave/trunk/content/documentation/installing.html
==============================================================================
--- websites/staging/rave/trunk/content/documentation/installing.html (added)
+++ websites/staging/rave/trunk/content/documentation/installing.html Mon Mar 26 19:51:18 2012
@@ -0,0 +1,122 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    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.
+-->
+  <link rel="shortcut icon" href="/rave/images/RAVE-icon.ico" type="image/x-icon" />
+  <link href="/rave/css/rave.css" rel="stylesheet" type="text/css">
+  <title>Installing Apache Rave</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="banner">
+    <img id="logo" alt="Apache Rave" src="/rave/images/RAVE-logo_main-logo-small.png"/>
+  </div>
+  
+  <div id="navigation">
+  <h1 id="general">General</h1>
+<ul>
+<li><a href="/rave/index.html">About</a></li>
+<li><a href="/rave/documentation/index.html">Documentation</a></li>
+<li><a href="/rave/downloads.html">Downloads</a></li>
+<li><a href="/rave/license.html">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/rave/get-involved.html">Get Involved</a></li>
+<li><a href="/rave/mailing-lists.html">Mailing Lists</a></li>
+<li><a href="/rave/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/rave/source.html">Getting Started</a></li>
+<li><a href="/rave/ide-settings-and-debugging.html">IDE Settings and debugging</a></li>
+<li><a href="/rave/release-management.html">Release Management</a></li>
+<li><a href="/rave/issue-management.html">Issue Tracker</a></li>
+<li><a href="https://builds.apache.org/hudson/view/M-R/view/Rave/">Continuous Integration</a></li>
+<li><a href="https://analysis.apache.org/dashboard/index/58996">Sonar Dashboard</a></li>
+<li><a href="/rave/edit-website.html">Website</a></li>
+</ul>
+<h1 id="asf">ASF</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+  </div>
+
+  <div id="content">
+    <h1 class="title">Installing Apache Rave</h1>
+    <h2 id="download-a-distribution-package">Download a distribution package</h2>
+<p>Releases of Apache Rave are available for <a href="../downloads.html">download</a>. </p>
+<h2 id="build-a-distribution-package">Build a distribution package</h2>
+<p>To build your own distribution with default settings follow these steps:</p>
+<ul>
+<li>Get the <a href="../source.html">source</a></li>
+<li>
+<p>Build your distribution package with</p>
+<p><code>$ mvn -Pdist</code></p>
+</li>
+</ul>
+<h2 id="deploy-the-distribution">Deploy the distribution</h2>
+<p>In the directory rave-portal/target you can find the rave-<version>-bin.tar.gz and 
+rave-<version>-bin.zip file that contains the full Apache Tomcat 6 installation. 
+The contents of these archives are identical. Unpack one of these archives on your server
+and go to the Tomcat directory in the console or command prompt.</p>
+<h3 id="start-tomcat">Start Tomcat</h3>
+<p>Unix</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="n">startup</span><span class="o">.</span><span class="n">sh</span>
+</pre></div>
+
+
+<p>Windows</p>
+<div class="codehilite"><pre><span class="o">&gt;</span> <span class="n">bin</span><span class="o">\</span><span class="n">startup</span><span class="o">.</span><span class="n">bat</span>
+</pre></div>
+
+
+<h2 id="visit-the-portal">Visit the portal</h2>
+<p>Open url <a href="http://localhost:8080/portal">http://localhost:8080/portal</a> in a browser.</p>
+<h3 id="stop-tomcat">Stop Tomcat</h3>
+<p>Unix</p>
+<div class="codehilite"><pre><span class="nv">$</span> <span class="err">./</span><span class="nv">bin</span><span class="o">/</span><span class="nb">shutdown</span><span class="o">.</span><span class="n">sh</span>
+</pre></div>
+
+
+<p>Windows</p>
+<div class="codehilite"><pre><span class="o">&gt;</span> <span class="n">bin</span><span class="o">\</span><span class="nb">shutdown</span><span class="o">.</span><span class="n">bat</span>
+</pre></div>
+
+
+<p>For more Tomcat options, see the <a href="http://tomcat.apache.org/tomcat-6.0-doc/index.html">Tomcat 6.0 documentation</a>.</p>
+  </div>
+
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Added: websites/staging/rave/trunk/content/documentation/ldap-authentication.html
==============================================================================
--- websites/staging/rave/trunk/content/documentation/ldap-authentication.html (added)
+++ websites/staging/rave/trunk/content/documentation/ldap-authentication.html Mon Mar 26 19:51:18 2012
@@ -0,0 +1,189 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    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.
+-->
+  <link rel="shortcut icon" href="/rave/images/RAVE-icon.ico" type="image/x-icon" />
+  <link href="/rave/css/rave.css" rel="stylesheet" type="text/css">
+  <title>LDAP Authentication</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="banner">
+    <img id="logo" alt="Apache Rave" src="/rave/images/RAVE-logo_main-logo-small.png"/>
+  </div>
+  
+  <div id="navigation">
+  <h1 id="general">General</h1>
+<ul>
+<li><a href="/rave/index.html">About</a></li>
+<li><a href="/rave/documentation/index.html">Documentation</a></li>
+<li><a href="/rave/downloads.html">Downloads</a></li>
+<li><a href="/rave/license.html">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/rave/get-involved.html">Get Involved</a></li>
+<li><a href="/rave/mailing-lists.html">Mailing Lists</a></li>
+<li><a href="/rave/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/rave/source.html">Getting Started</a></li>
+<li><a href="/rave/ide-settings-and-debugging.html">IDE Settings and debugging</a></li>
+<li><a href="/rave/release-management.html">Release Management</a></li>
+<li><a href="/rave/issue-management.html">Issue Tracker</a></li>
+<li><a href="https://builds.apache.org/hudson/view/M-R/view/Rave/">Continuous Integration</a></li>
+<li><a href="https://analysis.apache.org/dashboard/index/58996">Sonar Dashboard</a></li>
+<li><a href="/rave/edit-website.html">Website</a></li>
+</ul>
+<h1 id="asf">ASF</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+  </div>
+
+  <div id="content">
+    <h1 class="title">LDAP Authentication</h1>
+    <p>The authentication in the Apache Rave portal is handled through Spring Security.
+The supported login mechanisms are currently basic authentication with users stored in the database, OpenId and, since
+version 0.8-incubating, LDAP.</p>
+<p>When an LDAP user logs in for the first time in the Apache Rave portal, a user profile in the portal is created with the
+same username, email address and display name as in the LDAP. When this user logs in again, he is still authenticated
+against the LDAP server.</p>
+<h2 id="demo-login">Demo login</h2>
+<p>For the LDAP authentication the demo setup comes with an embedded ApacheDS.
+To login with the demo setup the following credentials can be used:</p>
+<ul>
+<li>johnldap/johnldap</li>
+<li>janeldap/janeldap</li>
+</ul>
+<h2 id="ldap-configuration">LDAP configuration</h2>
+<p>The demo setup of the Apache Rave portal is configured to use an embedded ApacheDS, populated by a users.ldiff file:</p>
+<div class="codehilite"><pre><span class="o">&lt;</span><span class="n">security:ldap</span><span class="o">-</span><span class="n">server</span> <span class="n">ldif</span><span class="o">=</span><span class="s">&quot;classpath:users.ldiff&quot;</span> <span class="n">root</span><span class="o">=</span><span class="s">&quot;dc=rave,dc=apache,dc=org&quot;</span> <span class="o">/&gt;</span>
+</pre></div>
+
+
+<p>Authentication is handled by LDAP first. If this fails, Spring Security tries the basic authentication against the
+database:</p>
+<div class="codehilite"><pre><span class="nt">&lt;security:authentication-manager&gt;</span>
+    <span class="nt">&lt;security:ldap-authentication-provider</span>
+            <span class="na">group-search-filter=</span><span class="s">&quot;member={0}&quot;</span>
+            <span class="na">group-search-base=</span><span class="s">&quot;ou=groups&quot;</span>
+            <span class="na">user-search-base=</span><span class="s">&quot;ou=people&quot;</span>
+            <span class="na">user-search-filter=</span><span class="s">&quot;uid={0}&quot;</span>
+            <span class="na">user-context-mapper-ref=</span><span class="s">&quot;raveUserContextMapper&quot;</span><span class="nt">/&gt;</span>
+
+    <span class="nt">&lt;security:authentication-provider</span>
+            <span class="na">user-service-ref=</span><span class="s">&quot;userService&quot;</span><span class="nt">&gt;</span>
+        <span class="nt">&lt;security:password-encoder</span> <span class="na">ref=</span><span class="s">&quot;passwordEncoder&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;/security:authentication-provider&gt;</span>
+<span class="nt">&lt;/security:authentication-manager&gt;</span>
+</pre></div>
+
+
+<p>An Apache Rave portal specific class maps the authenticated LDAP user to an Apache Rave portal profile:</p>
+<div class="codehilite"><pre><span class="nt">&lt;bean</span> <span class="na">id=</span><span class="s">&quot;raveUserContextMapper&quot;</span> <span class="na">class=</span><span class="s">&quot;org.apache.rave.portal.web.security.LdapUserDetailsContextMapper&quot;</span> <span class="nt">&gt;</span>
+    <span class="nt">&lt;constructor-arg</span> <span class="na">name=</span><span class="s">&quot;userService&quot;</span> <span class="na">ref=</span><span class="s">&quot;userService&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;constructor-arg</span> <span class="na">name=</span><span class="s">&quot;newAccountService&quot;</span> <span class="na">ref=</span><span class="s">&quot;defaultNewAccountService&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;constructor-arg</span> <span class="na">name=</span><span class="s">&quot;mailAttributeName&quot;</span> <span class="na">value=</span><span class="s">&quot;mail&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;constructor-arg</span> <span class="na">name=</span><span class="s">&quot;displayNameAttributeName&quot;</span> <span class="na">value=</span><span class="s">&quot;displayName&quot;</span><span class="nt">/&gt;</span>
+    <span class="nt">&lt;constructor-arg</span> <span class="na">name=</span><span class="s">&quot;pageLayoutCode&quot;</span> <span class="na">value=</span><span class="s">&quot;columns_3&quot;</span><span class="nt">/&gt;</span>
+<span class="nt">&lt;/bean&gt;</span>
+</pre></div>
+
+
+<p>With "mailAttributeName" and "displayNameAttributeName" you can configure the names of the attributes from your own LDAP
+that contain the mail address and display name for a user. When the LdapUserDetailsContextMapper create a user profile,
+the user gets access to the portal and gets the layout configured in "pageLayoutCode".</p>
+<h2 id="customizing-the-ldap-setup">Customizing the LDAP setup</h2>
+<p>First create a custom portal project. There are multiple ways to build your custom Apache Rave instance, but the quickest is to
+use a Maven WAR overlay. See <a href="rave-extensions.html">Extending Rave</a> for an example overlay.</p>
+<p>For the LDAP configuration, the default applicationContext-security.xml needs to be overridden.</p>
+<h3 id="ldap-as-only-authentication-provider">LDAP as only authentication provider</h3>
+<p>If you don't want the fallback to the database for authentication, remove:</p>
+<div class="codehilite"><pre><span class="nt">&lt;security:authentication-provider</span> <span class="na">user-service-ref=</span><span class="s">&quot;userService&quot;</span><span class="nt">&gt;</span>
+     <span class="nt">&lt;security:password-encoder</span> <span class="na">ref=</span><span class="s">&quot;passwordEncoder&quot;</span><span class="nt">/&gt;</span>
+<span class="nt">&lt;/security:authentication-provider&gt;</span>
+</pre></div>
+
+
+<h3 id="external-ldap-server">External LDAP server</h3>
+<p>The following line is configured to use the embedded ApacheDS:</p>
+<div class="codehilite"><pre><span class="o">&lt;</span><span class="n">security:ldap</span><span class="o">-</span><span class="n">server</span> <span class="n">ldif</span><span class="o">=</span><span class="s">&quot;classpath:users.ldiff&quot;</span> <span class="n">root</span><span class="o">=</span><span class="s">&quot;dc=rave,dc=apache,dc=org&quot;</span> <span class="o">/&gt;</span>
+</pre></div>
+
+
+<p>To use an external LDAP server, replace it with:</p>
+<div class="codehilite"><pre><span class="o">&lt;</span><span class="n">ldap</span><span class="o">-</span><span class="n">server</span> <span class="n">id</span><span class="o">=</span><span class="s">&quot;appLdapServer&quot;</span>
+        <span class="n">url</span><span class="o">=</span><span class="s">&quot;ldap://myldap.example.com:389/dc=example,dc=com&quot;</span>
+        <span class="n">manager</span><span class="o">-</span><span class="n">dn</span><span class="o">=</span><span class="s">&quot;uid=admin,ou=system&quot;</span> <span class="n">manager</span><span class="o">-</span><span class="n">password</span><span class="o">=</span><span class="s">&quot;secret&quot;</span> <span class="o">/&gt;</span>
+</pre></div>
+
+
+<!-- AD documentation is commented out because configuration has not been confirmed yet -->
+
+<!--
+### Active directory
+
+An Active Directory server behaves slightly different than other LDAP servers. In Spring Security there's a different
+authentication provider that handles these differences. This requires a few extra changes in the
+applicationContext-security.xml file.
+
+Replace the default <security:authentication-manager> with:
+
+    <security:authentication-manager>
+        <security:authentication-provider ref="ldapAuthProvider"/>
+    </security:authentication-manager>
+
+Add a a bean for the configuration of ActiveDirectoryLdapAuthenticationProvider:
+
+    <bean id="ldapAuthProvider"
+          class="org.springframework.security.ldap.authentication.ad.ActiveDirectoryLdapAuthenticationProvider">
+        <constructor-arg name="domain" value="mydomain.com"/>
+        <constructor-arg name="url" value="ldap://adserver.mydomain.com"/>
+
+        <property name="userDetailsContextMapper" ref="raveUserContextMapper"/>
+    </bean>
+-->
+
+<h2 id="reference">Reference</h2>
+<ul>
+<li><a href="http://static.springsource.org/spring-security/site/docs/3.1.x/reference/ldap.html">Spring Security LDAP documentation</a></li>
+<li><a href="http://directory.apache.org/apacheds/1.5/">ApacheDS</a>
+<!--  * <a href="http://en.wikipedia.org/wiki/Active_Directory">Active Directory</a> --></li>
+</ul>
+  </div>
+
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Added: websites/staging/rave/trunk/content/documentation/model-permission-override.html
==============================================================================
--- websites/staging/rave/trunk/content/documentation/model-permission-override.html (added)
+++ websites/staging/rave/trunk/content/documentation/model-permission-override.html Mon Mar 26 19:51:18 2012
@@ -0,0 +1,100 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    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.
+-->
+  <link rel="shortcut icon" href="/rave/images/RAVE-icon.ico" type="image/x-icon" />
+  <link href="/rave/css/rave.css" rel="stylesheet" type="text/css">
+  <title>How to Override the Default Permission Security for an Existing Rave Model Object</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="banner">
+    <img id="logo" alt="Apache Rave" src="/rave/images/RAVE-logo_main-logo-small.png"/>
+  </div>
+  
+  <div id="navigation">
+  <h1 id="general">General</h1>
+<ul>
+<li><a href="/rave/index.html">About</a></li>
+<li><a href="/rave/documentation/index.html">Documentation</a></li>
+<li><a href="/rave/downloads.html">Downloads</a></li>
+<li><a href="/rave/license.html">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/rave/get-involved.html">Get Involved</a></li>
+<li><a href="/rave/mailing-lists.html">Mailing Lists</a></li>
+<li><a href="/rave/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/rave/source.html">Getting Started</a></li>
+<li><a href="/rave/ide-settings-and-debugging.html">IDE Settings and debugging</a></li>
+<li><a href="/rave/release-management.html">Release Management</a></li>
+<li><a href="/rave/issue-management.html">Issue Tracker</a></li>
+<li><a href="https://builds.apache.org/hudson/view/M-R/view/Rave/">Continuous Integration</a></li>
+<li><a href="https://analysis.apache.org/dashboard/index/58996">Sonar Dashboard</a></li>
+<li><a href="/rave/edit-website.html">Website</a></li>
+</ul>
+<h1 id="asf">ASF</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+  </div>
+
+  <div id="content">
+    <h1 class="title">How to Override the Default Permission Security for an Existing Rave Model Object</h1>
+    <p>Click <a href="rave-extensions.html">here</a> first on how to extend Rave.</p>
+<p>If you would like to override any of the various Default[ModelName]PermissionEvaluator classes supplied by Rave, it is easy to do.  For example, say you wanted to create your own ModelPermissionEvaluator for Page objects:</p>
+<p>1) Create a class that extends AbstractModelPermissionEvaluator<Page>, such as CustomPagePermissionEvaluator, and make sure it is annotated as a Spring component:</p>
+<div class="codehilite"><pre><span class="nv">@Component</span>
+<span class="n">public</span> <span class="n">class</span> <span class="n">CustomPagePermissionEvaluator</span> <span class="n">extends</span> <span class="n">AbstractModelPermissionEvaluator</span><span class="sr">&lt;Page&gt;</span> <span class="p">{</span> <span class="o">...</span> <span class="p">}</span>
+</pre></div>
+
+
+<p>2) Implement getType() to return Page.class</p>
+<p>3) Override both hasPermission signature methods with your custom permission logic</p>
+<p>4) Override the getLoadOrder function to return a larger number than 1.  This is important as it will make the RavePermissionEvaluator register your custom implementation for the Page object instead of the default ModelPermissionEvaluator for the Page object.</p>
+<div class="codehilite"><pre><span class="nv">@Override</span>
+<span class="n">public</span> <span class="nb">int</span> <span class="n">getLoadOrder</span><span class="p">()</span> <span class="p">{</span>        
+    <span class="k">return</span> <span class="n">super</span><span class="o">.</span><span class="n">getLoadOrder</span><span class="p">()</span> <span class="o">+</span> <span class="mi">1</span><span class="p">;</span>
+<span class="p">}</span>
+</pre></div>
+
+
+<p>5) Ensure your new class gets component scanned by Spring upon application startup.  Click <a href="custom-app-context.html">here</a> to read about how to override the application context. </p>
+  </div>
+
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>

Added: websites/staging/rave/trunk/content/documentation/new-model-permission-impl.html
==============================================================================
--- websites/staging/rave/trunk/content/documentation/new-model-permission-impl.html (added)
+++ websites/staging/rave/trunk/content/documentation/new-model-permission-impl.html Mon Mar 26 19:51:18 2012
@@ -0,0 +1,97 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<!--
+
+    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.
+-->
+  <link rel="shortcut icon" href="/rave/images/RAVE-icon.ico" type="image/x-icon" />
+  <link href="/rave/css/rave.css" rel="stylesheet" type="text/css">
+  <title>How to Implement Permission Security for a new Rave Model Object</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+</head>
+
+<body>
+  <div id="banner">
+    <img id="logo" alt="Apache Rave" src="/rave/images/RAVE-logo_main-logo-small.png"/>
+  </div>
+  
+  <div id="navigation">
+  <h1 id="general">General</h1>
+<ul>
+<li><a href="/rave/index.html">About</a></li>
+<li><a href="/rave/documentation/index.html">Documentation</a></li>
+<li><a href="/rave/downloads.html">Downloads</a></li>
+<li><a href="/rave/license.html">License</a></li>
+</ul>
+<h1 id="community">Community</h1>
+<ul>
+<li><a href="/rave/get-involved.html">Get Involved</a></li>
+<li><a href="/rave/mailing-lists.html">Mailing Lists</a></li>
+<li><a href="/rave/people.html">People</a></li>
+</ul>
+<h1 id="development">Development</h1>
+<ul>
+<li><a href="/rave/source.html">Getting Started</a></li>
+<li><a href="/rave/ide-settings-and-debugging.html">IDE Settings and debugging</a></li>
+<li><a href="/rave/release-management.html">Release Management</a></li>
+<li><a href="/rave/issue-management.html">Issue Tracker</a></li>
+<li><a href="https://builds.apache.org/hudson/view/M-R/view/Rave/">Continuous Integration</a></li>
+<li><a href="https://analysis.apache.org/dashboard/index/58996">Sonar Dashboard</a></li>
+<li><a href="/rave/edit-website.html">Website</a></li>
+</ul>
+<h1 id="asf">ASF</h1>
+<ul>
+<li><a href="http://www.apache.org">Apache Software Foundation</a></li>
+<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
+<li><a href="http://www.apache.org/foundation/sponsorship.html">Become a Sponsor</a></li>
+<li><a href="http://www.apache.org/security/">Security</a></li>
+</ul>
+  </div>
+
+  <div id="content">
+    <h1 class="title">How to Implement Permission Security for a new Rave Model Object</h1>
+    <p><em>This how-to is targeted to Rave committers/contributors who have created a completely new model object in Rave and want to implement permission security on it.
+For third-party developers that are customizing Rave and are interested in overriding the default ModelPermissionEvaluator for an existing Rave model, see <a href="model-permission-override.html">this</a></em></p>
+<p>1) Create a new Default[ModelName]PermissionEvaluator class in org.apache.rave.portal.security.impl under rave-core.</p>
+<blockquote>
+<p>(a) it should extend the AbstractModelPermissionEvaluator&lt;[ModelName]&gt;</p>
+<p>(b) view the DefaultPagePermissionEvaluator class in the same package
+for an example to follow</p>
+<p>(c) override the getType() and both hasPermission() signatures. Ensure
+you follow the same trustedDomainObject pattern by looking up the
+entity from the repository if you are not guaranteed it to be trusted.</p>
+<p>(d) make sure the class is marked @Component so it is picked up by
+Spring's component scanner.  This will ensure it gets added to the
+RavePermissionEvaluator class on startup.</p>
+</blockquote>
+<p>2) Annotate the appropriate Service layer interface methods in org.apache.rave.portal.service with the permission security expression language functions.  You can use PageService as a good example of using both PreAuthorize and PostAuthorize, and also for situations where you need to use a RaveSecurityContext object to check permissions against an object that is different from the one being returned in the function.  Note that the annotations should not contain any security-specific business logic.  The business logic should be implemented in the ModelPermissionEvaluator implementations so that it can be overridden by third-parties. </p>
+<p>Click <a href="http://static.springsource.org/spring-security/site/docs/3.0.x/reference/el-access.html">here</a> for more information on the Spring EL-based security functions.</p>
+  </div>
+
+  <div id="footer">
+    <div class="copyright">
+      <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under
+        the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+        <br />
+        Apache and the Apache feather logos are trademarks of The Apache Software Foundation.
+      </p>
+    </div>
+  </div>
+
+</body>
+</html>