Author: jaredmorgs
Date: 2013-03-24 19:45:57 -0400 (Sun, 24 Mar 2013)
New Revision: 9223
Added:
epp/docs/JPP/trunk/Development_Guide/en-US/extras/GadgetRegister.java
epp/docs/JPP/trunk/Development_Guide/en-US/extras/MyFilter.java
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default1.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default10.java
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default11.java
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default160.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default161.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default2.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default3.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default4.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default5.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default6.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default7.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default8.xml
epp/docs/JPP/trunk/Development_Guide/en-US/extras/default9.java
Modified:
epp/docs/JPP/trunk/Development_Guide/en-US/Book_Info.xml
epp/docs/JPP/trunk/Development_Guide/en-US/Javascript_Inter-application_Communication.xml
epp/docs/JPP/trunk/Development_Guide/en-US/Portal_Lifecycle.xml
epp/docs/JPP/trunk/Development_Guide/en-US/The_eXo_Kernel.xml
Log:
Added all required xml and java code sample files to remove missing xi:include errors
Modified: epp/docs/JPP/trunk/Development_Guide/en-US/Book_Info.xml
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/Book_Info.xml 2013-03-22 04:30:58 UTC (rev
9222)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/Book_Info.xml 2013-03-24 23:45:57 UTC (rev
9223)
@@ -4,7 +4,7 @@
%BOOK_ENTITIES;
]>
<bookinfo id="book-Developer_Guide-Developer_Guide">
- <title>Developer Guide</title>
+ <title>Development Guide</title>
<subtitle>for use with JBoss Portal Platform 6, and its patch
releases.</subtitle>
<productname>JBoss Portal Platform</productname>
<productnumber>6</productnumber>
Modified:
epp/docs/JPP/trunk/Development_Guide/en-US/Javascript_Inter-application_Communication.xml
===================================================================
(Binary files differ)
Modified: epp/docs/JPP/trunk/Development_Guide/en-US/Portal_Lifecycle.xml
===================================================================
(Binary files differ)
Modified: epp/docs/JPP/trunk/Development_Guide/en-US/The_eXo_Kernel.xml
===================================================================
(Binary files differ)
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/GadgetRegister.java
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/GadgetRegister.java
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/GadgetRegister.java 2013-03-24
23:45:57 UTC (rev 9223)
@@ -0,0 +1,32 @@
+public class GadgetRegister implements ServletContextListener
+{
+ public void contextInitialized(ServletContextEvent event)
+ {
+ // Create a new post-init task
+ final PortalContainerPostInitTask task = new PortalContainerPostInitTask() {
+
+ public void execute(ServletContext context, PortalContainer portalContainer)
+ {
+ try
+ {
+ SourceStorage sourceStorage =
+ (SourceStorage)
portalContainer.getComponentInstanceOfType(SourceStorage.class);
+ ...
+ }
+ catch (RuntimeException e)
+ {
+ throw e;
+ }
+ catch (Exception e)
+ {
+ throw new RuntimeException("Initialization failed: ", e);
+ }
+ }
+ };
+
+ // Add post-init task for execution on all the portal containers
+ // that depend on the given ServletContext according to
+ // PortalContainerDefinitions (via Dependencies configuration)
+ PortalContainer.addInitTask(event.getServletContext(), task);
+ }
+}
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/MyFilter.java
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/MyFilter.java
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/MyFilter.java 2013-03-24 23:45:57
UTC (rev 9223)
@@ -0,0 +1,30 @@
+package org.example;
+
+import java.io.IOException;
+
+import javax.servlet.FilterChain;
+import javax.servlet.FilterConfig;
+import javax.servlet.ServletException;
+import javax.servlet.ServletRequest;
+import javax.servlet.ServletResponse;
+
+public class MyFilter implements javax.servlet.Filter {
+
+ public void doFilter(ServletRequest request, ServletResponse response,
+ FilterChain chain) throws IOException, ServletException
+ {
+ long beforeTime = System.currentTimeMillis();
+ chain.doFilter(request, response);
+ long afterTime = System.currentTimeMillis();
+ System.out.println("Time to execute the portlet request (in ms): " +
(afterTime - beforeTime));
+ }
+
+ public void init(FilterConfig config) throws ServletException
+ {
+ }
+
+ public void destroy()
+ {
+ }
+
+}
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default.xml
===================================================================
(Binary files differ)
Property changes on: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default1.xml
===================================================================
(Binary files differ)
Property changes on: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default1.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default10.java
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/default10.java
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/default10.java 2013-03-24 23:45:57
UTC (rev 9223)
@@ -0,0 +1,9 @@
+/**
+ * Use this method instead of HttpSessionListener.sessionCreated()
+ */
+protected void onSessionCreated(ExoContainer container, HttpSessionEvent event);
+
+/**
+ * Use this method instead of HttpSessionListener.sessionDestroyed()
+ */
+protected void onSessionDestroyed(ExoContainer container, HttpSessionEvent event);
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default11.java
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/default11.java
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/default11.java 2013-03-24 23:45:57
UTC (rev 9223)
@@ -0,0 +1,5 @@
+/**
+ * Method should return true if unified servlet context,
+ * and unified classloader should be made available
+ */
+protected boolean requirePortalEnvironment();
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default160.xml
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/default160.xml
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/default160.xml 2013-03-24 23:45:57
UTC (rev 9223)
@@ -0,0 +1,10 @@
+<servlet>
+ <servlet-name>GateInServlet</servlet-name>
+ <servlet-class>org.gatein.wci.api.GateInServlet</servlet-class>
+ <load-on-startup>0</load-on-startup>
+</servlet>
+
+<servlet-mapping>
+ <servlet-name>GateInServlet</servlet-name>
+ <url-pattern>/gateinservlet</url-pattern>
+</servlet-mapping>
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default161.xml
===================================================================
(Binary files differ)
Property changes on: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default161.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default2.xml
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/default2.xml
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/default2.xml 2013-03-24 23:45:57 UTC
(rev 9223)
@@ -0,0 +1,9 @@
+<configuration
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+
xsi:schemaLocation="http://www.exoplaform.org/xml/ns/kernel_1_2.xsd
+
http://www.exoplaform.org/xml/ns/kernel_1_2.xsd"
+
xmlns="http://www.exoplaform.org/xml/ns/kernel_1_2.xsd">
+ <!-- Comment #1 -->
+ <import>war:/conf/sample-ext/jcr/jcr-configuration.xml</import>
+ <import>war:/conf/sample-ext/portal/portal-configuration.xml</import>
+
+</configuration>
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default3.xml
===================================================================
(Binary files differ)
Property changes on: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default3.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default4.xml
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/default4.xml
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/default4.xml 2013-03-24 23:45:57 UTC
(rev 9223)
@@ -0,0 +1,10 @@
+<component>
+ <key>org.exoplatform.services.naming.InitialContextInitializer</key>
+ <type>org.exoplatform.commons.InitialContextInitializer2</type>
+ <init-params>
+ <properties-param>
+ <name>default-properties</name>
+ <description>Default initial context properties</description>
+ </properties-param>
+ </init-params>
+</component>
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default5.xml
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/default5.xml
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/default5.xml 2013-03-24 23:45:57 UTC
(rev 9223)
@@ -0,0 +1,25 @@
+<component>
+ <key>org.exoplatform.services.resources.ResourceBundleService</key>
+
<type>org.exoplatform.services.resources.impl.SimpleResourceBundleService</type>
+ <init-params>
+ <values-param>
+ <name>classpath.resources</name>
+ <description>The resources that start with the following package name
should be load from file system</description>
+ <value>locale.portlet</value>
+ </values-param>
+
+ <values-param>
+ <name>init.resources</name>
+ <description>Store the following resources into the db for the first
launch </description>
+ <value>locale.test.resources.test</value>
+ </values-param>
+
+ <values-param>
+ <name>portal.resource.names</name>
+ <description>The properties files of the portal , those file will be
merged
+ into one ResourceBundle properties </description>
+ <value>local.portal.portal</value>
+ <value>local.portal.custom</value>
+ </values-param>
+ </init-params>
+</component>
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default6.xml
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/default6.xml
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/default6.xml 2013-03-24 23:45:57 UTC
(rev 9223)
@@ -0,0 +1,28 @@
+<component>
+ <key>org.exoplatform.services.cache.CacheService</key>
+ <jmx-name>cache:type=CacheService</jmx-name>
+ <type>org.exoplatform.services.cache.impl.CacheServiceImpl</type>
+ <init-params>
+ <object-param>
+ <name>cache.config.default</name>
+ <description>The default cache configuration</description>
+ <object type="org.exoplatform.services.cache.ExoCacheConfig">
+ <field name="name">
+ <string>default</string>
+ </field>
+ <field name="maxSize">
+ <int>300</int>
+ </field>
+ <field name="liveTime">
+ <long>300</long>
+ </field>
+ <field name="distributed">
+ <boolean>false</boolean>
+ </field>
+ <field name="implementation">
+
<string>org.exoplatform.services.cache.concurrent.ConcurrentFIFOExoCache</string>
+ </field>
+ </object>
+ </object-param>
+ </init-params>
+</component>
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default7.xml
===================================================================
(Binary files differ)
Property changes on: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default7.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default8.xml
===================================================================
(Binary files differ)
Property changes on: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default8.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added: epp/docs/JPP/trunk/Development_Guide/en-US/extras/default9.java
===================================================================
--- epp/docs/JPP/trunk/Development_Guide/en-US/extras/default9.java
(rev 0)
+++ epp/docs/JPP/trunk/Development_Guide/en-US/extras/default9.java 2013-03-24 23:45:57
UTC (rev 9223)
@@ -0,0 +1,5 @@
+/**
+ * Use this method instead of Servlet.service()
+ */
+protected void onService(ExoContainer container, HttpServletRequest req,
+ HttpServletResponse res) throws ServletException, IOException;