[jboss-svn-commits] JBL Code SVN: r6339 - in labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins: . productization

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Sep 21 08:08:16 EDT 2006


Author: wrzep
Date: 2006-09-21 08:08:12 -0400 (Thu, 21 Sep 2006)
New Revision: 6339

Added:
   labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/productization/
   labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/productization/DownloadsPlugin.java
   labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/productization/JEMSIntegrationPlugin.java
   labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/productization/PackagedForDownloadPlugin.java
Removed:
   labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/DownloadsPlugin.java
   labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/JEMSIntegrationPlugin.java
   labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/PackagedForDownloadPlugin.java
Log:
http://jira.jboss.org/jira/browse/JBLAB-756
Separate package for productization metrics.

Pawel


Deleted: labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/DownloadsPlugin.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/DownloadsPlugin.java	2006-09-21 11:57:19 UTC (rev 6338)
+++ labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/DownloadsPlugin.java	2006-09-21 12:08:12 UTC (rev 6339)
@@ -1,49 +0,0 @@
-
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY 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 along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.forge.status.plugins;
-
-import org.jboss.forge.common.projects.DownloadCounterTools;
-import org.jboss.shotoku.ContentManager;
-import org.jboss.shotoku.aop.Inject;
-
-/**
- * This Plugin returns sum of all downloads for given project id name.
- * @author Ryszard Kozmik
- *
- */
-public class DownloadsPlugin extends Plugin {
-
-	@Inject
-	ContentManager cm;
-	
-	public DownloadsPlugin() {
-		super();
-	}
-		
-	public long getPluginValue(String projectId) {
-		return DownloadCounterTools.
-				getOverallDownloadsForProject(projectId,portalName,cm);
-	}
-	
-}

Deleted: labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/JEMSIntegrationPlugin.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/JEMSIntegrationPlugin.java	2006-09-21 11:57:19 UTC (rev 6338)
+++ labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/JEMSIntegrationPlugin.java	2006-09-21 12:08:12 UTC (rev 6339)
@@ -1,64 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY 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 along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.forge.status.plugins;
-
-import java.util.Iterator;
-
-import org.jboss.forge.common.projects.permissions.NullPermissionsChecker;
-import org.jboss.portal.common.context.DelegateContext;
-
-/**
-* @author Pawel Wrzeszcz
-*/
-
-public class JEMSIntegrationPlugin extends Plugin {
-
-	@Override
-	public long getPluginValue(String projectId) {
-
-		//TODO temp workaround before we can use
-		//      List<String> org.jboss.forge.common.projects.test.Project.getJems()
-		DelegateContext projectContext =
-				projects.getProjectContext(
-									new NullPermissionsChecker(), projectId);
-		
-		Iterator it = projectContext.childIterator("jems");
-		
-		if (it == null) {
-			
-			return 0;
-		}
-		
-		int counter = 0;
-		
-		for (; it.hasNext(); ) {
-			
-			it.next();
-			counter++;
-		}
-		
-		return counter;
-	}
-	
-	
-}

Deleted: labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/PackagedForDownloadPlugin.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/PackagedForDownloadPlugin.java	2006-09-21 11:57:19 UTC (rev 6338)
+++ labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/PackagedForDownloadPlugin.java	2006-09-21 12:08:12 UTC (rev 6339)
@@ -1,47 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY 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 along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-
-package org.jboss.forge.status.plugins;
-
-import org.jboss.forge.common.projects.permissions.NullPermissionsChecker;
-import org.jboss.portal.common.context.DelegateContext;
-
-
-/**
-* @author Pawel Wrzeszcz
-*/
-
-public class PackagedForDownloadPlugin extends Plugin {
-
-	@Override
-	public long getPluginValue(String projectId) {
-		
-		DelegateContext ds =
-			projects.getDownloadsContext(new NullPermissionsChecker(),
-										projectId, "");
-		
-		return (ds == null ? 0 : 1);
-		
-	}
-	
-	
-}

Added: labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/productization/DownloadsPlugin.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/productization/DownloadsPlugin.java	2006-09-21 11:57:19 UTC (rev 6338)
+++ labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/productization/DownloadsPlugin.java	2006-09-21 12:08:12 UTC (rev 6339)
@@ -0,0 +1,50 @@
+
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.forge.status.plugins.productization;
+
+import org.jboss.forge.common.projects.DownloadCounterTools;
+import org.jboss.forge.status.plugins.Plugin;
+import org.jboss.shotoku.ContentManager;
+import org.jboss.shotoku.aop.Inject;
+
+/**
+ * This Plugin returns sum of all downloads for given project id name.
+ * @author Ryszard Kozmik
+ *
+ */
+public class DownloadsPlugin extends Plugin {
+
+	@Inject
+	ContentManager cm;
+	
+	public DownloadsPlugin() {
+		super();
+	}
+		
+	public long getPluginValue(String projectId) {
+		return DownloadCounterTools.
+				getOverallDownloadsForProject(projectId,portalName,cm);
+	}
+	
+}

Added: labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/productization/JEMSIntegrationPlugin.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/productization/JEMSIntegrationPlugin.java	2006-09-21 11:57:19 UTC (rev 6338)
+++ labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/productization/JEMSIntegrationPlugin.java	2006-09-21 12:08:12 UTC (rev 6339)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.forge.status.plugins.productization;
+
+import java.util.Iterator;
+
+import org.jboss.forge.common.projects.permissions.NullPermissionsChecker;
+import org.jboss.forge.status.plugins.Plugin;
+import org.jboss.portal.common.context.DelegateContext;
+
+/**
+* @author Pawel Wrzeszcz
+*/
+
+public class JEMSIntegrationPlugin extends Plugin {
+
+	@Override
+	public long getPluginValue(String projectId) {
+
+		//TODO temp workaround before we can use
+		//      List<String> org.jboss.forge.common.projects.test.Project.getJems()
+		DelegateContext projectContext =
+				projects.getProjectContext(
+									new NullPermissionsChecker(), projectId);
+		
+		Iterator it = projectContext.childIterator("jems");
+		
+		if (it == null) {
+			
+			return 0;
+		}
+		
+		int counter = 0;
+		
+		for (; it.hasNext(); ) {
+			
+			it.next();
+			counter++;
+		}
+		
+		return counter;
+	}
+	
+	
+}

Added: labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/productization/PackagedForDownloadPlugin.java
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/productization/PackagedForDownloadPlugin.java	2006-09-21 11:57:19 UTC (rev 6338)
+++ labs/jbosslabs/trunk/portal-extensions/forge-status/src/java/org/jboss/forge/status/plugins/productization/PackagedForDownloadPlugin.java	2006-09-21 12:08:12 UTC (rev 6339)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.forge.status.plugins.productization;
+
+import org.jboss.forge.common.projects.permissions.NullPermissionsChecker;
+import org.jboss.forge.status.plugins.Plugin;
+import org.jboss.portal.common.context.DelegateContext;
+
+
+/**
+* @author Pawel Wrzeszcz
+*/
+
+public class PackagedForDownloadPlugin extends Plugin {
+
+	@Override
+	public long getPluginValue(String projectId) {
+		
+		DelegateContext ds =
+			projects.getDownloadsContext(new NullPermissionsChecker(),
+										projectId, "");
+		
+		return (ds == null ? 0 : 1);
+		
+	}
+	
+	
+}




More information about the jboss-svn-commits mailing list