Author: chris.laprun(a)jboss.com
Date: 2009-11-10 09:59:32 -0500 (Tue, 10 Nov 2009)
New Revision: 550
Modified:
components/pc/trunk/api/src/main/java/org/gatein/pc/api/spi/PortalContext.java
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/spi/AbstractPortalContext.java
Log:
- GTNPC-12: Fixed PortalContext.VERSION, AbstractPortalContext.getInfo now returns
VERSION.toString.
Modified: components/pc/trunk/api/src/main/java/org/gatein/pc/api/spi/PortalContext.java
===================================================================
---
components/pc/trunk/api/src/main/java/org/gatein/pc/api/spi/PortalContext.java 2009-11-10
13:22:35 UTC (rev 549)
+++
components/pc/trunk/api/src/main/java/org/gatein/pc/api/spi/PortalContext.java 2009-11-10
14:59:32 UTC (rev 550)
@@ -22,8 +22,8 @@
******************************************************************************/
package org.gatein.pc.api.spi;
+import org.gatein.common.util.Version;
import org.gatein.pc.api.WindowState;
-import org.gatein.common.util.Version;
import java.util.Map;
import java.util.Set;
@@ -36,7 +36,7 @@
*/
public interface PortalContext
{
- public static final Version VERSION = new Version("JBoss Portlet Container",
2, 0, 8, new Version.Qualifier(Version.Qualifier.Prefix.SNAPSHOT),
"Community");
+ public static final Version VERSION = new Version("GateIn Portlet
Container", 2, 1, 0, new Version.Qualifier(Version.Qualifier.Prefix.SNAPSHOT),
"Community");
/**
* Return info about the portal.
Modified:
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/spi/AbstractPortalContext.java
===================================================================
---
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/spi/AbstractPortalContext.java 2009-11-10
13:22:35 UTC (rev 549)
+++
components/pc/trunk/portlet/src/main/java/org/gatein/pc/portlet/impl/spi/AbstractPortalContext.java 2009-11-10
14:59:32 UTC (rev 550)
@@ -22,14 +22,14 @@
******************************************************************************/
package org.gatein.pc.portlet.impl.spi;
+import org.gatein.common.util.Tools;
+import org.gatein.pc.api.Mode;
import org.gatein.pc.api.WindowState;
-import org.gatein.pc.api.Mode;
import org.gatein.pc.api.spi.PortalContext;
-import org.gatein.common.util.Tools;
+import java.util.Collections;
+import java.util.Map;
import java.util.Set;
-import java.util.Map;
-import java.util.Collections;
/**
* @author <a href="mailto:julien@jboss.org">Julien Viet</a>
@@ -87,7 +87,7 @@
public String getInfo()
{
- return "JBossPortal/1.0";
+ return VERSION.toString();
}
public Set<WindowState> getWindowStates()
Show replies by date