gatein SVN: r2126 - portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application.
by do-not-reply@jboss.org
Author: mwringe
Date: 2010-03-10 15:59:22 -0500 (Wed, 10 Mar 2010)
New Revision: 2126
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletActionListener.java
Log:
GTNPORTAL-861: add check if the navSate is null or not before trying to convert it over to a parameter string. Fixes issue where portlet actions would always fails.
Modified: portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletActionListener.java
===================================================================
--- portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletActionListener.java 2010-03-10 20:50:36 UTC (rev 2125)
+++ portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletActionListener.java 2010-03-10 20:59:22 UTC (rev 2126)
@@ -638,7 +638,10 @@
//set render params
String navState = event.getRequestContext().getRequestParameter(ExoPortletInvocationContext.NAVIGATIONAL_STATE_PARAM_NAME);
- uiPortlet.setNavigationalState(ParametersStateString.create(navState));
+ if (navState != null)
+ {
+ uiPortlet.setNavigationalState(ParametersStateString.create(navState));
+ }
}
}
16 years, 1 month
gatein SVN: r2125 - portal/trunk.
by do-not-reply@jboss.org
Author: thomas.heute(a)jboss.com
Date: 2010-03-10 15:50:36 -0500 (Wed, 10 Mar 2010)
New Revision: 2125
Modified:
portal/trunk/pom.xml
Log:
Updating dependencies
Modified: portal/trunk/pom.xml
===================================================================
--- portal/trunk/pom.xml 2010-03-10 19:48:15 UTC (rev 2124)
+++ portal/trunk/pom.xml 2010-03-10 20:50:36 UTC (rev 2125)
@@ -31,7 +31,7 @@
<groupId>org.exoplatform.portal</groupId>
<artifactId>exo.portal.parent</artifactId>
- <version>3.0.0-CR02-SNAPSHOT</version>
+ <version>3.0.0-GA</version>
<packaging>pom</packaging>
<name>GateIn - Portal</name>
@@ -44,8 +44,8 @@
<org.jibx.version>1.2.1</org.jibx.version>
<org.shindig.version>1.0-r790473-Patch01</org.shindig.version>
<org.gatein.common.version>2.0.0-GA</org.gatein.common.version>
- <org.gatein.wci.version>2.0.0-CR02</org.gatein.wci.version>
- <org.gatein.pc.version>2.1.0-CR05</org.gatein.pc.version>
+ <org.gatein.wci.version>2.0.0-GA</org.gatein.wci.version>
+ <org.gatein.pc.version>2.1.0-GA</org.gatein.pc.version>
<org.picketlink.idm>1.1.0.GA</org.picketlink.idm>
<org.gatein.wsrp.version>1.0.0-Beta09</org.gatein.wsrp.version>
<org.gatein.mop.version>1.0.0-CR03</org.gatein.mop.version>
@@ -63,9 +63,6 @@
<!-- maven-enforcer-plugin -->
<jdk.min.version>1.6</jdk.min.version>
-
- <!-- maven-release-plugin -->
- <arguments>-Prelease,pkg-tomcat,pkg-jbossas -Dmaven.test.skip=true</arguments>
</properties>
<scm>
16 years, 1 month
gatein SVN: r2124 - components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-03-10 14:48:15 -0500 (Wed, 10 Mar 2010)
New Revision: 2124
Modified:
components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/PageImpl.java
Log:
removed unused stuff
Modified: components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/PageImpl.java
===================================================================
--- components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/PageImpl.java 2010-03-10 19:35:37 UTC (rev 2123)
+++ components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/PageImpl.java 2010-03-10 19:48:15 UTC (rev 2124)
@@ -66,12 +66,6 @@
}
};
- @ManyToOne(type = RelationshipType.PATH)
- @MappedBy("mop:template")
- public abstract PageImpl getPageTemplate();
-
- public abstract void setPageTemplate(PageImpl template);
-
@OneToMany(type = RelationshipType.PATH)
@RelatedMappedBy("mop:template")
public abstract Collection<NavigationImpl> getTemplatizedNavigations();
@@ -222,16 +216,6 @@
throw new UnsupportedOperationException();
}
- public void setTemplate(Page template)
- {
- setPageTemplate((PageImpl)template);
- }
-
- public Page getTemplate()
- {
- return getPageTemplate();
- }
-
private Object getCascadedPropertyValue(String propertyName)
{
Attributes attributes = getAttributes();
16 years, 1 month
gatein SVN: r2123 - in components/pc/trunk: api and 12 other directories.
by do-not-reply@jboss.org
Author: thomas.heute(a)jboss.com
Date: 2010-03-10 14:35:37 -0500 (Wed, 10 Mar 2010)
New Revision: 2123
Modified:
components/pc/trunk/api/pom.xml
components/pc/trunk/bridge/pom.xml
components/pc/trunk/controller/pom.xml
components/pc/trunk/docs/pom.xml
components/pc/trunk/docs/user-guide/pom.xml
components/pc/trunk/federation/pom.xml
components/pc/trunk/jsr168api/pom.xml
components/pc/trunk/management/pom.xml
components/pc/trunk/mc/pom.xml
components/pc/trunk/pom.xml
components/pc/trunk/portal/pom.xml
components/pc/trunk/portlet/pom.xml
components/pc/trunk/samples/pom.xml
components/pc/trunk/test/pom.xml
Log:
[maven-release-plugin] prepare for next development iteration
Modified: components/pc/trunk/api/pom.xml
===================================================================
--- components/pc/trunk/api/pom.xml 2010-03-10 19:35:09 UTC (rev 2122)
+++ components/pc/trunk/api/pom.xml 2010-03-10 19:35:37 UTC (rev 2123)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-GA</version>
+ <version>2.1.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.gatein.pc</groupId>
Modified: components/pc/trunk/bridge/pom.xml
===================================================================
--- components/pc/trunk/bridge/pom.xml 2010-03-10 19:35:09 UTC (rev 2122)
+++ components/pc/trunk/bridge/pom.xml 2010-03-10 19:35:37 UTC (rev 2123)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-GA</version>
+ <version>2.1.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-bridge</artifactId>
Modified: components/pc/trunk/controller/pom.xml
===================================================================
--- components/pc/trunk/controller/pom.xml 2010-03-10 19:35:09 UTC (rev 2122)
+++ components/pc/trunk/controller/pom.xml 2010-03-10 19:35:37 UTC (rev 2123)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-GA</version>
+ <version>2.1.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-controller</artifactId>
Modified: components/pc/trunk/docs/pom.xml
===================================================================
--- components/pc/trunk/docs/pom.xml 2010-03-10 19:35:09 UTC (rev 2122)
+++ components/pc/trunk/docs/pom.xml 2010-03-10 19:35:37 UTC (rev 2123)
@@ -3,7 +3,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-GA</version>
+ <version>2.1.1-GA-SNAPSHOT</version>
</parent>
<artifactId>docs-aggregator</artifactId>
<packaging>pom</packaging>
Modified: components/pc/trunk/docs/user-guide/pom.xml
===================================================================
--- components/pc/trunk/docs/user-guide/pom.xml 2010-03-10 19:35:09 UTC (rev 2122)
+++ components/pc/trunk/docs/user-guide/pom.xml 2010-03-10 19:35:37 UTC (rev 2123)
@@ -9,7 +9,7 @@
</parent>
<groupId>org.gatein.pc</groupId>
<artifactId>user-guide-${translation}</artifactId>
- <version>2.1.0-GA</version>
+ <version>2.1.1-GA-SNAPSHOT</version>
<packaging>jdocbook</packaging>
<name>GateIn - Portlet Container (User Guide ${translation})</name>
@@ -64,10 +64,4 @@
</releases>
</pluginRepository>
</pluginRepositories>
-
- <scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/tools/maven/doc-parent/tags...</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/tools/maven/doc-parent/tags/2....</developerConnection>
- <url>http://fisheye.jboss.org/browse/gatein/tools/maven/doc-parent/tags/2.1.0-GA</url>
- </scm>
</project>
Modified: components/pc/trunk/federation/pom.xml
===================================================================
--- components/pc/trunk/federation/pom.xml 2010-03-10 19:35:09 UTC (rev 2122)
+++ components/pc/trunk/federation/pom.xml 2010-03-10 19:35:37 UTC (rev 2123)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-GA</version>
+ <version>2.1.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-federation</artifactId>
Modified: components/pc/trunk/jsr168api/pom.xml
===================================================================
--- components/pc/trunk/jsr168api/pom.xml 2010-03-10 19:35:09 UTC (rev 2122)
+++ components/pc/trunk/jsr168api/pom.xml 2010-03-10 19:35:37 UTC (rev 2123)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-GA</version>
+ <version>2.1.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-jsr168api</artifactId>
Modified: components/pc/trunk/management/pom.xml
===================================================================
--- components/pc/trunk/management/pom.xml 2010-03-10 19:35:09 UTC (rev 2122)
+++ components/pc/trunk/management/pom.xml 2010-03-10 19:35:37 UTC (rev 2123)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-GA</version>
+ <version>2.1.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-management</artifactId>
Modified: components/pc/trunk/mc/pom.xml
===================================================================
--- components/pc/trunk/mc/pom.xml 2010-03-10 19:35:09 UTC (rev 2122)
+++ components/pc/trunk/mc/pom.xml 2010-03-10 19:35:37 UTC (rev 2123)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-GA</version>
+ <version>2.1.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-mc</artifactId>
Modified: components/pc/trunk/pom.xml
===================================================================
--- components/pc/trunk/pom.xml 2010-03-10 19:35:09 UTC (rev 2122)
+++ components/pc/trunk/pom.xml 2010-03-10 19:35:37 UTC (rev 2123)
@@ -6,7 +6,7 @@
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-GA</version>
+ <version>2.1.1-GA-SNAPSHOT</version>
<packaging>pom</packaging>
<parent>
@@ -16,9 +16,9 @@
</parent>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/components/pc/tags/2.1.0-GA</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/components/pc/tags/2.1.0-GA</developerConnection>
- <url>http://fisheye.jboss.org/browse/gatein/components/pc/tags/2.1.0-GA</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/components/pc/trunk/</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/components/pc/trunk/</developerConnection>
+ <url>http://fisheye.jboss.org/browse/gatein/components/pc/trunk/</url>
</scm>
<properties>
Modified: components/pc/trunk/portal/pom.xml
===================================================================
--- components/pc/trunk/portal/pom.xml 2010-03-10 19:35:09 UTC (rev 2122)
+++ components/pc/trunk/portal/pom.xml 2010-03-10 19:35:37 UTC (rev 2123)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-GA</version>
+ <version>2.1.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-portal</artifactId>
Modified: components/pc/trunk/portlet/pom.xml
===================================================================
--- components/pc/trunk/portlet/pom.xml 2010-03-10 19:35:09 UTC (rev 2122)
+++ components/pc/trunk/portlet/pom.xml 2010-03-10 19:35:37 UTC (rev 2123)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-GA</version>
+ <version>2.1.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-portlet</artifactId>
Modified: components/pc/trunk/samples/pom.xml
===================================================================
--- components/pc/trunk/samples/pom.xml 2010-03-10 19:35:09 UTC (rev 2122)
+++ components/pc/trunk/samples/pom.xml 2010-03-10 19:35:37 UTC (rev 2123)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-GA</version>
+ <version>2.1.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-samples</artifactId>
Modified: components/pc/trunk/test/pom.xml
===================================================================
--- components/pc/trunk/test/pom.xml 2010-03-10 19:35:09 UTC (rev 2122)
+++ components/pc/trunk/test/pom.xml 2010-03-10 19:35:37 UTC (rev 2123)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-GA</version>
+ <version>2.1.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-test</artifactId>
16 years, 1 month
gatein SVN: r2122 - components/pc/tags.
by do-not-reply@jboss.org
Author: thomas.heute(a)jboss.com
Date: 2010-03-10 14:35:09 -0500 (Wed, 10 Mar 2010)
New Revision: 2122
Added:
components/pc/tags/2.1.0-GA/
Log:
[maven-scm] copy for tag 2.1.0-GA
Copied: components/pc/tags/2.1.0-GA (from rev 2121, components/pc/trunk)
16 years, 1 month
gatein SVN: r2121 - in components/pc/trunk: api and 12 other directories.
by do-not-reply@jboss.org
Author: thomas.heute(a)jboss.com
Date: 2010-03-10 14:34:45 -0500 (Wed, 10 Mar 2010)
New Revision: 2121
Modified:
components/pc/trunk/api/pom.xml
components/pc/trunk/bridge/pom.xml
components/pc/trunk/controller/pom.xml
components/pc/trunk/docs/pom.xml
components/pc/trunk/docs/user-guide/pom.xml
components/pc/trunk/federation/pom.xml
components/pc/trunk/jsr168api/pom.xml
components/pc/trunk/management/pom.xml
components/pc/trunk/mc/pom.xml
components/pc/trunk/pom.xml
components/pc/trunk/portal/pom.xml
components/pc/trunk/portlet/pom.xml
components/pc/trunk/samples/pom.xml
components/pc/trunk/test/pom.xml
Log:
[maven-release-plugin] prepare release 2.1.0-GA
Modified: components/pc/trunk/api/pom.xml
===================================================================
--- components/pc/trunk/api/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
+++ components/pc/trunk/api/pom.xml 2010-03-10 19:34:45 UTC (rev 2121)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-CR06-SNAPSHOT</version>
+ <version>2.1.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.gatein.pc</groupId>
Modified: components/pc/trunk/bridge/pom.xml
===================================================================
--- components/pc/trunk/bridge/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
+++ components/pc/trunk/bridge/pom.xml 2010-03-10 19:34:45 UTC (rev 2121)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-CR06-SNAPSHOT</version>
+ <version>2.1.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-bridge</artifactId>
Modified: components/pc/trunk/controller/pom.xml
===================================================================
--- components/pc/trunk/controller/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
+++ components/pc/trunk/controller/pom.xml 2010-03-10 19:34:45 UTC (rev 2121)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-CR06-SNAPSHOT</version>
+ <version>2.1.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-controller</artifactId>
Modified: components/pc/trunk/docs/pom.xml
===================================================================
--- components/pc/trunk/docs/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
+++ components/pc/trunk/docs/pom.xml 2010-03-10 19:34:45 UTC (rev 2121)
@@ -3,7 +3,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-CR06-SNAPSHOT</version>
+ <version>2.1.0-GA</version>
</parent>
<artifactId>docs-aggregator</artifactId>
<packaging>pom</packaging>
Modified: components/pc/trunk/docs/user-guide/pom.xml
===================================================================
--- components/pc/trunk/docs/user-guide/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
+++ components/pc/trunk/docs/user-guide/pom.xml 2010-03-10 19:34:45 UTC (rev 2121)
@@ -9,7 +9,7 @@
</parent>
<groupId>org.gatein.pc</groupId>
<artifactId>user-guide-${translation}</artifactId>
- <version>2.1.0-CR06-SNAPSHOT</version>
+ <version>2.1.0-GA</version>
<packaging>jdocbook</packaging>
<name>GateIn - Portlet Container (User Guide ${translation})</name>
@@ -64,4 +64,10 @@
</releases>
</pluginRepository>
</pluginRepositories>
+
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/tools/maven/doc-parent/tags...</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/tools/maven/doc-parent/tags/2....</developerConnection>
+ <url>http://fisheye.jboss.org/browse/gatein/tools/maven/doc-parent/tags/2.1.0-GA</url>
+ </scm>
</project>
Modified: components/pc/trunk/federation/pom.xml
===================================================================
--- components/pc/trunk/federation/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
+++ components/pc/trunk/federation/pom.xml 2010-03-10 19:34:45 UTC (rev 2121)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-CR06-SNAPSHOT</version>
+ <version>2.1.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-federation</artifactId>
Modified: components/pc/trunk/jsr168api/pom.xml
===================================================================
--- components/pc/trunk/jsr168api/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
+++ components/pc/trunk/jsr168api/pom.xml 2010-03-10 19:34:45 UTC (rev 2121)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-CR06-SNAPSHOT</version>
+ <version>2.1.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-jsr168api</artifactId>
Modified: components/pc/trunk/management/pom.xml
===================================================================
--- components/pc/trunk/management/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
+++ components/pc/trunk/management/pom.xml 2010-03-10 19:34:45 UTC (rev 2121)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-CR06-SNAPSHOT</version>
+ <version>2.1.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-management</artifactId>
Modified: components/pc/trunk/mc/pom.xml
===================================================================
--- components/pc/trunk/mc/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
+++ components/pc/trunk/mc/pom.xml 2010-03-10 19:34:45 UTC (rev 2121)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-CR06-SNAPSHOT</version>
+ <version>2.1.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-mc</artifactId>
Modified: components/pc/trunk/pom.xml
===================================================================
--- components/pc/trunk/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
+++ components/pc/trunk/pom.xml 2010-03-10 19:34:45 UTC (rev 2121)
@@ -6,7 +6,7 @@
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-CR06-SNAPSHOT</version>
+ <version>2.1.0-GA</version>
<packaging>pom</packaging>
<parent>
@@ -16,9 +16,9 @@
</parent>
<scm>
- <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/components/pc/trunk/</connection>
- <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/components/pc/trunk/</developerConnection>
- <url>http://fisheye.jboss.org/browse/gatein/components/pc/trunk/</url>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/gatein/components/pc/tags/2.1.0-GA</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/gatein/components/pc/tags/2.1.0-GA</developerConnection>
+ <url>http://fisheye.jboss.org/browse/gatein/components/pc/tags/2.1.0-GA</url>
</scm>
<properties>
Modified: components/pc/trunk/portal/pom.xml
===================================================================
--- components/pc/trunk/portal/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
+++ components/pc/trunk/portal/pom.xml 2010-03-10 19:34:45 UTC (rev 2121)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-CR06-SNAPSHOT</version>
+ <version>2.1.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-portal</artifactId>
Modified: components/pc/trunk/portlet/pom.xml
===================================================================
--- components/pc/trunk/portlet/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
+++ components/pc/trunk/portlet/pom.xml 2010-03-10 19:34:45 UTC (rev 2121)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-CR06-SNAPSHOT</version>
+ <version>2.1.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-portlet</artifactId>
Modified: components/pc/trunk/samples/pom.xml
===================================================================
--- components/pc/trunk/samples/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
+++ components/pc/trunk/samples/pom.xml 2010-03-10 19:34:45 UTC (rev 2121)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-CR06-SNAPSHOT</version>
+ <version>2.1.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-samples</artifactId>
Modified: components/pc/trunk/test/pom.xml
===================================================================
--- components/pc/trunk/test/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
+++ components/pc/trunk/test/pom.xml 2010-03-10 19:34:45 UTC (rev 2121)
@@ -2,7 +2,7 @@
<parent>
<groupId>org.gatein.pc</groupId>
<artifactId>pc-parent</artifactId>
- <version>2.1.0-CR06-SNAPSHOT</version>
+ <version>2.1.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>pc-test</artifactId>
16 years, 1 month
gatein SVN: r2120 - in components/pc/trunk: distrib and 1 other directory.
by do-not-reply@jboss.org
Author: thomas.heute(a)jboss.com
Date: 2010-03-10 14:07:55 -0500 (Wed, 10 Mar 2010)
New Revision: 2120
Modified:
components/pc/trunk/distrib/distrib.xml
components/pc/trunk/pom.xml
Log:
Preparing for GA
Updated dependencies
Modified: components/pc/trunk/distrib/distrib.xml
===================================================================
--- components/pc/trunk/distrib/distrib.xml 2010-03-10 19:07:25 UTC (rev 2119)
+++ components/pc/trunk/distrib/distrib.xml 2010-03-10 19:07:55 UTC (rev 2120)
@@ -2,9 +2,9 @@
<property name="source.dir" value="../"/>
<property name="src.docs.dir" value="${source.dir}/docs"/>
- <property name="pc.release.version" value="2.1.0-CR03-SNAPSHOT"/>
- <property name="demo.release.version" value="2.1.0-CR03-SNAPSHOT"/>
- <property name="maven.version" value="2.1.0-CR03-SNAPSHOT"/>
+ <property name="pc.release.version" value="2.1.0-GA"/>
+ <property name="demo.release.version" value="2.1.0-GA"/>
+ <property name="maven.version" value="2.1.0-GA"/>
<!-- -->
<property name="pc.release.name" value="gatein-portletcontainer-${pc.release.version}"/>
Modified: components/pc/trunk/pom.xml
===================================================================
--- components/pc/trunk/pom.xml 2010-03-10 19:07:25 UTC (rev 2119)
+++ components/pc/trunk/pom.xml 2010-03-10 19:07:55 UTC (rev 2120)
@@ -12,7 +12,7 @@
<parent>
<groupId>org.gatein</groupId>
<artifactId>gatein-parent</artifactId>
- <version>1.0.0-Beta04</version>
+ <version>1.0.0-GA</version>
</parent>
<scm>
@@ -22,8 +22,8 @@
</scm>
<properties>
- <version.gatein.common>2.0.0-CR02</version.gatein.common>
- <version.gatein.wci>2.0.0-CR01</version.gatein.wci>
+ <version.gatein.common>2.0.0-GA</version.gatein.common>
+ <version.gatein.wci>2.0.0-GA</version.gatein.wci>
<version.apache.portals.bridges>1.0.4</version.apache.portals.bridges>
<version.apache.taglibs>1.1.2</version.apache.taglibs>
<version.apache.log4j>1.2.14</version.apache.log4j>
@@ -41,7 +41,7 @@
<dependency>
<groupId>org.gatein</groupId>
<artifactId>gatein-dep</artifactId>
- <version>1.0.0-Beta03</version>
+ <version>1.0.0-GA</version>
<type>pom</type>
<scope>import</scope>
</dependency>
16 years, 1 month
gatein SVN: r2119 - in components/mop/trunk/core/src: main/resources/conf and 1 other directories.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-03-10 14:07:25 -0500 (Wed, 10 Mar 2010)
New Revision: 2119
Modified:
components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/TemplatizedImpl.java
components/mop/trunk/core/src/main/resources/conf/mop-nodetypes.xml
components/mop/trunk/core/src/test/resources/conf/configuration.xml
Log:
actually simply doing it that way
Modified: components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/TemplatizedImpl.java
===================================================================
--- components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/TemplatizedImpl.java 2010-03-10 17:40:17 UTC (rev 2118)
+++ components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/TemplatizedImpl.java 2010-03-10 19:07:25 UTC (rev 2119)
@@ -52,7 +52,7 @@
return getPageTemplate();
}
- @Property(name = "scope:template")
+ @Property(name = "mop:templatescope")
public abstract Scope getScope();
public abstract void setScope(Scope scope);
Modified: components/mop/trunk/core/src/main/resources/conf/mop-nodetypes.xml
===================================================================
--- components/mop/trunk/core/src/main/resources/conf/mop-nodetypes.xml 2010-03-10 17:40:17 UTC (rev 2118)
+++ components/mop/trunk/core/src/main/resources/conf/mop-nodetypes.xml 2010-03-10 19:07:25 UTC (rev 2119)
@@ -207,7 +207,7 @@
<propertyDefinition name="mop:template" requiredType="Path" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false">
<valueConstraints/>
</propertyDefinition>
- <propertyDefinition name="scope:template" requiredType="String" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false">
+ <propertyDefinition name="mop:templatescope" requiredType="String" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false">
<valueConstraints/>
</propertyDefinition>
</propertyDefinitions>
Modified: components/mop/trunk/core/src/test/resources/conf/configuration.xml
===================================================================
--- components/mop/trunk/core/src/test/resources/conf/configuration.xml 2010-03-10 17:40:17 UTC (rev 2118)
+++ components/mop/trunk/core/src/test/resources/conf/configuration.xml 2010-03-10 19:07:25 UTC (rev 2119)
@@ -34,7 +34,6 @@
<properties-param>
<name>namespaces</name>
<property name="mop" value="http://www.gatein.org/jcr/mop/1.0/"/>
- <property name="scope" value="http://www.gatein.org/jcr/scope/1.0/"/>
</properties-param>
</init-params>
</component-plugin>
16 years, 1 month
gatein SVN: r2118 - components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-03-10 12:40:17 -0500 (Wed, 10 Mar 2010)
New Revision: 2118
Modified:
components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Templatized.java
Log:
javadoc
Modified: components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Templatized.java
===================================================================
--- components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Templatized.java 2010-03-10 17:37:13 UTC (rev 2117)
+++ components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Templatized.java 2010-03-10 17:40:17 UTC (rev 2118)
@@ -21,6 +21,8 @@
import org.gatein.mop.api.Scope;
/**
+ * The templatized aspect defined by a related template and a scope that defines the template scope.
+ *
* @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a>
* @version $Revision$
*/
@@ -41,8 +43,18 @@
*/
void setTemplate(Page template);
+ /**
+ * Returns the scope of the related template.
+ *
+ * @return the template scope
+ */
Scope getScope();
+ /**
+ * Set the scope of the related template.
+ *
+ * @param scope the scope
+ */
void setScope(Scope scope);
}
16 years, 1 month
gatein SVN: r2117 - in components/mop/trunk: api/src/main/java/org/gatein/mop/api/workspace and 6 other directories.
by do-not-reply@jboss.org
Author: julien_viet
Date: 2010-03-10 12:37:13 -0500 (Wed, 10 Mar 2010)
New Revision: 2117
Added:
components/mop/trunk/api/src/main/java/org/gatein/mop/api/Scope.java
components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/TemplatizedImpl.java
Removed:
components/mop/trunk/api/src/main/java/org/gatein/mop/api/composer/
components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/TemplatizedObject.java
components/mop/trunk/core/src/test/java/org/gatein/mop/core/api/composer/
Modified:
components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Navigation.java
components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Page.java
components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Templatized.java
components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/NavigationImpl.java
components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/PageImpl.java
components/mop/trunk/core/src/main/resources/conf/mop-nodetypes.xml
components/mop/trunk/core/src/test/java/org/gatein/mop/core/api/workspace/POMTestCase.java
components/mop/trunk/core/src/test/java/org/gatein/mop/core/api/workspace/WorkspaceTestCase.java
components/mop/trunk/core/src/test/java/org/gatein/mop/core/support/TestMOPService.java
components/mop/trunk/core/src/test/resources/conf/configuration.xml
Log:
had to rework a bit templatization
Added: components/mop/trunk/api/src/main/java/org/gatein/mop/api/Scope.java
===================================================================
--- components/mop/trunk/api/src/main/java/org/gatein/mop/api/Scope.java (rev 0)
+++ components/mop/trunk/api/src/main/java/org/gatein/mop/api/Scope.java 2010-03-10 17:37:13 UTC (rev 2117)
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2010 eXo Platform SAS.
+ *
+ * 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.gatein.mop.api;
+
+/**
+ * A generic notion of scope.
+ *
+ * @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a>
+ * @version $Revision$
+ */
+public enum Scope
+{
+
+ INHERITED, LOCAL
+
+}
Modified: components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Navigation.java
===================================================================
--- components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Navigation.java 2010-03-10 16:57:26 UTC (rev 2116)
+++ components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Navigation.java 2010-03-10 17:37:13 UTC (rev 2117)
@@ -31,7 +31,7 @@
* @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a>
* @version $Revision$
*/
-public interface Navigation extends TemplatizedObject
+public interface Navigation extends WorkspaceObject
{
/**
@@ -108,4 +108,11 @@
* @return the link object
*/
<L extends Link> L linkTo(ObjectType<L> linkType);
+
+ /**
+ * Returns the templatized aspect of this navigation when it exists.
+ *
+ * @return the templatized
+ */
+ Templatized getTemplatized();
}
Modified: components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Page.java
===================================================================
--- components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Page.java 2010-03-10 16:57:26 UTC (rev 2116)
+++ components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Page.java 2010-03-10 17:37:13 UTC (rev 2117)
@@ -32,7 +32,7 @@
* @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a>
* @version $Revision$
*/
-public interface Page extends TemplatizedObject
+public interface Page extends WorkspaceObject
{
/**
@@ -118,13 +118,22 @@
/**
* Returns the templatized objects for this page.
*
- * @param templatizedType the type of templatized
+ * @param type the type of templatized
* @param <T> the templatized workspace object type parameter
* @return the collection of templatized objects
*/
- <T extends TemplatizedObject> Collection<? extends T> getTemplatizedObjects(ObjectType<T> templatizedType);
+ <T extends WorkspaceObject> Collection<? extends T> getTemplatizedObjects(ObjectType<T> type);
/**
+ * Templatize the provided object.
+ *
+ * @param object the object to templatize
+ * @return the templatized aspect of the object
+ * @throws IllegalArgumentException if the object cannot be templatized for a particular reason
+ */
+ Templatized templatize(WorkspaceObject object) throws IllegalArgumentException;
+
+ /**
* Returns the customization context of this object;
*
* @return the customization context
Modified: components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Templatized.java
===================================================================
--- components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Templatized.java 2010-03-10 16:57:26 UTC (rev 2116)
+++ components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/Templatized.java 2010-03-10 17:37:13 UTC (rev 2117)
@@ -18,6 +18,8 @@
*/
package org.gatein.mop.api.workspace;
+import org.gatein.mop.api.Scope;
+
/**
* @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a>
* @version $Revision$
@@ -39,4 +41,8 @@
*/
void setTemplate(Page template);
+ Scope getScope();
+
+ void setScope(Scope scope);
+
}
Deleted: components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/TemplatizedObject.java
===================================================================
--- components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/TemplatizedObject.java 2010-03-10 16:57:26 UTC (rev 2116)
+++ components/mop/trunk/api/src/main/java/org/gatein/mop/api/workspace/TemplatizedObject.java 2010-03-10 17:37:13 UTC (rev 2117)
@@ -1,29 +0,0 @@
-/**
- * Copyright (C) 2009 eXo Platform SAS.
- *
- * 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.gatein.mop.api.workspace;
-
-/**
- * A workspace object that can use a template.
- *
- * @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a>
- * @version $Revision$
- */
-public interface TemplatizedObject extends WorkspaceObject, Templatized
-{
-}
Modified: components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/NavigationImpl.java
===================================================================
--- components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/NavigationImpl.java 2010-03-10 16:57:26 UTC (rev 2116)
+++ components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/NavigationImpl.java 2010-03-10 17:37:13 UTC (rev 2117)
@@ -27,7 +27,6 @@
import org.chromattic.api.annotations.RelatedMappedBy;
import org.chromattic.api.RelationshipType;
import org.gatein.mop.api.workspace.Navigation;
-import org.gatein.mop.api.workspace.Page;
import org.gatein.mop.api.workspace.link.Link;
import org.gatein.mop.api.workspace.ObjectType;
import org.gatein.mop.api.workspace.Site;
@@ -69,30 +68,19 @@
@Create
public abstract PageLinkImpl createPageLink();
- @ManyToOne(type = RelationshipType.PATH)
- @MappedBy("mop:template")
- public abstract PageImpl getPageTemplate();
-
- public abstract void setPageTemplate(PageImpl template);
-
@Destroy
public abstract void destroy();
+ @OneToOne(type = RelationshipType.EMBEDDED)
+ public abstract TemplatizedImpl getTemplatized();
+
+ public abstract void setTemplatized(TemplatizedImpl templatized);
+
public ObjectType<? extends Navigation> getObjectType()
{
return ObjectType.NAVIGATION;
}
- public Page getTemplate()
- {
- return getPageTemplate();
- }
-
- public void setTemplate(Page template)
- {
- setPageTemplate((PageImpl)template);
- }
-
public Navigation getParent()
{
NavigationContainer parent = getParentContainer();
Modified: components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/PageImpl.java
===================================================================
--- components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/PageImpl.java 2010-03-10 16:57:26 UTC (rev 2116)
+++ components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/PageImpl.java 2010-03-10 17:37:13 UTC (rev 2117)
@@ -29,8 +29,8 @@
import org.gatein.mop.api.workspace.Page;
import org.gatein.mop.api.workspace.ObjectType;
import org.gatein.mop.api.workspace.Navigation;
+import org.gatein.mop.api.workspace.Templatized;
import org.gatein.mop.api.workspace.WorkspaceObject;
-import org.gatein.mop.api.workspace.TemplatizedObject;
import org.gatein.mop.api.workspace.link.PageLink;
import org.gatein.mop.api.Attributes;
import org.gatein.mop.core.util.AbstractAttributes;
@@ -107,9 +107,35 @@
// *******************************************************************************************************************
- public <T extends TemplatizedObject> Collection<? extends T> getTemplatizedObjects(ObjectType<T> templatizedType)
+ public Templatized templatize(WorkspaceObject object)
+ { TemplatizedImpl templatized;
+ if (object instanceof NavigationImpl)
+ {
+ NavigationImpl nav = (NavigationImpl)object;
+ templatized = nav.getTemplatized();
+ if (templatized != null)
+ {
+ throw new IllegalArgumentException("The object is already templatized");
+ }
+ }
+ else
+ {
+ throw new UnsupportedOperationException();
+ }
+
+ //
+ templatized = object.adapt(TemplatizedImpl.class);
+
+ //
+ templatized.setTemplate(this);
+
+ //
+ return templatized;
+ }
+
+ public <T extends WorkspaceObject> Collection<? extends T> getTemplatizedObjects(ObjectType<T> type)
{
- if (Page.class.equals(templatizedType.getJavaType()))
+ if (Page.class.equals(type.getJavaType()))
{
ArrayList bilto = new ArrayList();
for (Page page : getTemplatizedPages())
@@ -118,7 +144,7 @@
}
return bilto;
}
- else if (Navigation.class.isAssignableFrom(templatizedType.getJavaType()))
+ else if (Navigation.class.isAssignableFrom(type.getJavaType()))
{
ArrayList bilto = new ArrayList();
for (Navigation page : getTemplatizedNavigations())
Added: components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/TemplatizedImpl.java
===================================================================
--- components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/TemplatizedImpl.java (rev 0)
+++ components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/TemplatizedImpl.java 2010-03-10 17:37:13 UTC (rev 2117)
@@ -0,0 +1,59 @@
+/*
+ * Copyright (C) 2010 eXo Platform SAS.
+ *
+ * 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.gatein.mop.core.api.workspace;
+
+import org.chromattic.api.RelationshipType;
+import org.chromattic.api.annotations.ManyToOne;
+import org.chromattic.api.annotations.MappedBy;
+import org.chromattic.api.annotations.MixinType;
+import org.chromattic.api.annotations.Property;
+import org.gatein.mop.api.Scope;
+import org.gatein.mop.api.workspace.Page;
+import org.gatein.mop.api.workspace.Templatized;
+
+/**
+ * @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a>
+ * @version $Revision$
+ */
+@MixinType(name = "mop:templatized")
+public abstract class TemplatizedImpl implements Templatized
+{
+
+ @ManyToOne(type = RelationshipType.PATH)
+ @MappedBy("mop:template")
+ public abstract PageImpl getPageTemplate();
+
+ public abstract void setPageTemplate(PageImpl template);
+
+ public void setTemplate(Page template)
+ {
+ setPageTemplate((PageImpl)template);
+ }
+
+ public Page getTemplate()
+ {
+ return getPageTemplate();
+ }
+
+ @Property(name = "scope:template")
+ public abstract Scope getScope();
+
+ public abstract void setScope(Scope scope);
+}
Modified: components/mop/trunk/core/src/main/resources/conf/mop-nodetypes.xml
===================================================================
--- components/mop/trunk/core/src/main/resources/conf/mop-nodetypes.xml 2010-03-10 16:57:26 UTC (rev 2116)
+++ components/mop/trunk/core/src/main/resources/conf/mop-nodetypes.xml 2010-03-10 17:37:13 UTC (rev 2117)
@@ -207,13 +207,15 @@
<propertyDefinition name="mop:template" requiredType="Path" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false">
<valueConstraints/>
</propertyDefinition>
+ <propertyDefinition name="scope:template" requiredType="String" autoCreated="false" mandatory="false" onParentVersion="COPY" protected="false" multiple="false">
+ <valueConstraints/>
+ </propertyDefinition>
</propertyDefinitions>
</nodeType>
<nodeType name="mop:navigation" isMixin="false" hasOrderableChildNodes="false" primaryItemName="">
<supertypes>
<supertype>mop:workspaceobject</supertype>
- <supertype>mop:templatized</supertype>
</supertypes>
<childNodeDefinitions>
<childNodeDefinition name="mop:children" defaultPrimaryType="mop:navigationcontainer" autoCreated="true" mandatory="false"
@@ -277,7 +279,6 @@
<nodeType name="mop:page" isMixin="false" hasOrderableChildNodes="false" primaryItemName="">
<supertypes>
<supertype>mop:workspaceobject</supertype>
- <supertype>mop:templatized</supertype>
<supertype>mop:customizationcontext</supertype>
</supertypes>
<childNodeDefinitions>
Modified: components/mop/trunk/core/src/test/java/org/gatein/mop/core/api/workspace/POMTestCase.java
===================================================================
--- components/mop/trunk/core/src/test/java/org/gatein/mop/core/api/workspace/POMTestCase.java 2010-03-10 16:57:26 UTC (rev 2116)
+++ components/mop/trunk/core/src/test/java/org/gatein/mop/core/api/workspace/POMTestCase.java 2010-03-10 17:37:13 UTC (rev 2117)
@@ -82,7 +82,6 @@
//
Page page = root.addChild("page");
assertNotNull(page);
- page.setTemplate(template);
//
NavigationImpl nav = (NavigationImpl)site.getRootNavigation();
@@ -90,7 +89,7 @@
// assertNull(nav.getLink());
//
- nav.setTemplate(template);
+ template.templatize(nav);
//
PageLinkImpl pageTarget = nav.createPageLink();
@@ -105,10 +104,6 @@
// Try something with template relationships
- Collection<? extends Page> templatizedPages = template.getTemplatizedObjects(ObjectType.PAGE);
- assertNotNull(templatizedPages);
- assertEquals(1, templatizedPages.size());
-
Collection<? extends Navigation> templatizedNavigations = template.getTemplatizedObjects(ObjectType.NAVIGATION);
assertNotNull(templatizedNavigations);
assertEquals(1, templatizedNavigations.size());
Modified: components/mop/trunk/core/src/test/java/org/gatein/mop/core/api/workspace/WorkspaceTestCase.java
===================================================================
--- components/mop/trunk/core/src/test/java/org/gatein/mop/core/api/workspace/WorkspaceTestCase.java 2010-03-10 16:57:26 UTC (rev 2116)
+++ components/mop/trunk/core/src/test/java/org/gatein/mop/core/api/workspace/WorkspaceTestCase.java 2010-03-10 17:37:13 UTC (rev 2117)
@@ -18,6 +18,8 @@
*/
package org.gatein.mop.core.api.workspace;
+import org.gatein.mop.api.Scope;
+import org.gatein.mop.api.workspace.Templatized;
import org.gatein.mop.api.workspace.ui.UIComponent;
import org.gatein.mop.core.util.Tools;
import org.gatein.mop.api.workspace.ObjectType;
@@ -100,20 +102,16 @@
Workspace workspace = pomService.getModel().getWorkspace();
Site portal = workspace.addSite(ObjectType.PORTAL_SITE, "portal");
Page template = portal.getRootPage().addChild("template");
- portal.getRootNavigation().setTemplate(template);
- assertEquals(template, portal.getRootNavigation().getTemplate());
+ Navigation rootNav = portal.getRootNavigation();
+ assertNull(rootNav.getTemplatized());
+ Templatized templatized = template.templatize(rootNav);
+ assertSame(templatized, rootNav.getTemplatized());
+ assertNull(templatized.getScope());
+ templatized.setScope(Scope.INHERITED);
+ assertEquals(Scope.INHERITED, templatized.getScope());
+ assertEquals(template, templatized.getTemplate());
}
- public void testPageTemplate()
- {
- Workspace workspace = pomService.getModel().getWorkspace();
- Site portal = workspace.addSite(ObjectType.PORTAL_SITE, "portal");
- Page template = portal.getRootPage().addChild("template");
- Page foo = portal.getRootPage().addChild("foo");
- foo.setTemplate(template);
- assertEquals(template, foo.getTemplate());
- }
-
public void testLoading()
{
Workspace workspace = pomService.getModel().getWorkspace();
@@ -202,7 +200,7 @@
Site portal = workspace.addSite(ObjectType.PORTAL_SITE, "portal");
Page root = portal.getRootPage();
Page template = root.addChild("template");
- portal.getRootNavigation().setTemplate(template);
+ template.templatize(portal.getRootNavigation());
pom.save();
pom = pomService.getModel();
Modified: components/mop/trunk/core/src/test/java/org/gatein/mop/core/support/TestMOPService.java
===================================================================
--- components/mop/trunk/core/src/test/java/org/gatein/mop/core/support/TestMOPService.java 2010-03-10 16:57:26 UTC (rev 2116)
+++ components/mop/trunk/core/src/test/java/org/gatein/mop/core/support/TestMOPService.java 2010-03-10 17:37:13 UTC (rev 2117)
@@ -32,6 +32,7 @@
import org.gatein.mop.core.api.workspace.PortalSite;
import org.gatein.mop.core.api.workspace.PortalSiteContainer;
import org.gatein.mop.core.api.workspace.SecuredImpl;
+import org.gatein.mop.core.api.workspace.TemplatizedImpl;
import org.gatein.mop.core.api.workspace.UIBodyImpl;
import org.gatein.mop.core.api.workspace.UIContainerImpl;
import org.gatein.mop.core.api.workspace.UIWindowImpl;
@@ -93,6 +94,7 @@
builder.add(GroupSite.class);
builder.add(UserSiteContainer.class);
builder.add(UserSite.class);
+ builder.add(TemplatizedImpl.class);
//
builder.add(CustomizationContainer.class);
Modified: components/mop/trunk/core/src/test/resources/conf/configuration.xml
===================================================================
--- components/mop/trunk/core/src/test/resources/conf/configuration.xml 2010-03-10 16:57:26 UTC (rev 2116)
+++ components/mop/trunk/core/src/test/resources/conf/configuration.xml 2010-03-10 17:37:13 UTC (rev 2117)
@@ -34,6 +34,7 @@
<properties-param>
<name>namespaces</name>
<property name="mop" value="http://www.gatein.org/jcr/mop/1.0/"/>
+ <property name="scope" value="http://www.gatein.org/jcr/scope/1.0/"/>
</properties-param>
</init-params>
</component-plugin>
16 years, 1 month