Revision: 58790
Author:   jhoffman
Date:     2017-03-02 22:09:00 +0100 (Thu, 02 Mar 2017)
Log Message:
-----------
Moved project from forge.onehippo.org/svn/ without history

Added Paths:
-----------
    attic/forge/pingpong-pa/README.txt
    attic/forge/pingpong-pa/pom.xml
    attic/forge/pingpong-pa/src/main/webapp/WEB-INF/jsp/
    attic/forge/pingpong-pa/src/main/webapp/WEB-INF/jsp/ppev-edit.jsp
    attic/forge/pingpong-pa/src/main/webapp/WEB-INF/jsp/ppev-view.jsp
    attic/forge/pingpong-pa/src/main/webapp/WEB-INF/portlet.xml
    attic/forge/pingpong-pa/src/main/webapp/WEB-INF/web.xml

Added: attic/forge/pingpong-pa/README.txt
===================================================================
--- attic/forge/pingpong-pa/README.txt                          (rev 0)
+++ attic/forge/pingpong-pa/README.txt  2017-03-02 21:09:00 UTC (rev 58790)
@@ -0,0 +1,32 @@
+Building and Deploying PingPong Portlet Application:
+
+1) Make sure to use Maven-2.0.9+ and Java 5+ installed
+
+2) Ensure to have setup and configured Maven Apache Jetspeed-2 plugin plugin 
group in your local Maven settings.xml:
+   
+   <?xml version="1.0" encoding="UTF-8"?>
+   <settings xmlns="http://maven.apache.org/POM/4.0.0";>
+     <pluginGroups>
+       <pluginGroup>org.apache.portals.jetspeed-2</pluginGroup>
+       ...
+     </pluginGroups>
+     ...
+   </settings>
+   
+   The user Maven settings.xml can be found at: ${user.home}/.m2/settings.xml 
(create one if it doesn't exist yet). 
+   
+   See also: http://portals.apache.org/jetspeed-2/buildguide/index.html
+   
+3) Install Apache Jetspeed-2.2 Enterprise portal locally, for instance using 
the demo installer:
+     http://portals.apache.org/jetspeed-2/download.html
+     
+4) Modify in jetspeed-mvn-pa-pom.xml (this folder) the value for property 
org.apache.jetspeed.server.home
+   to point it at the folder where you have your local Jetspeed Portal 
installed.
+   (you have to replace the *** Your Local Jetspeed-2.2 Portal installation 
folder *** text)
+   
+5) build and deploy the portlet application using:
+
+   $mvn jetspeed:mvn -Dtarget=deploy
+   
+   
+6) Add the PingPongEventPortlet several times to a Jetspeed Page and have fun 
:)


Property changes on: attic/forge/pingpong-pa/README.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: attic/forge/pingpong-pa/pom.xml
===================================================================
--- attic/forge/pingpong-pa/pom.xml                             (rev 0)
+++ attic/forge/pingpong-pa/pom.xml     2017-03-02 21:09:00 UTC (rev 58790)
@@ -0,0 +1,145 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2009 Hippo
+
+  Licensed under the Apache License, Version 2.0 (the  "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS"
+  BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+
+  <modelVersion>4.0.0</modelVersion>
+  <prerequisites>
+    <maven>2.0.9</maven>
+  </prerequisites>
+
+  <artifactId>pingpong-pa</artifactId>
+  <groupId>org.example</groupId>
+  <version>1.0-SNAPSHOT</version>
+  <packaging>war</packaging>
+  <name>Ping Pong Portlet Application</name>
+  <description>Ping Pong Portlet Application</description>
+
+  <properties>
+    
<org.apache.portals.jetspeed.version>2.2.0</org.apache.portals.jetspeed.version>
+    
<org.apache.portals.applications.apa-logging.version>1.0</org.apache.portals.applications.apa-logging.version>
+    
<org.apache.portals.bridges.common.version>1.0.4</org.apache.portals.bridges.common.version>
+    <servlet-api.version>2.4</servlet-api.version>
+    <portals.portlet2-api-spec.version>1.0</portals.portlet2-api-spec.version>
+    <jaxb.version>2.1</jaxb.version>
+    <javax.servlet.jstl.version>1.1.2</javax.servlet.jstl.version>
+    <taglibs-standard.version>1.1.2</taglibs-standard.version>
+  </properties>
+
+  <dependencies>
+
+    <dependency>
+      <groupId>org.apache.portals</groupId>
+      <artifactId>portlet-api_2.0_spec</artifactId>
+      <version>${portals.portlet2-api-spec.version}</version>
+      <scope>provided</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <version>${servlet-api.version}</version>
+      <scope>provided</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>javax.xml.bind</groupId>
+      <artifactId>jaxb-api</artifactId>
+      <version>${jaxb.version}</version>
+      <scope>provided</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>jstl</artifactId>
+      <version>${javax.servlet.jstl.version}</version>
+      <scope>runtime</scope>
+    </dependency>
+    <dependency>
+      <groupId>taglibs</groupId>
+      <artifactId>standard</artifactId>
+      <version>${taglibs-standard.version}</version>
+      <scope>runtime</scope>
+    </dependency>
+    
+    <dependency>
+      <artifactId>portals-bridges-common</artifactId>
+      <groupId>org.apache.portals.bridges</groupId>
+      <version>${org.apache.portals.bridges.common.version}</version>
+      <scope>provided</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.portals.jetspeed-2</groupId>
+      <artifactId>jetspeed-api</artifactId>
+      <version>${org.apache.portals.jetspeed.version}</version>
+      <scope>provided</scope>
+    </dependency>
+
+  </dependencies>
+
+  <build>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-compiler-plugin</artifactId>
+          <configuration>
+            <source>1.5</source>
+            <target>1.5</target>
+          </configuration>
+        </plugin>
+        <plugin>
+          <artifactId>maven-war-plugin</artifactId>
+          <configuration>
+            <warName>${pom.artifactId}</warName>
+          </configuration>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.portals.jetspeed-2</groupId>
+          <artifactId>jetspeed-mvn-maven-plugin</artifactId>
+          <version>${org.apache.portals.jetspeed.version}</version>
+          <configuration>
+            <targets combine.children="append">
+              <target>
+                <id>build</id>
+                <dir>.</dir>
+                <goals>clean,package</goals>
+              </target>
+              <target>
+                <id>deploy</id>
+                <name>pa</name>
+                <depends>build</depends>
+                <profiles>deploy</profiles>
+              </target>
+            </targets>
+          </configuration>
+        </plugin>
+      </plugins>
+    </pluginManagement>
+    <plugins>
+      <!--  ensure jetspeed:mvn plugin is installed automatically when 
executing for the first time -->
+      <plugin>
+        <groupId>org.apache.portals.jetspeed-2</groupId>
+        <artifactId>jetspeed-mvn-maven-plugin</artifactId>
+        <version>${org.apache.portals.jetspeed.version}</version>
+      </plugin>
+    </plugins>
+
+  </build>
+
+</project>


Property changes on: attic/forge/pingpong-pa/pom.xml
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: attic/forge/pingpong-pa/src/main/webapp/WEB-INF/jsp/ppev-edit.jsp
===================================================================
--- attic/forge/pingpong-pa/src/main/webapp/WEB-INF/jsp/ppev-edit.jsp           
                (rev 0)
+++ attic/forge/pingpong-pa/src/main/webapp/WEB-INF/jsp/ppev-edit.jsp   
2017-03-02 21:09:00 UTC (rev 58790)
@@ -0,0 +1,36 @@
+<%--
+  Copyright 2009 Hippo
+
+  Licensed under the Apache License, Version 2.0 (the  "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS"
+  BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ page language="java" session="true" %>
+<%@ taglib uri="http://java.sun.com/portlet"; prefix="portlet"%>
+<%@taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%>
+
+<%@ page import="pingpong.PingPongPayload"%>
+
+<portlet:defineObjects/>
+
+verbose: <c:out value="${requestScope.verbose}"/>
+
+<form action='<portlet:actionURL/>' method='POST'>
+  <c:choose>
+    <c:when test="${verbose}">
+      Verbose output: <input type="checkbox" name="verbose" checked 
value="true"/>
+    </c:when>
+    <c:otherwise>
+       Verbose output: <input type="checkbox" name="verbose" value="false"/>
+    </c:otherwise>
+  </c:choose>
+  <input type='submit' name='Save' value='save'/>
+</form>
\ No newline at end of file


Property changes on: 
attic/forge/pingpong-pa/src/main/webapp/WEB-INF/jsp/ppev-edit.jsp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: attic/forge/pingpong-pa/src/main/webapp/WEB-INF/jsp/ppev-view.jsp
===================================================================
--- attic/forge/pingpong-pa/src/main/webapp/WEB-INF/jsp/ppev-view.jsp           
                (rev 0)
+++ attic/forge/pingpong-pa/src/main/webapp/WEB-INF/jsp/ppev-view.jsp   
2017-03-02 21:09:00 UTC (rev 58790)
@@ -0,0 +1,69 @@
+<%--
+  Copyright 2009 Hippo
+
+  Licensed under the Apache License, Version 2.0 (the  "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS"
+  BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+--%>
+<%@ page language="java" session="true" %>
+<%@ taglib uri="http://java.sun.com/portlet"; prefix="portlet"%>
+<%@taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%>
+
+<%@ page import="pingpong.PingPongPayload"%>
+
+<portlet:defineObjects/>
+
+<c:if test='${not empty payloads}'>
+<table>
+<c:forEach items="${payloads}" var="payload">
+  <c:choose>
+    <c:when test="${payload.ping}">
+       <c:choose>
+         <c:when test="${renderRequest.windowID eq payload.pingerID}">
+           <tr>
+             <td>pinging ...</td>
+           </tr>
+         </c:when>
+         <c:otherwise>
+           <tr>
+             <td>receiving ping from <c:out value="${payload.pingerID}"/></td>
+           </tr>
+         </c:otherwise>
+       </c:choose>
+     </c:when>
+     <c:otherwise>
+       <c:choose>
+         <c:when test="${renderRequest.windowID eq payload.pingerID}">
+           <tr>
+             <td>
+               received pong from <c:out value="${payload.pongerID}"/>
+             </td>
+           </tr>
+         </c:when>
+         <c:otherwise>
+           <c:if test="${verbose}">
+             <tr>
+               <td>
+                 received pong from <c:out value="${payload.pongerID}"/> for 
ping from <c:out value="${payload.pingerID}"/>
+               </td>
+             </tr>
+           </c:if>
+         </c:otherwise>
+       </c:choose>
+     </c:otherwise>
+  </c:choose>
+</c:forEach>
+</table>
+</c:if>
+<form action='<portlet:actionURL/>' method='POST'>
+  <input type='submit' name='ping' value='ping'/>
+  <input type='submit' name='clear' value='clear'/>
+</form>
\ No newline at end of file


Property changes on: 
attic/forge/pingpong-pa/src/main/webapp/WEB-INF/jsp/ppev-view.jsp
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: attic/forge/pingpong-pa/src/main/webapp/WEB-INF/portlet.xml
===================================================================
--- attic/forge/pingpong-pa/src/main/webapp/WEB-INF/portlet.xml                 
        (rev 0)
+++ attic/forge/pingpong-pa/src/main/webapp/WEB-INF/portlet.xml 2017-03-02 
21:09:00 UTC (rev 58790)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2009 Hippo
+
+  Licensed under the Apache License, Version 2.0 (the  "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS"
+  BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"; 
version="2.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd 
http://hnsp.inf-bb.uni-jena.de/spec/JSR%202.0%20API/portlet-app_2_0.xsd";>
+
+  <portlet>
+    <portlet-name>PingPongEventPortlet</portlet-name>
+    <display-name>PingPong</display-name>
+    <portlet-class>pingpong.PingPongEventPortlet</portlet-class>
+
+    <supports>
+      <mime-type>text/html</mime-type>
+      <portlet-mode>VIEW</portlet-mode>
+      <portlet-mode>EDIT</portlet-mode>
+    </supports>
+
+    <portlet-preferences>
+      <preference>
+        <name>verbose</name>
+        <value>false</value>
+      </preference>
+    </portlet-preferences>
+
+
+    <supported-publishing-event>
+      <name>pingpong</name>
+    </supported-publishing-event>
+    <supported-processing-event>
+      <name>pingpong</name>
+    </supported-processing-event>
+
+    <supported-publishing-event>
+      <name>clear</name>
+    </supported-publishing-event>
+    <supported-processing-event>
+      <name>clear</name>
+    </supported-processing-event>
+
+    <portlet-info>
+      <title>Ping Pong Portlet</title>
+      <short-title>Ping Pong</short-title>
+      <keywords>ping, pong</keywords>
+    </portlet-info>
+
+  </portlet>
+
+  <event-definition>
+    <name>pingpong</name>
+    <value-type>pingpong.PingPongPayload</value-type>
+  </event-definition>
+
+  <event-definition>
+    <name>clear</name>
+  </event-definition>
+</portlet-app>


Property changes on: attic/forge/pingpong-pa/src/main/webapp/WEB-INF/portlet.xml
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: attic/forge/pingpong-pa/src/main/webapp/WEB-INF/web.xml
===================================================================
--- attic/forge/pingpong-pa/src/main/webapp/WEB-INF/web.xml                     
        (rev 0)
+++ attic/forge/pingpong-pa/src/main/webapp/WEB-INF/web.xml     2017-03-02 
21:09:00 UTC (rev 58790)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2009 Hippo
+
+  Licensed under the Apache License, Version 2.0 (the  "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS"
+  BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.4"
+       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
+  <display-name>PingPong Portlet Application</display-name>
+</web-app>


Property changes on: attic/forge/pingpong-pa/src/main/webapp/WEB-INF/web.xml
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to