From: <fg...@us...> - 2012-04-04 16:02:29
|
Revision: 3892 http://openutils.svn.sourceforge.net/openutils/?rev=3892&view=rev Author: fgiust Date: 2012-04-04 16:02:23 +0000 (Wed, 04 Apr 2012) Log Message: ----------- CRIT-48 fix regression similar to CRIT-40 Modified Paths: -------------- magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/pom.xml magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaTest.java Modified: magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/pom.xml =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/pom.xml 2012-04-04 15:18:02 UTC (rev 3891) +++ magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/pom.xml 2012-04-04 16:02:23 UTC (rev 3892) @@ -177,9 +177,9 @@ </dependency> </dependencies> <properties> - <magnolia.version>4.4.4</magnolia.version> + <magnolia.version>4.4.6</magnolia.version> <jackrabbit.version>1.6.2</jackrabbit.version> <jcr.version>1.0</jcr.version> </properties> <!-- test running maven with -Djcr.version=2.0 -Djackrabbit.version=2.0.0 -Djcr.version=2.0 -Djackrabbit.version=2.1.0 --> -</project> \ No newline at end of file +</project> Modified: magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java 2012-04-04 15:18:02 UTC (rev 3891) +++ magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/main/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/utils/XPathTextUtils.java 2012-04-04 16:02:23 UTC (rev 3892) @@ -155,7 +155,7 @@ else if (ch == '(') { // "(" is the beginning of an expression only when used with the element() function - if (StringUtils.endsWith(StringUtils.substring(path, i), "element")) + if (StringUtils.endsWith(StringUtils.substring(path, 0, i), "element")) { inXpathCondition++; xpathWithFunction = true; Modified: magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaTest.java =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaTest.java 2012-04-04 15:18:02 UTC (rev 3891) +++ magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/xpath/impl/MagnoliaCriteriaTest.java 2012-04-04 16:02:23 UTC (rev 3892) @@ -110,7 +110,9 @@ criteria.add(Restrictions.eq("@property", "test")); String xpathExpression = criteria.toXpathExpression(); - Assert.assertEquals(xpathExpression, "//path/with(paren_x002c_thesis)/test//*[( (@property='test') )] "); + Assert.assertEquals( + xpathExpression, + "//path/with_x0028_paren_x002c_thesis_x0029_/test//*[( (@property='test') )] "); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <die...@us...> - 2014-03-03 16:50:56
|
Revision: 4563 http://openutils.svn.sourceforge.net/openutils/?rev=4563&view=rev Author: diego_schivo Date: 2014-03-03 16:50:52 +0000 (Mon, 03 Mar 2014) Log Message: ----------- EscapeSignTest Modified Paths: -------------- magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/pom.xml magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/EscapeSignTest.java Added Paths: ----------- magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/resources/crit-bootstrap/userroles.anonymous.xml magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/resources/crit-bootstrap/users.system.anonymous.xml Modified: magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/pom.xml =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/pom.xml 2014-02-13 08:06:07 UTC (rev 4562) +++ magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/pom.xml 2014-03-03 16:50:52 UTC (rev 4563) @@ -157,6 +157,38 @@ </exclusions> </dependency> <dependency> + <groupId>commons-beanutils</groupId> + <artifactId>commons-beanutils</artifactId> + <version>1.7.0</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.jdom</groupId> + <artifactId>jdom</artifactId> + <version>1.1</version> + </dependency> + <dependency> + <groupId>commons-betwixt</groupId> + <artifactId>commons-betwixt</artifactId> + <version>0.8</version> + <exclusions> + <exclusion> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>commons-chain</groupId> + <artifactId>commons-chain</artifactId> + <version>1.2</version> + </dependency> + <dependency> <groupId>info.magnolia</groupId> <artifactId>magnolia-core</artifactId> <classifier>tests</classifier> Modified: magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/EscapeSignTest.java =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/EscapeSignTest.java 2014-02-13 08:06:07 UTC (rev 4562) +++ magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/java/net/sourceforge/openutils/mgnlcriteria/jcr/query/EscapeSignTest.java 2014-03-03 16:50:52 UTC (rev 4563) @@ -19,7 +19,9 @@ package net.sourceforge.openutils.mgnlcriteria.jcr.query; -import info.magnolia.cms.core.MgnlNodeType; +import info.magnolia.cms.beans.config.ContentRepository; +import info.magnolia.cms.core.Content; +import info.magnolia.cms.core.ItemType; import info.magnolia.cms.i18n.DefaultI18nContentSupport; import info.magnolia.cms.i18n.I18nContentSupport; import info.magnolia.cms.security.MgnlRoleManager; @@ -28,15 +30,10 @@ import info.magnolia.cms.security.SecuritySupportImpl; import info.magnolia.cms.security.SystemUserManager; import info.magnolia.context.MgnlContext; -import info.magnolia.repository.RepositoryConstants; import info.magnolia.test.ComponentsTestUtil; import it.openutils.mgnlutils.test.RepositoryTestConfiguration; import it.openutils.mgnlutils.test.TestNgRepositoryTestcase; - -import javax.jcr.Node; - import net.sourceforge.openutils.mgnlcriteria.jcr.query.criterion.Restrictions; -import net.sourceforge.openutils.mgnlcriteria.tests.CriteriaTestUtils; import org.testng.Assert; import org.testng.annotations.BeforeClass; @@ -68,13 +65,13 @@ // ----- bar (title=bar) // --- fo$o (title=fo$o) // ----- baz (title=baz) - MgnlContext.getJCRSession(RepositoryConstants.WEBSITE).save(); + MgnlContext.getHierarchyManager(ContentRepository.WEBSITE).save(); ComponentsTestUtil.setInstance(I18nContentSupport.class, new DefaultI18nContentSupport()); // info.magnolia.cms.security.SecurityTest.setUp() final SecuritySupportImpl sec = new SecuritySupportImpl(); - sec.addUserManager(Realm.REALM_SYSTEM.getName(), new SystemUserManager()); + sec.addUserManager(Realm.REALM_SYSTEM, new SystemUserManager()); sec.setRoleManager(new MgnlRoleManager()); ComponentsTestUtil.setInstance(SecuritySupport.class, sec); } @@ -88,14 +85,14 @@ { Criteria criteria = JCRCriteriaFactory .createCriteria() - .setWorkspace(RepositoryConstants.WEBSITE) + .setWorkspace(ContentRepository.WEBSITE) .setBasePath("/jcr:root/escape-sign/fo°o/*") - .add(Restrictions.eq("@jcr:primaryType", MgnlNodeType.NT_CONTENT)); + .add(Restrictions.eq("@jcr:primaryType", ItemType.CONTENT)); AdvancedResult result = criteria.execute(); - ResultIterator< ? extends Node> iterator = result.getItems(); + ResultIterator< ? extends Content> iterator = result.getItems(); Assert.assertTrue(iterator.hasNext()); - Node resultNode = iterator.next(); - Assert.assertEquals(CriteriaTestUtils.title(resultNode), "bar"); + Content resultNode = iterator.next(); + Assert.assertEquals(resultNode.getTitle(), "bar"); } /** @@ -107,14 +104,14 @@ { Criteria criteria = JCRCriteriaFactory .createCriteria() - .setWorkspace(RepositoryConstants.WEBSITE) + .setWorkspace(ContentRepository.WEBSITE) .setBasePath("/jcr:root/escape-sign/fo$o/*") - .add(Restrictions.eq("@jcr:primaryType", MgnlNodeType.NT_CONTENT)); + .add(Restrictions.eq("@jcr:primaryType", ItemType.CONTENT)); AdvancedResult result = criteria.execute(); - ResultIterator< ? extends Node> iterator = result.getItems(); + ResultIterator< ? extends Content> iterator = result.getItems(); Assert.assertTrue(iterator.hasNext()); - Node resultNode = iterator.next(); - Assert.assertEquals(CriteriaTestUtils.title(resultNode), "baz"); + Content resultNode = iterator.next(); + Assert.assertEquals(resultNode.getTitle(), "baz"); } } Added: magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/resources/crit-bootstrap/userroles.anonymous.xml =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/resources/crit-bootstrap/userroles.anonymous.xml (rev 0) +++ magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/resources/crit-bootstrap/userroles.anonymous.xml 2014-03-03 16:50:52 UTC (rev 4563) @@ -0,0 +1,499 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" sv:name="anonymous"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:role</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>d98728c7-b80f-444d-bfda-b54b28dc240c</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activationStatus" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2006-05-04T17:05:39.645+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastModified" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.003+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastModifiedBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value/> + </sv:property> + <sv:node sv:name="acl_Store"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>f1c63218-b05d-41c4-a699-5a15b0f68317</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2007-04-27T15:30:37.283+02:00</sv:value> + </sv:property> + <sv:node sv:name="0"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>6c1b4e6f-179a-498f-ab89-81fea9207b04</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2007-04-27T15:30:37.284+02:00</sv:value> + </sv:property> + <sv:property sv:name="path" sv:type="String"> + <sv:value>/*</sv:value> + </sv:property> + <sv:property sv:name="permissions" sv:type="Long"> + <sv:value>8</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="acl_Expressions"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>fc6d875a-13d8-4551-b667-86db6cd486e8</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2007-04-27T15:30:37.543+02:00</sv:value> + </sv:property> + <sv:node sv:name="0"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>1c8ca47b-5112-445a-b7b8-4aacdebfc59c</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2007-04-27T15:30:37.544+02:00</sv:value> + </sv:property> + <sv:property sv:name="path" sv:type="String"> + <sv:value>/*</sv:value> + </sv:property> + <sv:property sv:name="permissions" sv:type="Long"> + <sv:value>8</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="acl_uri"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>d888a667-2b90-4040-9f9d-6f322f0664fc</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.009+02:00</sv:value> + </sv:property> + <sv:node sv:name="0"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>df4f0cee-01c7-4869-be8d-c63b43d5cd48</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.010+02:00</sv:value> + </sv:property> + <sv:property sv:name="path" sv:type="String"> + <sv:value>/*</sv:value> + </sv:property> + <sv:property sv:name="permissions" sv:type="Long"> + <sv:value>0</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="00"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>e11cc36b-190b-41f1-badb-3fba28ddb0f1</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.012+02:00</sv:value> + </sv:property> + <sv:property sv:name="path" sv:type="String"> + <sv:value>/.magnolia*</sv:value> + </sv:property> + <sv:property sv:name="permissions" sv:type="Long"> + <sv:value>0</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="acl_imaging"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>85557ec5-c2f0-47e9-ab37-2b6110cd0e5d</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.013+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="acl_website"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>705a827c-639d-41fb-8e02-1ebe02812664</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.015+02:00</sv:value> + </sv:property> + <sv:node sv:name="0"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>a5db2d45-7854-4a35-bae1-45fa9021bfdb</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.015+02:00</sv:value> + </sv:property> + <sv:property sv:name="path" sv:type="String"> + <sv:value>/*</sv:value> + </sv:property> + <sv:property sv:name="permissions" sv:type="Long"> + <sv:value>8</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="acl_users"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>5823bedf-49ad-4121-81b8-e4fc86489f12</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.017+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="acl_media"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>3ed47dd1-c076-4962-87b6-54d7089b4e51</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.018+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="acl_mgnlVersion"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>412438c8-0401-4c75-b9d1-329f862a066c</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.019+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="acl_resources"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>e6305fc5-6b49-4b55-a2eb-cf6106bee53c</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.021+02:00</sv:value> + </sv:property> + <sv:node sv:name="0"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>babded40-2e91-4eb5-8703-c5da59c51963</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.021+02:00</sv:value> + </sv:property> + <sv:property sv:name="path" sv:type="String"> + <sv:value>/*</sv:value> + </sv:property> + <sv:property sv:name="permissions" sv:type="Long"> + <sv:value>8</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="acl_config"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>1d251269-986e-4b59-942e-490c387dc322</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.023+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="acl_userroles"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>8b1bbe83-1e9c-43fe-ab6d-5d3d9391c9bf</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.024+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="acl_messages"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>9bd3cf2c-1fe4-4dba-9459-119b9a34ec3d</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.025+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="acl_data"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>85710131-1c71-4a5c-818e-9cd91b83ca56</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.026+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="acl_mgnlSystem"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>356eec7b-5418-4a09-bc79-9b059e67de31</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.028+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="acl_lms"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>56364942-3db9-4ab8-99df-00ec7cad4cfa</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.029+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="acl_playlists"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>7eaf5d7e-62a6-4301-bf59-f051394159bf</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.030+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="acl_templates"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>14ae319a-add2-4fdf-819a-cd8e92506bcf</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.031+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="acl_dms"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>60583cde-0a0e-4b74-b0bb-a31c39de8e05</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.033+02:00</sv:value> + </sv:property> + <sv:node sv:name="0"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>54ff16e9-b523-447e-a659-9313b3a24fb9</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.033+02:00</sv:value> + </sv:property> + <sv:property sv:name="path" sv:type="String"> + <sv:value>/*</sv:value> + </sv:property> + <sv:property sv:name="permissions" sv:type="Long"> + <sv:value>8</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="acl_usergroups"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>60c6a1ef-8ab2-4365-b5d2-183def11b950</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2012-04-06T16:06:24.034+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/resources/crit-bootstrap/userroles.anonymous.xml ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/xml \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/resources/crit-bootstrap/users.system.anonymous.xml =================================================================== --- magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/resources/crit-bootstrap/users.system.anonymous.xml (rev 0) +++ magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/resources/crit-bootstrap/users.system.anonymous.xml 2014-03-03 16:50:52 UTC (rev 4563) @@ -0,0 +1,152 @@ +<?xml version="1.0" encoding="UTF-8"?> +<sv:node xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" sv:name="anonymous"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:user</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>2d78094b-8f7e-4c95-8b1d-22e3dc417c34</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:activationStatus" sv:type="Boolean"> + <sv:value>false</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2006-05-04T17:05:03.710+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastModified" sv:type="Date"> + <sv:value>2007-04-19T10:20:08.554+02:00</sv:value> + </sv:property> + <sv:property sv:name="mgnl:lastModifiedBy" sv:type="String"> + <sv:value>superuser</sv:value> + </sv:property> + <sv:property sv:name="mgnl:template" sv:type="String"> + <sv:value/> + </sv:property> + <sv:property sv:name="language" sv:type="String"> + <sv:value>en</sv:value> + </sv:property> + <sv:property sv:name="pswd" sv:type="String"> + <sv:value>$2a$12$V19uaB7NAJbXpZMzNjkvZ.l1zwoTOpVe7V7loHz1LMjBnD80Py2DK</sv:value> + </sv:property> + <sv:property sv:name="title" sv:type="String"> + <sv:value>anonymous</sv:value> + </sv:property> + <sv:node sv:name="groups"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>f0a15b82-9f33-406b-ad22-f3a88324954b</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2007-04-19T10:20:08.561+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="roles"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>0ea2a469-5f64-49e4-a4ab-ef453ca88247</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2007-04-19T10:20:08.566+02:00</sv:value> + </sv:property> + <sv:property sv:name="0" sv:type="String"> + <sv:value>d98728c7-b80f-444d-bfda-b54b28dc240c</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="acl_users"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>2d10e6b9-26aa-4426-af16-ba64b9baed69</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2007-04-19T10:20:09.090+02:00</sv:value> + </sv:property> + <sv:node sv:name="0"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>66835e50-b16a-4c55-bff8-8ee07321b35f</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2007-04-19T10:20:09.095+02:00</sv:value> + </sv:property> + <sv:property sv:name="path" sv:type="String"> + <sv:value>/system/anonymous/*</sv:value> + </sv:property> + <sv:property sv:name="permissions" sv:type="Long"> + <sv:value>63</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="00"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:mixinTypes" sv:type="Name" sv:multiple="true"> + <sv:value>mix:lockable</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>0c099b4a-c6e4-46ea-a5a0-26f8066ad2dc</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2009-03-30T11:03:43.025+02:00</sv:value> + </sv:property> + <sv:property sv:name="path" sv:type="String"> + <sv:value>/system/anonymous</sv:value> + </sv:property> + <sv:property sv:name="permissions" sv:type="Long"> + <sv:value>8</sv:value> + </sv:property> + </sv:node> + </sv:node> + <sv:node sv:name="acl_userroles"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>fa99e1a0-05b5-49a7-9f33-5ca724364a67</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2007-04-19T10:20:09.091+02:00</sv:value> + </sv:property> + </sv:node> + <sv:node sv:name="acl_config"> + <sv:property sv:name="jcr:primaryType" sv:type="Name"> + <sv:value>mgnl:contentNode</sv:value> + </sv:property> + <sv:property sv:name="jcr:uuid" sv:type="String"> + <sv:value>78a74eef-5fba-4080-b824-0ea63196ad28</sv:value> + </sv:property> + <sv:property sv:name="jcr:createdBy" sv:type="String"> + <sv:value>admin</sv:value> + </sv:property> + <sv:property sv:name="mgnl:created" sv:type="Date"> + <sv:value>2007-04-19T10:20:09.093+02:00</sv:value> + </sv:property> + </sv:node> +</sv:node> Property changes on: magnoliamodules/branches/magnolia44/openutils-mgnlcriteria/src/test/resources/crit-bootstrap/users.system.anonymous.xml ___________________________________________________________________ Added: svn:mime-type ## -0,0 +1 ## +text/xml \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |