exo-jcr SVN: r1987 - jcr/trunk.
by do-not-reply@jboss.org
Author: dkatayev
Date: 2010-03-03 10:05:06 -0500 (Wed, 03 Mar 2010)
New Revision: 1987
Modified:
jcr/trunk/pom.xml
Log:
EXOJCR-483 Kernel dependency updated to 2.2.1-GA-SNAPSHOT; Core dependency updated to 2.3.1-GA-SNAPSHOT; WS dependency updated to 2.1.1-GA-SNAPSHOT
Modified: jcr/trunk/pom.xml
===================================================================
--- jcr/trunk/pom.xml 2010-03-03 14:56:45 UTC (rev 1986)
+++ jcr/trunk/pom.xml 2010-03-03 15:05:06 UTC (rev 1987)
@@ -39,9 +39,9 @@
<properties>
<exo.product.name>exo-jcr</exo.product.name>
<exo.product.specification>1.12</exo.product.specification>
- <org.exoplatform.kernel.version>2.2.0-GA</org.exoplatform.kernel.version>
- <org.exoplatform.core.version>2.3.0-GA</org.exoplatform.core.version>
- <org.exoplatform.ws.version>2.1.0-GA</org.exoplatform.ws.version>
+ <org.exoplatform.kernel.version>2.2.1-GA-SNAPSHOT</org.exoplatform.kernel.version>
+ <org.exoplatform.core.version>2.3.1-GA-SNAPSHOT</org.exoplatform.core.version>
+ <org.exoplatform.ws.version>2.1.1-GA-SNAPSHOT</org.exoplatform.ws.version>
</properties>
<dependencyManagement>
<dependencies>
16 years, 2 months
exo-jcr SVN: r1986 - ws/trunk.
by do-not-reply@jboss.org
Author: dkatayev
Date: 2010-03-03 09:56:45 -0500 (Wed, 03 Mar 2010)
New Revision: 1986
Modified:
ws/trunk/pom.xml
Log:
EXOJCR-483 Kernel dependency updated to 2.2.1-GA-SNAPSHOT; Core dependency updated to 2.3.1-GA-SNAPSHOT
Modified: ws/trunk/pom.xml
===================================================================
--- ws/trunk/pom.xml 2010-03-03 14:55:03 UTC (rev 1985)
+++ ws/trunk/pom.xml 2010-03-03 14:56:45 UTC (rev 1986)
@@ -44,8 +44,8 @@
<exo.product.name>exo-ws</exo.product.name>
<exo.product.specification>2.1</exo.product.specification>
- <org.exoplatform.kernel.version>2.2.0-GA</org.exoplatform.kernel.version>
- <org.exoplatform.core.version>2.3.0-GA</org.exoplatform.core.version>
+ <org.exoplatform.kernel.version>2.2.1-GA-SNAPSHOT</org.exoplatform.kernel.version>
+ <org.exoplatform.core.version>2.3.1-GA-SNAPSHOT</org.exoplatform.core.version>
<exo.test.includes>*Test*</exo.test.includes>
</properties>
16 years, 2 months
exo-jcr SVN: r1985 - core/trunk.
by do-not-reply@jboss.org
Author: dkatayev
Date: 2010-03-03 09:55:03 -0500 (Wed, 03 Mar 2010)
New Revision: 1985
Modified:
core/trunk/pom.xml
Log:
EXOJCR-483 Kernel dependency updated to 2.2.1-GA-SNAPSHOT
Modified: core/trunk/pom.xml
===================================================================
--- core/trunk/pom.xml 2010-03-03 12:14:50 UTC (rev 1984)
+++ core/trunk/pom.xml 2010-03-03 14:55:03 UTC (rev 1985)
@@ -38,7 +38,7 @@
<exo.product.name>exo-core</exo.product.name>
<exo.product.specification>2.3</exo.product.specification>
- <org.exoplatform.kernel.version>2.2.0-GA</org.exoplatform.kernel.version>
+ <org.exoplatform.kernel.version>2.2.1-GA-SNAPSHOT</org.exoplatform.kernel.version>
<exo.test.includes>*Test*</exo.test.includes>
</properties>
16 years, 2 months
exo-jcr SVN: r1984 - in jcr/trunk/exo.jcr.component.core/src: test/java/org/exoplatform/services/jcr/impl/dataflow/persistent and 1 other directory.
by do-not-reply@jboss.org
Author: tolusha
Date: 2010-03-03 07:14:50 -0500 (Wed, 03 Mar 2010)
New Revision: 1984
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/CleanableFilePersistedValueData.java
jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/dataflow/persistent/TestCleanableFileStreamValueData.java
Log:
EXOJCR-348: test fix
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/CleanableFilePersistedValueData.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/CleanableFilePersistedValueData.java 2010-03-03 08:34:58 UTC (rev 1983)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/dataflow/persistent/CleanableFilePersistedValueData.java 2010-03-03 12:14:50 UTC (rev 1984)
@@ -42,7 +42,7 @@
protected final static Log LOG = ExoLogger.getLogger("jcr.CleanableFileStreamValueData");
protected FileCleaner cleaner;
-
+
/**
* Empty constructor to serialization.
*/
@@ -84,14 +84,14 @@
//TODO FileCleaner maybe null.
if (cleaner != null)
{
- cleaner.addFile(file);
+ cleaner.addFile(file);
- if (LOG.isDebugEnabled())
- {
- LOG.debug("Could not remove temporary file on finalize: inUse=" + (((SwapFile)file).inUse()) + ", "
- + file.getAbsolutePath());
+ if (LOG.isDebugEnabled())
+ {
+ LOG.debug("Could not remove temporary file on finalize: inUse=" + (((SwapFile)file).inUse()) + ", "
+ + file.getAbsolutePath());
+ }
}
- }
}
}
finally
Modified: jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/dataflow/persistent/TestCleanableFileStreamValueData.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/dataflow/persistent/TestCleanableFileStreamValueData.java 2010-03-03 08:34:58 UTC (rev 1983)
+++ jcr/trunk/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/impl/dataflow/persistent/TestCleanableFileStreamValueData.java 2010-03-03 12:14:50 UTC (rev 1984)
@@ -103,11 +103,14 @@
testCleaner = null;
if (testFile.exists())
+ {
testFile.delete();
+ }
TestSwapFile.cleanShare();
System.gc();
+ Thread.sleep(CLEANER_TIMEOUT + 500);
Thread.yield();
System.gc();
@@ -151,6 +154,17 @@
System.gc();
assertTrue(testFile.exists());
+
+ // clean ValueData
+ cfvd2 = null;
+
+ // allows GC to call finalize on vd
+ System.gc();
+ Thread.sleep(CLEANER_TIMEOUT + 500);
+ Thread.yield();
+ System.gc();
+
+ assertFalse(testFile.exists());
}
public void testTransientFileNotCleaned() throws InterruptedException, IOException, RepositoryException
16 years, 2 months
exo-jcr SVN: r1983 - in kernel/trunk/exo.kernel.container/src: main/resources and 2 other directories.
by do-not-reply@jboss.org
Author: nfilotto
Date: 2010-03-03 03:34:58 -0500 (Wed, 03 Mar 2010)
New Revision: 1983
Added:
kernel/trunk/exo.kernel.container/src/test/resources/test-trim-value.xml
Modified:
kernel/trunk/exo.kernel.container/src/main/java/org/exoplatform/container/xml/Deserializer.java
kernel/trunk/exo.kernel.container/src/main/resources/binding.xml
kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/xml/test/TestConfigurationXML.java
Log:
EXOJCR-556: Now allow the String values are deserialized with a Deserializer that calls trim() on the value. We call also the method trim on the results of the resolved values.
Modified: kernel/trunk/exo.kernel.container/src/main/java/org/exoplatform/container/xml/Deserializer.java
===================================================================
--- kernel/trunk/exo.kernel.container/src/main/java/org/exoplatform/container/xml/Deserializer.java 2010-03-03 08:34:41 UTC (rev 1982)
+++ kernel/trunk/exo.kernel.container/src/main/java/org/exoplatform/container/xml/Deserializer.java 2010-03-03 08:34:58 UTC (rev 1983)
@@ -54,7 +54,7 @@
*/
public static String resolveString(String s)
{
- return Deserializer.resolveVariables(s);
+ return Deserializer.resolveNClean(s);
}
/**
@@ -77,7 +77,7 @@
{
return null;
}
- s = Deserializer.resolveVariables(s);
+ s = Deserializer.resolveNClean(s);
if (s.equalsIgnoreCase("true"))
{
return true;
@@ -107,7 +107,7 @@
{
return null;
}
- s = Deserializer.resolveVariables(s);
+ s = Deserializer.resolveNClean(s);
try
{
return Integer.parseInt(s);
@@ -136,7 +136,7 @@
{
return null;
}
- s = Deserializer.resolveVariables(s);
+ s = Deserializer.resolveNClean(s);
try
{
return Long.parseLong(s);
@@ -165,7 +165,7 @@
{
return null;
}
- s = Deserializer.resolveVariables(s);
+ s = Deserializer.resolveNClean(s);
try
{
return Double.parseDouble(s);
@@ -284,4 +284,25 @@
return buffer.toString();
}
+
+ /**
+ * This methods will remove useless characters from the given {@link String} and return the result
+ * @param s the input value
+ * @return <code>null</code> if the input value is <code>null</code>, <code>s.trim()</code>
+ * otherwise
+ */
+ public static String cleanString(String s)
+ {
+ return s == null ? null : s.trim();
+ }
+
+ /**
+ * This method will first resolves the variables then it will clean the results
+ * @param s the input value
+ * @return the resolve and clean value
+ */
+ public static String resolveNClean(String s)
+ {
+ return cleanString(resolveVariables(s));
+ }
}
Modified: kernel/trunk/exo.kernel.container/src/main/resources/binding.xml
===================================================================
--- kernel/trunk/exo.kernel.container/src/main/resources/binding.xml 2010-03-03 08:34:41 UTC (rev 1982)
+++ kernel/trunk/exo.kernel.container/src/main/resources/binding.xml 2010-03-03 08:34:58 UTC (rev 1983)
@@ -19,6 +19,9 @@
-->
<binding>
+ <!-- the default deserializer to use for String -->
+ <format type="java.lang.String" deserializer="org.exoplatform.container.xml.Deserializer.cleanString"/>
+
<!-- xml object mapping -->
<mapping class="org.exoplatform.xml.object.XMLBaseObject" abstract="true" label="base-object">
<value name="string" usage="optional" get-method="getString" set-method="setString" deserializer="org.exoplatform.container.xml.Deserializer.resolveString"/>
Modified: kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/xml/test/TestConfigurationXML.java
===================================================================
--- kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/xml/test/TestConfigurationXML.java 2010-03-03 08:34:41 UTC (rev 1982)
+++ kernel/trunk/exo.kernel.container/src/test/java/org/exoplatform/xml/test/TestConfigurationXML.java 2010-03-03 08:34:58 UTC (rev 1983)
@@ -21,24 +21,134 @@
import junit.framework.TestCase;
import org.exoplatform.container.xml.Component;
+import org.exoplatform.container.xml.ComponentLifecyclePlugin;
+import org.exoplatform.container.xml.ComponentPlugin;
import org.exoplatform.container.xml.Configuration;
+import org.exoplatform.container.xml.ContainerLifecyclePlugin;
+import org.exoplatform.container.xml.ExternalComponentPlugins;
import org.exoplatform.container.xml.InitParams;
+import org.exoplatform.container.xml.ManageableComponents;
import org.exoplatform.container.xml.ObjectParameter;
import org.exoplatform.container.xml.PropertiesParam;
import org.exoplatform.container.xml.ValueParam;
+import org.exoplatform.container.xml.ValuesParam;
import org.exoplatform.xml.object.XMLObject;
import org.jibx.runtime.BindingDirectory;
import org.jibx.runtime.IBindingFactory;
import org.jibx.runtime.IUnmarshallingContext;
import java.io.FileInputStream;
+import java.io.InputStream;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
/**
* @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a>
*/
public class TestConfigurationXML extends TestCase
{
+
+ @SuppressWarnings("unchecked")
+ public void testTrimValue() throws Exception
+ {
+ InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("test-trim-value.xml");
+ assertNotNull(is);
+ try
+ {
+ IBindingFactory bfact = BindingDirectory.getFactory(XMLObject.class);
+ IUnmarshallingContext uctx = bfact.createUnmarshallingContext();
+ Configuration conf =
+ (Configuration)uctx.unmarshalDocument(is, null);
+ assertNotNull(conf);
+ Iterator it = conf.getContainerLifecyclePluginIterator();
+ assertNotNull(it);
+ assertTrue(it.hasNext());
+ ContainerLifecyclePlugin conlp = (ContainerLifecyclePlugin)it.next();
+ assertEquals("container-lifecycle-plugin-type", conlp.getType());
+ assertNotNull(conlp.getInitParams());
+ assertEquals("container-lifecycle-plugin-value-param-value", (conlp.getInitParams().getValueParam("container-lifecycle-plugin-value-param-name")).getValue());
+ it = conf.getComponentLifecyclePluginIterator();
+ assertNotNull(it);
+ assertTrue(it.hasNext());
+ ComponentLifecyclePlugin comlp = (ComponentLifecyclePlugin)it.next();
+ assertEquals("component-lifecycle-plugin", comlp.getType());
+ ManageableComponents mc = comlp.getManageableComponents();
+ assertNotNull(mc);
+ assertEquals("manageable-components-component-type", mc.getComponentsType().get(0));
+ ValuesParam valuesParam = comlp.getInitParams().getValuesParam("component-lifecycle-plugin-values-param-name");
+ assertNotNull(valuesParam);
+ assertNotNull(valuesParam.getValues());
+ assertTrue(valuesParam.getValues().contains("component-lifecycle-plugin-values-param-value1"));
+ assertTrue(valuesParam.getValues().contains("component-lifecycle-plugin-values-param-value2"));
+ Component c = conf.getComponent("component-key1");
+ assertNotNull(c);
+ assertEquals("component-type1", c.getType());
+ PropertiesParam propertiesParam = c.getInitParams().getPropertiesParam("component-key1-properties-param-name");
+ assertNotNull(propertiesParam);
+ assertEquals("component-key1-properties-param-prop-value", propertiesParam.getProperty("component-key1-properties-param-prop-name"));
+ c = conf.getComponent("component-type2");
+ assertNotNull(c);
+ ObjectParameter objectParameter = c.getInitParams().getObjectParam("component-key2-object-param-name");
+ assertNotNull(objectParameter);
+ MyObject o = (MyObject)objectParameter.getObject();
+ assertNotNull(o);
+ assertEquals("string-value", o.field1);
+ assertEquals(1, o.field2);
+ assertEquals(1l, o.field3);
+ assertEquals(1d, o.field4);
+ assertEquals(true, o.field5);
+ assertNotNull(o.field6);
+ assertEquals("entry-value", o.field6.get("entry-name"));
+ assertNotNull(o.field7);
+ assertTrue(o.field7.contains("string-value"));
+ assertNotNull(o.field8);
+ assertEquals(1, o.field8[0]);
+ List list = c.getComponentPlugins();
+ assertNotNull(list);
+ assertFalse(list.isEmpty());
+ ComponentPlugin cp = (ComponentPlugin)list.get(0);
+ assertEquals("component-plugins-name", cp.getName());
+ assertEquals("set-method-name", cp.getSetMethod());
+ assertEquals("component-plugins-type", cp.getType());
+ assertEquals("1", cp.getPriority());
+ it = conf.getExternalComponentPluginsIterator();
+ assertNotNull(it);
+ assertTrue(it.hasNext());
+ ExternalComponentPlugins ecps = (ExternalComponentPlugins)it.next();
+ assertEquals("target-component-name", ecps.getTargetComponent());
+ list = ecps.getComponentPlugins();
+ assertNotNull(list);
+ assertFalse(list.isEmpty());
+ cp = (ComponentPlugin)list.get(0);
+ assertEquals("component-plugins-name", cp.getName());
+ assertEquals("set-method-name", cp.getSetMethod());
+ assertEquals("component-plugins-type", cp.getType());
+ assertEquals("1", cp.getPriority());
+ list = conf.getImports();
+ assertNotNull(list);
+ assertFalse(list.isEmpty());
+ assertEquals("import-value", list.get(0));
+ list = conf.getRemoveConfiguration();
+ assertNotNull(list);
+ assertFalse(list.isEmpty());
+ assertEquals("remove-configuration-value", list.get(0));
+ }
+ finally
+ {
+ try
+ {
+ is.close();
+ }
+ catch (Exception e)
+ {
+ // ignore me
+ }
+ }
+ }
+
public void testSystemPropertyResolving() throws Exception
{
@@ -118,5 +228,17 @@
assertNotNull(paramName);
assertEquals(expectedValue, valueParam.getValue());
}
+
+ public static class MyObject
+ {
+ public String field1;
+ public int field2;
+ public long field3;
+ public double field4;
+ public boolean field5;
+ public Map field6;
+ public Collection field7;
+ public int[] field8;
+ }
}
\ No newline at end of file
Added: kernel/trunk/exo.kernel.container/src/test/resources/test-trim-value.xml
===================================================================
--- kernel/trunk/exo.kernel.container/src/test/resources/test-trim-value.xml (rev 0)
+++ kernel/trunk/exo.kernel.container/src/test/resources/test-trim-value.xml 2010-03-03 08:34:58 UTC (rev 1983)
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+ <!--
+
+ 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.
+ -->
+<configuration>
+
+ <container-lifecycle-plugin>
+ <type> container-lifecycle-plugin-type
+ </type>
+ <init-params>
+ <value-param>
+ <name> container-lifecycle-plugin-value-param-name </name>
+ <value> container-lifecycle-plugin-value-param-value </value>
+ </value-param>
+ </init-params>
+ </container-lifecycle-plugin>
+ <component-lifecycle-plugin>
+ <type> component-lifecycle-plugin
+ </type>
+ <manageable-components>
+ <component-type> manageable-components-component-type</component-type>
+ </manageable-components>
+ <init-params>
+ <values-param>
+ <name> component-lifecycle-plugin-values-param-name </name>
+ <value> component-lifecycle-plugin-values-param-value1 </value>
+ <value> component-lifecycle-plugin-values-param-value2
+ </value>
+ </values-param>
+ </init-params>
+ </component-lifecycle-plugin>
+ <component>
+ <key> component-key1
+ </key>
+ <type> component-type1
+ </type>
+ <init-params>
+ <properties-param>
+ <name> component-key1-properties-param-name </name>
+ <property name=" component-key1-properties-param-prop-name " value=" component-key1-properties-param-prop-value
+ " />
+ </properties-param>
+ </init-params>
+ </component>
+ <component>
+ <type> component-type2
+ </type>
+ <component-plugins>
+ <component-plugin>
+ <name> component-plugins-name </name>
+ <set-method> set-method-name</set-method>
+ <type> component-plugins-type </type>
+ <priority> 1 </priority>
+ </component-plugin>
+ </component-plugins>
+ <init-params>
+ <object-param>
+ <name> component-key2-object-param-name </name>
+ <object type=" org.exoplatform.xml.test.TestConfigurationXML$MyObject ">
+ <field name=" field1 ">
+ <string> string-value </string>
+ </field>
+ <field name=" field2 ">
+ <int> 1 </int>
+ </field>
+ <field name=" field3 ">
+ <long> 1 </long>
+ </field>
+ <field name=" field4 ">
+ <double> 1 </double>
+ </field>
+ <field name=" field5 ">
+ <boolean> true </boolean>
+ </field>
+ <field name=" field6 ">
+ <map type=" java.util.HashMap ">
+ <entry>
+ <key><string> entry-name </string></key>
+ <value><string> entry-value </string></value>
+ </entry>
+ </map>
+ </field>
+ <field name=" field7 ">
+ <collection type=" java.util.HashSet ">
+ <value>
+ <string> string-value </string>
+ </value>
+ </collection>
+ </field>
+ <field name=" field8 ">
+ <native-array type=" int ">
+ <array> 1 </array>
+ </native-array>
+ </field>
+ </object>
+ </object-param>
+ </init-params>
+ </component>
+ <external-component-plugins>
+ <target-component> target-component-name
+ </target-component>
+ <component-plugin>
+ <name> component-plugins-name </name>
+ <set-method> set-method-name</set-method>
+ <type> component-plugins-type </type>
+ <priority> 1 </priority>
+ </component-plugin>
+ </external-component-plugins>
+ <import> import-value
+ </import>
+ <remove-configuration> remove-configuration-value </remove-configuration>
+</configuration>
16 years, 2 months
exo-jcr SVN: r1982 - jcr/trunk/exo.jcr.component.core/src/main/resources.
by do-not-reply@jboss.org
Author: nfilotto
Date: 2010-03-03 03:34:41 -0500 (Wed, 03 Mar 2010)
New Revision: 1982
Modified:
jcr/trunk/exo.jcr.component.core/src/main/resources/binding-nodetypevalues.xml
jcr/trunk/exo.jcr.component.core/src/main/resources/binding.xml
Log:
EXOJCR-556: Now allow the String values are deserialized with a Deserializer that calls trim() on the value. We call also the method trim on the results of the resolved values.
Modified: jcr/trunk/exo.jcr.component.core/src/main/resources/binding-nodetypevalues.xml
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/resources/binding-nodetypevalues.xml 2010-03-02 15:26:27 UTC (rev 1981)
+++ jcr/trunk/exo.jcr.component.core/src/main/resources/binding-nodetypevalues.xml 2010-03-03 08:34:41 UTC (rev 1982)
@@ -1,4 +1,6 @@
<binding>
+ <!-- the default deserializer to use for String -->
+ <format type="java.lang.String" deserializer="org.exoplatform.container.xml.Deserializer.cleanString"/>
<mapping name="nodeTypes" class="org.exoplatform.services.jcr.core.nodetype.NodeTypeValuesList">
<collection field="nodeTypeValuesList" item-type="org.exoplatform.services.jcr.core.nodetype.NodeTypeValue" type="java.util.ArrayList" />
Modified: jcr/trunk/exo.jcr.component.core/src/main/resources/binding.xml
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/resources/binding.xml 2010-03-02 15:26:27 UTC (rev 1981)
+++ jcr/trunk/exo.jcr.component.core/src/main/resources/binding.xml 2010-03-03 08:34:41 UTC (rev 1982)
@@ -1,4 +1,6 @@
<binding>
+ <!-- the default deserializer to use for String -->
+ <format type="java.lang.String" deserializer="org.exoplatform.container.xml.Deserializer.cleanString"/>
<mapping name="repository-service" class="org.exoplatform.services.jcr.config.RepositoryServiceConfiguration">
<value name="default-repository" field="defaultRepositoryName" style="attribute" />
16 years, 2 months
exo-jcr SVN: r1981 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/util.
by do-not-reply@jboss.org
Author: nzamosenchuk
Date: 2010-03-02 10:26:27 -0500 (Tue, 02 Mar 2010)
New Revision: 1981
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/util/VersionHistoryImporter.java
Log:
EXOJCR-548: Added check, for situation when version history for the node already exists in version storage on the moment of import.
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/util/VersionHistoryImporter.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/util/VersionHistoryImporter.java 2010-03-01 23:12:24 UTC (rev 1980)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/util/VersionHistoryImporter.java 2010-03-02 15:26:27 UTC (rev 1981)
@@ -132,6 +132,12 @@
{
String path = versionableNode.getVersionHistory().getParent().getPath();
+ if (versionableNode.getVersionHistory().getParent().hasNode(versionHistory))
+ {
+ throw new RepositoryException("Can't import version history for node with identifier '" + versionHistory
+ + "', because it already exists in version storage.");
+ }
+
NodeData versionable = (NodeData)versionableNode.getData();
// ----- VERSIONABLE properties -----
// jcr:versionHistory
16 years, 2 months
exo-jcr SVN: r1980 - in jcr/trunk: applications/exo.jcr.applications.backupconsole/bin and 4 other directories.
by do-not-reply@jboss.org
Author: pnedonosko
Date: 2010-03-01 18:12:24 -0500 (Mon, 01 Mar 2010)
New Revision: 1980
Modified:
jcr/trunk/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.cmd
jcr/trunk/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.sh
jcr/trunk/applications/product-exo-jcr-as-jboss-ear.xml
jcr/trunk/applications/product-exo-jcr-as-jonas-ear.xml
jcr/trunk/applications/product-exo-jcr-as-tomcat6.xml
jcr/trunk/docs/pom.xml
jcr/trunk/docs/reference/en/pom.xml
jcr/trunk/docs/reference/pom.xml
jcr/trunk/exo.jcr.connectors.localadapter/src/main/rar/META-INF/ra.xml
Log:
EXOJCR-483 versions
Modified: jcr/trunk/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.cmd
===================================================================
--- jcr/trunk/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.cmd 2010-03-01 23:00:34 UTC (rev 1979)
+++ jcr/trunk/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.cmd 2010-03-01 23:12:24 UTC (rev 1980)
@@ -1 +1 @@
-java -jar exo.jcr.applications.backupconsole-1.12.0-GA-SNAPSHOT.jar %*
+java -jar exo.jcr.applications.backupconsole-1.12.1-GA-SNAPSHOT.jar %*
Modified: jcr/trunk/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.sh
===================================================================
--- jcr/trunk/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.sh 2010-03-01 23:00:34 UTC (rev 1979)
+++ jcr/trunk/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.sh 2010-03-01 23:12:24 UTC (rev 1980)
@@ -1,3 +1,3 @@
#!/bin/sh
-java -jar exo.jcr.applications.backupconsole-1.12.0-GA-SNAPSHOT.jar $*
+java -jar exo.jcr.applications.backupconsole-1.12.1-GA-SNAPSHOT.jar $*
Modified: jcr/trunk/applications/product-exo-jcr-as-jboss-ear.xml
===================================================================
--- jcr/trunk/applications/product-exo-jcr-as-jboss-ear.xml 2010-03-01 23:00:34 UTC (rev 1979)
+++ jcr/trunk/applications/product-exo-jcr-as-jboss-ear.xml 2010-03-01 23:12:24 UTC (rev 1980)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.applications.config</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -40,7 +40,7 @@
<dependency>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.ear</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.1-GA-SNAPSHOT</version>
<type>ear</type>
<scope>runtime</scope>
</dependency>
Modified: jcr/trunk/applications/product-exo-jcr-as-jonas-ear.xml
===================================================================
--- jcr/trunk/applications/product-exo-jcr-as-jonas-ear.xml 2010-03-01 23:00:34 UTC (rev 1979)
+++ jcr/trunk/applications/product-exo-jcr-as-jonas-ear.xml 2010-03-01 23:12:24 UTC (rev 1980)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.applications.config</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -40,7 +40,7 @@
<dependency>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.ear</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.1-GA-SNAPSHOT</version>
<type>ear</type>
<scope>runtime</scope>
</dependency>
Modified: jcr/trunk/applications/product-exo-jcr-as-tomcat6.xml
===================================================================
--- jcr/trunk/applications/product-exo-jcr-as-tomcat6.xml 2010-03-01 23:00:34 UTC (rev 1979)
+++ jcr/trunk/applications/product-exo-jcr-as-tomcat6.xml 2010-03-01 23:12:24 UTC (rev 1980)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.applications.config</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.1-GA-SNAPSHOT</version>
<relativePath>exo.jcr.applications.config</relativePath>
</parent>
Modified: jcr/trunk/docs/pom.xml
===================================================================
--- jcr/trunk/docs/pom.xml 2010-03-01 23:00:34 UTC (rev 1979)
+++ jcr/trunk/docs/pom.xml 2010-03-01 23:12:24 UTC (rev 1980)
@@ -23,7 +23,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/trunk/docs/reference/en/pom.xml
===================================================================
--- jcr/trunk/docs/reference/en/pom.xml 2010-03-01 23:00:34 UTC (rev 1979)
+++ jcr/trunk/docs/reference/en/pom.xml 2010-03-01 23:12:24 UTC (rev 1980)
@@ -23,7 +23,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>reference-docs</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/trunk/docs/reference/pom.xml
===================================================================
--- jcr/trunk/docs/reference/pom.xml 2010-03-01 23:00:34 UTC (rev 1979)
+++ jcr/trunk/docs/reference/pom.xml 2010-03-01 23:12:24 UTC (rev 1980)
@@ -23,7 +23,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>docs</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.1-GA-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/trunk/exo.jcr.connectors.localadapter/src/main/rar/META-INF/ra.xml
===================================================================
--- jcr/trunk/exo.jcr.connectors.localadapter/src/main/rar/META-INF/ra.xml 2010-03-01 23:00:34 UTC (rev 1979)
+++ jcr/trunk/exo.jcr.connectors.localadapter/src/main/rar/META-INF/ra.xml 2010-03-01 23:12:24 UTC (rev 1980)
@@ -25,7 +25,7 @@
<display-name>JCR repository</display-name>
<vendor-name>exoplatform</vendor-name>
<eis-type />
- <resourceadapter-version>1.12.0-GA-SNAPSHOT</resourceadapter-version>
+ <resourceadapter-version>1.12.1-GA-SNAPSHOT</resourceadapter-version>
<license>
<license-required>false</license-required>
</license>
16 years, 2 months
exo-jcr SVN: r1979 - in jcr/tags/1.12.0-GA: applications/exo.jcr.applications.backupconsole/bin and 4 other directories.
by do-not-reply@jboss.org
Author: pnedonosko
Date: 2010-03-01 18:00:34 -0500 (Mon, 01 Mar 2010)
New Revision: 1979
Modified:
jcr/tags/1.12.0-GA/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.cmd
jcr/tags/1.12.0-GA/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.sh
jcr/tags/1.12.0-GA/applications/product-exo-jcr-as-jboss-ear.xml
jcr/tags/1.12.0-GA/applications/product-exo-jcr-as-jonas-ear.xml
jcr/tags/1.12.0-GA/applications/product-exo-jcr-as-tomcat6.xml
jcr/tags/1.12.0-GA/docs/pom.xml
jcr/tags/1.12.0-GA/docs/reference/en/pom.xml
jcr/tags/1.12.0-GA/docs/reference/pom.xml
jcr/tags/1.12.0-GA/exo.jcr.connectors.localadapter/src/main/rar/META-INF/ra.xml
Log:
EXOJCR-483 versions
Modified: jcr/tags/1.12.0-GA/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.cmd
===================================================================
--- jcr/tags/1.12.0-GA/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.cmd 2010-02-26 17:02:58 UTC (rev 1978)
+++ jcr/tags/1.12.0-GA/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.cmd 2010-03-01 23:00:34 UTC (rev 1979)
@@ -1 +1 @@
-java -jar exo.jcr.applications.backupconsole-1.12.0-GA-SNAPSHOT.jar %*
+java -jar exo.jcr.applications.backupconsole-1.12.0-GA.jar %*
Modified: jcr/tags/1.12.0-GA/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.sh
===================================================================
--- jcr/tags/1.12.0-GA/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.sh 2010-02-26 17:02:58 UTC (rev 1978)
+++ jcr/tags/1.12.0-GA/applications/exo.jcr.applications.backupconsole/bin/jcrbackup.sh 2010-03-01 23:00:34 UTC (rev 1979)
@@ -1,3 +1,3 @@
#!/bin/sh
-java -jar exo.jcr.applications.backupconsole-1.12.0-GA-SNAPSHOT.jar $*
+java -jar exo.jcr.applications.backupconsole-1.12.0-GA.jar $*
Modified: jcr/tags/1.12.0-GA/applications/product-exo-jcr-as-jboss-ear.xml
===================================================================
--- jcr/tags/1.12.0-GA/applications/product-exo-jcr-as-jboss-ear.xml 2010-02-26 17:02:58 UTC (rev 1978)
+++ jcr/tags/1.12.0-GA/applications/product-exo-jcr-as-jboss-ear.xml 2010-03-01 23:00:34 UTC (rev 1979)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.applications.config</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -40,7 +40,7 @@
<dependency>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.ear</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.0-GA</version>
<type>ear</type>
<scope>runtime</scope>
</dependency>
Modified: jcr/tags/1.12.0-GA/applications/product-exo-jcr-as-jonas-ear.xml
===================================================================
--- jcr/tags/1.12.0-GA/applications/product-exo-jcr-as-jonas-ear.xml 2010-02-26 17:02:58 UTC (rev 1978)
+++ jcr/tags/1.12.0-GA/applications/product-exo-jcr-as-jonas-ear.xml 2010-03-01 23:00:34 UTC (rev 1979)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.applications.config</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
@@ -40,7 +40,7 @@
<dependency>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.ear</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.0-GA</version>
<type>ear</type>
<scope>runtime</scope>
</dependency>
Modified: jcr/tags/1.12.0-GA/applications/product-exo-jcr-as-tomcat6.xml
===================================================================
--- jcr/tags/1.12.0-GA/applications/product-exo-jcr-as-tomcat6.xml 2010-02-26 17:02:58 UTC (rev 1978)
+++ jcr/tags/1.12.0-GA/applications/product-exo-jcr-as-tomcat6.xml 2010-03-01 23:00:34 UTC (rev 1979)
@@ -22,7 +22,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>exo.jcr.applications.config</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.0-GA</version>
<relativePath>exo.jcr.applications.config</relativePath>
</parent>
Modified: jcr/tags/1.12.0-GA/docs/pom.xml
===================================================================
--- jcr/tags/1.12.0-GA/docs/pom.xml 2010-02-26 17:02:58 UTC (rev 1978)
+++ jcr/tags/1.12.0-GA/docs/pom.xml 2010-03-01 23:00:34 UTC (rev 1979)
@@ -23,7 +23,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>jcr-parent</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/tags/1.12.0-GA/docs/reference/en/pom.xml
===================================================================
--- jcr/tags/1.12.0-GA/docs/reference/en/pom.xml 2010-02-26 17:02:58 UTC (rev 1978)
+++ jcr/tags/1.12.0-GA/docs/reference/en/pom.xml 2010-03-01 23:00:34 UTC (rev 1979)
@@ -23,7 +23,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>reference-docs</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/tags/1.12.0-GA/docs/reference/pom.xml
===================================================================
--- jcr/tags/1.12.0-GA/docs/reference/pom.xml 2010-02-26 17:02:58 UTC (rev 1978)
+++ jcr/tags/1.12.0-GA/docs/reference/pom.xml 2010-03-01 23:00:34 UTC (rev 1979)
@@ -23,7 +23,7 @@
<parent>
<groupId>org.exoplatform.jcr</groupId>
<artifactId>docs</artifactId>
- <version>1.12.0-GA-SNAPSHOT</version>
+ <version>1.12.0-GA</version>
</parent>
<modelVersion>4.0.0</modelVersion>
Modified: jcr/tags/1.12.0-GA/exo.jcr.connectors.localadapter/src/main/rar/META-INF/ra.xml
===================================================================
--- jcr/tags/1.12.0-GA/exo.jcr.connectors.localadapter/src/main/rar/META-INF/ra.xml 2010-02-26 17:02:58 UTC (rev 1978)
+++ jcr/tags/1.12.0-GA/exo.jcr.connectors.localadapter/src/main/rar/META-INF/ra.xml 2010-03-01 23:00:34 UTC (rev 1979)
@@ -25,7 +25,7 @@
<display-name>JCR repository</display-name>
<vendor-name>exoplatform</vendor-name>
<eis-type />
- <resourceadapter-version>1.12.0-GA-SNAPSHOT</resourceadapter-version>
+ <resourceadapter-version>1.12.0-GA</resourceadapter-version>
<license>
<license-required>false</license-required>
</license>
16 years, 2 months