Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add command with config file #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ composer.phar
composer.lock

/test

cli-config.php
60 changes: 60 additions & 0 deletions bin/jackalope
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/usr/bin/env php
<?php

($autoload = @include_once __DIR__ . '/../vendor/autoload.php') || $autoload = @include_once __DIR__ . '/../../../autoload.php';
if (!$autoload) {
die('You must set up the project dependencies, run the following commands:'.PHP_EOL.
'curl -s http://getcomposer.org/installer | php'.PHP_EOL.
'php composer.phar install'.PHP_EOL);
}

$configFile = getcwd() . DIRECTORY_SEPARATOR . 'cli-config.php';

$helperSet = null;
if (file_exists($configFile)) {
if (!is_readable($configFile)) {
trigger_error(
'Configuration file ['.$configFile.'] does not have read permission.',
E_USER_ERROR
);
}

require $configFile;

foreach ($GLOBALS as $helperSetCandidate) {
if ($helperSetCandidate instanceof \Symfony\Component\Console\Helper\HelperSet) {
$helperSet = $helperSetCandidate;
break;
}
}
} else {
trigger_error(
'Configuration file ['.$configFile.'] does not exist. Please check the README.md file.',
E_USER_ERROR
);
}

$helperSet = ($helperSet) ?: new \Symfony\Component\Console\Helper\HelperSet();

$cli = new \Symfony\Component\Console\Application('Jackalope Command Line Interface', '0.1');
$cli->setCatchExceptions(true);
$cli->setHelperSet($helperSet);
$cli->addCommands(array(
new \PHPCR\Util\Console\Command\NodeDumpCommand(),
new \PHPCR\Util\Console\Command\NodeMoveCommand(),
new \PHPCR\Util\Console\Command\NodeRemoveCommand(),
new \PHPCR\Util\Console\Command\NodeTouchCommand(),

new \PHPCR\Util\Console\Command\NodeTypeListCommand(),
new \PHPCR\Util\Console\Command\NodeTypeRegisterCommand(),

new \PHPCR\Util\Console\Command\WorkspaceCreateCommand(),
new \PHPCR\Util\Console\Command\WorkspaceDeleteCommand(),
new \PHPCR\Util\Console\Command\WorkspaceExportCommand(),
new \PHPCR\Util\Console\Command\WorkspaceImportCommand(),
new \PHPCR\Util\Console\Command\WorkspaceListCommand(),
new \PHPCR\Util\Console\Command\WorkspacePurgeCommand(),
new \PHPCR\Util\Console\Command\WorkspaceQueryCommand(),
));
$cli->run();

36 changes: 36 additions & 0 deletions cli-config.php.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

/* bootstrapping the repository implementation */

/*
* configuration
*/
use Jackalope\RepositoryFactoryContentful;

$accessToken = 'access-token';
$spaceId = 'space-id';
$workspace = 'lesbonneschoses'; // phpcr workspace to use
$user = null;
$pass = null;

$factory = new RepositoryFactoryContentful();
$repository = $factory->getRepository(array(
RepositoryFactoryContentful::KEY_JACKALOPE_CONTENTFUL_ACCESS_TOKEN => $accessToken,
RepositoryFactoryContentful::KEY_JACKALOPE_CONTENTFUL_SPACE_ID => $spaceId
));

$credentials = new \PHPCR\SimpleCredentials($user, $pass);

/* only create a session if this is not about the server control command */
if (isset($argv[1])
&& $argv[1] != 'list'
&& $argv[1] != 'help'
) {
$session = $repository->login($credentials, $workspace);

$helperSet = new \Symfony\Component\Console\Helper\HelperSet(array(
'dialog' => new \Symfony\Component\Console\Helper\DialogHelper(),
'phpcr' => new \PHPCR\Util\Console\Helper\PhpcrHelper($session),
'phpcr_console_dumper' => new \PHPCR\Util\Console\Helper\PhpcrConsoleDumperHelper(),
));
}
5 changes: 1 addition & 4 deletions src/Jackalope/Transport/RepositoryFactoryContentful.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
<?php

namespace Jackalope\Transport;
namespace Jackalope;

use Jackalope\Factory;
use Jackalope\FactoryInterface;
use Jackalope\Repository;
use Jackalope\Transport\Contentful\Client;
use PHPCR\RepositoryFactoryInterface;

Expand Down
24 changes: 12 additions & 12 deletions tests/fixtures/doctrine/05_Reading/encoding.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<value/>
<value/>
<value>tests</value>
<value>ab2f9571-e2e9-407d-91d4-300cd5a11afa</value>
<value>63326b63-1aed-48e9-8c84-15b3cb160200</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;sv:node xmlns:crx="http://www.day.com/crx/1.0"xmlns:lx="http://flux-cms.org/2.0"xmlns:test="http://liip.to/jackalope"xmlns:mix="http://www.jcp.org/jcr/mix/1.0"xmlns:sling="http://sling.apache.org/jcr/sling/1.0"xmlns:nt="http://www.jcp.org/jcr/nt/1.0"xmlns:fn_old="http://www.w3.org/2004/10/xpath-functions"xmlns:fn="http://www.w3.org/2005/xpath-functions"xmlns:vlt="http://www.day.com/jcr/vault/1.0"xmlns:xs="http://www.w3.org/2001/XMLSchema"xmlns:new_prefix="http://a_new_namespace"xmlns:jcr="http://www.jcp.org/jcr/1.0"xmlns:sv="http://www.jcp.org/jcr/sv/1.0"xmlns:rep="internal" /&gt;</value>
<value>0</value>
Expand All @@ -45,7 +45,7 @@
<value>tests_read_encoding</value>
<value/>
<value>tests</value>
<value>f6e9a809-902b-40e0-a77c-424056f60645</value>
<value>4526e3c6-3ab0-4569-8105-7ae4fe58a491</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="15"&gt;nt:unstructured&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
Expand All @@ -60,7 +60,7 @@
<value>testEncoding</value>
<value/>
<value>tests</value>
<value>10f2add2-d524-42c8-b899-7df9c8972bef</value>
<value>bed88cb7-449f-46aa-bb68-1013957a17ec</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="15"&gt;nt:unstructured&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
Expand All @@ -75,7 +75,7 @@
<value>node-ä-x</value>
<value/>
<value>tests</value>
<value>b1a5c00c-9e24-4d11-9e1f-9ec6fd339130</value>
<value>32dc330e-e374-4ad6-a3d7-c1f45a02b0c8</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="15"&gt;nt:unstructured&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
Expand All @@ -90,7 +90,7 @@
<value>node-è-x</value>
<value/>
<value>tests</value>
<value>e8ee71da-b5ba-4c1b-b6e6-d081a7e630a4</value>
<value>ff4928b0-89a5-4449-ae99-6228bdbb43db</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="15"&gt;nt:unstructured&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
Expand All @@ -105,7 +105,7 @@
<value>node-ï-x</value>
<value/>
<value>tests</value>
<value>c4cac451-eec0-4320-84e6-97bfafc560b8</value>
<value>265a4cac-8e68-4dc5-8c0f-2d5194e4e747</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="15"&gt;nt:unstructured&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
Expand All @@ -120,7 +120,7 @@
<value>node-%-x</value>
<value/>
<value>tests</value>
<value>e73d8080-81d9-4861-b099-c4d22776efd0</value>
<value>8e8febe6-cce1-4de7-b438-c1593ad82a6a</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="15"&gt;nt:unstructured&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
Expand All @@ -135,7 +135,7 @@
<value>node-%2F-x</value>
<value/>
<value>tests</value>
<value>11a84cb3-18f3-4111-b9ad-5159b638a342</value>
<value>8371b6dd-e03c-4cb3-95a8-5a328c7ce30b</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="15"&gt;nt:unstructured&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
Expand All @@ -150,7 +150,7 @@
<value>node- -x</value>
<value/>
<value>tests</value>
<value>79b1d8ed-a979-4f23-989a-8601b512d1fc</value>
<value>8c54d060-70de-40bd-8702-5455865720a3</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="15"&gt;nt:unstructured&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
Expand All @@ -165,7 +165,7 @@
<value>node-;-x</value>
<value/>
<value>tests</value>
<value>cc308821-51e8-412b-a565-f126f2a188f0</value>
<value>86060d9b-8331-4b9b-9456-8f2279596928</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="15"&gt;nt:unstructured&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
Expand All @@ -180,7 +180,7 @@
<value>node-ç-x</value>
<value/>
<value>tests</value>
<value>25b955e4-3696-447f-8d60-e29ea968985f</value>
<value>7fa87c4e-442e-41a0-87a9-b322b754b583</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="15"&gt;nt:unstructured&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
Expand All @@ -195,7 +195,7 @@
<value>node-&amp;-x</value>
<value/>
<value>tests</value>
<value>cce728a6-1467-4ee8-b512-d76feee52216</value>
<value>47520a06-12f3-42a3-bb92-900c0125aa29</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="15"&gt;nt:unstructured&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
Expand Down
12 changes: 6 additions & 6 deletions tests/fixtures/doctrine/06_Query/characters.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<value/>
<value/>
<value>tests</value>
<value>2f4829d6-62ab-4094-b311-3d0de21ba70f</value>
<value>7101aeea-2a3f-4364-978b-2e3cfed4cc8d</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;sv:node xmlns:crx="http://www.day.com/crx/1.0"xmlns:lx="http://flux-cms.org/2.0"xmlns:test="http://liip.to/jackalope"xmlns:mix="http://www.jcp.org/jcr/mix/1.0"xmlns:sling="http://sling.apache.org/jcr/sling/1.0"xmlns:nt="http://www.jcp.org/jcr/nt/1.0"xmlns:fn_old="http://www.w3.org/2004/10/xpath-functions"xmlns:fn="http://www.w3.org/2005/xpath-functions"xmlns:vlt="http://www.day.com/jcr/vault/1.0"xmlns:xs="http://www.w3.org/2001/XMLSchema"xmlns:new_prefix="http://a_new_namespace"xmlns:jcr="http://www.jcp.org/jcr/1.0"xmlns:sv="http://www.jcp.org/jcr/sv/1.0"xmlns:rep="internal" /&gt;</value>
<value>0</value>
Expand All @@ -45,7 +45,7 @@
<value>tests_query_characters</value>
<value/>
<value>tests</value>
<value>bef8bd86-93d3-494b-b9c5-99953e1c37ea</value>
<value>3d9f05cd-9ff4-4d8c-97ee-a3cb2683d1fe</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="15"&gt;nt:unstructured&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
Expand All @@ -60,7 +60,7 @@
<value>testCharacters</value>
<value/>
<value>tests</value>
<value>97ad899d-ce98-457c-a4c1-bbb2670eeb08</value>
<value>22d22399-cd13-4de8-8cba-fc4328008341</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="15"&gt;nt:unstructured&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
Expand All @@ -75,10 +75,10 @@
<value>propertyCharacterComparison</value>
<value/>
<value>tests</value>
<value>1b897240-4cd3-48f1-8720-54a9aafb6281</value>
<value>f0cc1236-c28c-4cfb-8ca8-1db694c9403f</value>
<value>nt:file</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="7"&gt;nt:file&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;sv:property sv:name="jcr:created" sv:type="date" sv:multi-valued="0"&gt;&lt;sv:value length="32"&gt;2016-06-02T06:41:39.000000+00:00&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;sv:property sv:name="jcr:createdBy" sv:type="string" sv:multi-valued="0"&gt;&lt;sv:value length="5"&gt;admin&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="7"&gt;nt:file&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;sv:property sv:name="jcr:created" sv:type="date" sv:multi-valued="0"&gt;&lt;sv:value length="32"&gt;2016-06-02T15:43:51.000000+00:00&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;sv:property sv:name="jcr:createdBy" sv:type="string" sv:multi-valued="0"&gt;&lt;sv:value length="5"&gt;admin&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
</value>
<value>3</value>
<value>2</value>
Expand All @@ -90,7 +90,7 @@
<value>content</value>
<value>jcr</value>
<value>tests</value>
<value>547e442c-414f-4237-afc3-ef58ed130b8d</value>
<value>a4836546-33e5-4e6a-9489-b8d9c44e7168</value>
<value>nt:unstructured</value>
<value>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;sv:node xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:sv="http://www.jcp.org/jcr/sv/1.0" xmlns:phpcr="http://www.jcp.org/jcr/phpcr/1.0" xmlns:rep="internal"&gt;&lt;sv:property sv:name="jcr:primaryType" sv:type="name" sv:multi-valued="0"&gt;&lt;sv:value length="15"&gt;nt:unstructured&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;sv:property sv:name="jcr:lastModified" sv:type="date" sv:multi-valued="0"&gt;&lt;sv:value length="29"&gt;2009-04-27T13:01:07.472000+02:00&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;sv:property sv:name="jcr:mimeType" sv:type="string" sv:multi-valued="0"&gt;&lt;sv:value length="10"&gt;text/plain&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;sv:property sv:name="class" sv:type="string" sv:multi-valued="0"&gt;&lt;sv:value length="26"&gt;PHPCR\Query\QueryInterface&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;sv:property sv:name="doublebackslash" sv:type="string" sv:multi-valued="0"&gt;&lt;sv:value length="28"&gt;PHPCR\\Query\\QueryInterface&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;sv:property sv:name="quotes" sv:type="string" sv:multi-valued="0"&gt;&lt;sv:value length="2"&gt;"'&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;sv:property sv:name="quoteandbackslash" sv:type="string" sv:multi-valued="0"&gt;&lt;sv:value length="13"&gt;'a\'\'b\'\'c'&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;sv:property sv:name="ampersand" sv:type="string" sv:multi-valued="0"&gt;&lt;sv:value length="13"&gt;&lt;![CDATA[foo &amp; bar&amp;baz]]&gt;&lt;/sv:value&gt;&lt;/sv:property&gt;&lt;/sv:node&gt;
Expand Down
Loading