[jboss-svn-commits] JBL Code SVN: r32515 - in labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk: src and 11 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Apr 12 07:56:43 EDT 2010


Author: lkrzyzanek
Date: 2010-04-12 07:56:42 -0400 (Mon, 12 Apr 2010)
New Revision: 32515

Added:
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/pom.xml
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/changes/
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/assembly/
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/assembly/assembly-plugin.xml
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/java/
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/java/org/
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/java/org/jboss/
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/java/org/jboss/labs/
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/java/org/jboss/labs/sbs/
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/java/org/jboss/labs/sbs/plugin/
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/java/org/jboss/labs/sbs/plugin/topextmembers/
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/java/org/jboss/labs/sbs/plugin/topextmembers/TopExtMembersWidget.java
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/plugin/
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/plugin/plugin.xml
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/resources/
   labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/resources/plugin_i18n.properties
Log:
Added initial version

Added: labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/pom.xml
===================================================================
--- labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/pom.xml	                        (rev 0)
+++ labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/pom.xml	2010-04-12 11:56:42 UTC (rev 32515)
@@ -0,0 +1,201 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.jboss.labs.sbs.plugin</groupId>
+  <artifactId>topextmembers</artifactId>
+  <name>SBS plugin: Top external members</name>
+  <description>Widget shows top external (non Red Hat) members</description>
+  <version>1.0.0-SNAPSHOT</version>
+
+  <parent>
+    <groupId>org.jboss.labs</groupId>
+    <artifactId>integration</artifactId>
+    <version>1.0-SNAPSHOT</version>
+    <relativePath>../../pom.xml</relativePath>
+  </parent>
+  <build>
+    <finalName>topextmembers-plugin</finalName>
+    <plugins>
+      <!-- For compilation-->
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>1.6</source>
+          <target>1.6</target>
+        </configuration>
+      </plugin>
+      <!-- Weave transactions into the plugin -->
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>aspectj-maven-plugin</artifactId>
+        <version>1.1</version>
+        <configuration>
+          <aspectLibraries>
+            <aspectLibrary>
+              <groupId>org.springframework</groupId>
+              <artifactId>spring-aspects</artifactId>
+            </aspectLibrary>
+          </aspectLibraries>
+          <source>1.6</source>
+        </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <goal>compile</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>assembly</id>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+            <configuration>
+              <appendAssemblyId>false</appendAssemblyId>
+              <descriptors>
+                <descriptor>${basedir}/src/main/assembly/assembly-plugin.xml</descriptor>
+              </descriptors>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <!--
+              Unpackages this SBS plugin. That way it can be used in
+              conjunction with the -DpluginDirs= property, which
+              bypasses the standard plugin installation (which happens
+              via the admin console), by pointing to exploded plugin jar
+              created by this.
+            -->
+            <id>explode-sbs-plugin</id>
+            <phase>package</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <configuration>
+              <tasks>
+                <mkdir dir="${basedir}/target/topextmembers" />
+                <unjar
+                  src="${basedir}/target/topextmembers-plugin.jar"
+                  dest="${basedir}/target/topextmembers" />
+              </tasks>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-source-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>attach-sources</id>
+            <phase>verify</phase>
+            <goals>
+              <goal>jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <!-- For unit testing -->
+      <plugin>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <excludes>
+            <exclude>**/selenium/*Test.java</exclude>
+          </excludes>
+        </configuration>
+      </plugin>
+
+    </plugins>
+  </build>
+  <dependencies>
+    <dependency>
+      <groupId>com.jivesoftware</groupId>
+      <artifactId>jive-sbs-employee</artifactId>
+      <version>${sbs.version}</version>
+      <type>jar</type>
+      <scope>provided</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>com.jivesoftware</groupId>
+      <artifactId>jive-sbs-employee-all</artifactId>
+      <version>${sbs.version}</version>
+      <type>pom</type>
+      <scope>provided</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>javax.servlet</groupId>
+      <artifactId>servlet-api</artifactId>
+      <version>2.3</version>
+      <type>jar</type>
+      <scope>provided</scope>
+    </dependency>
+    <!-- The following dependencies are for unit testing-->
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.4</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.objenesis</groupId>
+      <artifactId>objenesis</artifactId>
+      <version>1.0</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>cglib</groupId>
+      <artifactId>cglib</artifactId>
+      <version>2.1</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jmock</groupId>
+      <artifactId>jmock-junit4</artifactId>
+      <version>2.4.0</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <!--
+    This is where you set the Jive SBS version your plugin is compiled
+    against.
+  -->
+  <properties>
+    <sbs.version>4.0.5</sbs.version>
+  </properties>
+
+
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-changes-plugin</artifactId>
+        <reportSets>
+          <reportSet>
+            <reports>
+              <report>changes-report</report>
+            </reports>
+          </reportSet>
+        </reportSets>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>cobertura-maven-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </reporting>
+
+</project>


Property changes on: labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/pom.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/assembly/assembly-plugin.xml
===================================================================
--- labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/assembly/assembly-plugin.xml	                        (rev 0)
+++ labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/assembly/assembly-plugin.xml	2010-04-12 11:56:42 UTC (rev 32515)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly>
+    <id>plugin</id>
+    <formats>
+        <format>jar</format>
+    </formats>
+    <includeBaseDirectory>false</includeBaseDirectory>
+    <dependencySets>
+        <dependencySet>
+            <outputDirectory>lib</outputDirectory>
+            <useProjectArtifact>false</useProjectArtifact>
+            <scope>runtime</scope>
+        </dependencySet>
+    </dependencySets>
+    <fileSets>
+        <fileSet>
+            <directory>${project.build.directory}</directory>
+            <includes>
+                <include>classes/</include>
+            </includes>
+            <outputDirectory>/</outputDirectory>
+        </fileSet>
+        <fileSet>
+            <directory>src/main/plugin</directory>      
+            <outputDirectory>/</outputDirectory>
+            <excludes>
+                <exclude>resources/templates/</exclude>
+            </excludes>
+            <filtered>true</filtered>
+        </fileSet>
+        <fileSet>
+            <directory>src/main/plugin/resources/templates</directory>
+            <outputDirectory>/resources/templates</outputDirectory>
+        </fileSet>
+    </fileSets>
+</assembly>


Property changes on: labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/assembly/assembly-plugin.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/java/org/jboss/labs/sbs/plugin/topextmembers/TopExtMembersWidget.java
===================================================================
--- labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/java/org/jboss/labs/sbs/plugin/topextmembers/TopExtMembersWidget.java	                        (rev 0)
+++ labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/java/org/jboss/labs/sbs/plugin/topextmembers/TopExtMembersWidget.java	2010-04-12 11:56:42 UTC (rev 32515)
@@ -0,0 +1,52 @@
+/*
+ * JBoss Community http://jboss.org/
+ *
+ * Copyright (c) 2010 Red Hat Middleware, LLC. All rights reserved.
+ *
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT A WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License, v.2.1 along with this distribution; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301, USA.
+ *
+ * Red Hat Author(s): Libor Krzyzanek
+ */
+package org.jboss.labs.sbs.plugin.topextmembers;
+
+import com.jivesoftware.community.annotations.PropertyNames;
+import com.jivesoftware.community.widget.WidgetCategory;
+import com.jivesoftware.community.widget.WidgetCategoryMarker;
+import com.jivesoftware.community.widget.WidgetContext;
+import com.jivesoftware.community.widget.WidgetType;
+import com.jivesoftware.community.widget.WidgetTypeMarker;
+import com.jivesoftware.community.widget.impl.TopMembersWidget;
+import com.jivesoftware.community.widget.remote.Remotable;
+
+/**
+ * Top external members widget
+ * 
+ * @author <a href="mailto:lkrzyzan at redhat.com">Libor Krzyzanek</a>
+ */
+ at WidgetTypeMarker( { WidgetType.COMMUNITY, WidgetType.HOMEPAGE, WidgetType.PROJECT, WidgetType.SOCIALGROUP })
+ at WidgetCategoryMarker( { WidgetCategory.PEOPLE })
+ at PropertyNames( { "numResults", "containerType", "containerID" })
+ at Remotable
+public class TopExtMembersWidget extends TopMembersWidget {
+
+  public String getTitle(WidgetContext widgetContext) {
+    return getLocalizedString("widget.topextmembers.title", widgetContext);
+  }
+
+  public String getDescription(WidgetContext widgetContext) {
+    return getLocalizedString("widget.topextmembers.desc", widgetContext);
+  }
+
+}


Property changes on: labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/java/org/jboss/labs/sbs/plugin/topextmembers/TopExtMembersWidget.java
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/plugin/plugin.xml
===================================================================
--- labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/plugin/plugin.xml	                        (rev 0)
+++ labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/plugin/plugin.xml	2010-04-12 11:56:42 UTC (rev 32515)
@@ -0,0 +1,11 @@
+<plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:noNamespaceSchemaLocation="http://www.jivesoftware.com/schemas/clearspace/2_5/plugin.xsd">
+  <name>top-external-members</name>
+  <description>Top community (non Red Hat) members</description>
+  <author>JBoss Community</author>
+  <version>1.0.0</version>
+  <minServerVersion>4.0.0</minServerVersion>
+
+  <widget class="org.jboss.labs.sbs.plugin.topextmembers.TopExtMembersWidget" />
+
+</plugin>


Property changes on: labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/plugin/plugin.xml
___________________________________________________________________
Name: svn:mime-type
   + text/plain

Added: labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/resources/plugin_i18n.properties
===================================================================
--- labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/resources/plugin_i18n.properties	                        (rev 0)
+++ labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/resources/plugin_i18n.properties	2010-04-12 11:56:42 UTC (rev 32515)
@@ -0,0 +1,8 @@
+widget.topextmembers.title=Community recognition
+widget.topextmembers.desc=Top community (non Red Hat) members
+widget.topextmembers.empty=The top participants are currently being calculated or no one has contributed yet.
+widget.topextmembers.unauthorized.internal=You are not authorized to view the space.
+widget.topextmembers.unauthorized.external=You are not authorized to view the community.
+
+numResults=Number of Results
+containerID=Place
\ No newline at end of file


Property changes on: labs/jbosslabs/labs-3.0-build/integration/sbs-topextmembers/trunk/src/main/resources/plugin_i18n.properties
___________________________________________________________________
Name: svn:mime-type
   + text/plain



More information about the jboss-svn-commits mailing list