Skip to content

Commit c4808e3

Browse files
committed
Jackalope Jackrabbit lock support
1 parent 85e181e commit c4808e3

12 files changed

+13
-11
lines changed

src/PHPCR/Shell/Console/Command/Phpcr/LockInfoCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function configure()
3333
);
3434

3535
$this->requiresDescriptor(RepositoryInterface::OPTION_LOCKING_SUPPORTED, true);
36-
$this->dequiresDescriptor('jackalope.not_implemented.lock.get');
36+
$this->dequiresDescriptor('jackalope.not_implemented.get_lock');
3737
}
3838

3939
public function execute(InputInterface $input, OutputInterface $output)

src/PHPCR/Shell/Console/Command/Phpcr/LockLockCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ protected function configure()
6262
);
6363

6464
$this->requiresDescriptor(RepositoryInterface::OPTION_LOCKING_SUPPORTED, true);
65+
$this->dequiresDescriptor('jackalope.not_implemented.get_lock');
6566
}
6667

6768
public function execute(InputInterface $input, OutputInterface $output)

src/PHPCR/Shell/Console/Command/Phpcr/LockRefreshCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function configure()
3333
HERE
3434
);
3535
$this->requiresDescriptor(RepositoryInterface::OPTION_LOCKING_SUPPORTED, true);
36-
$this->dequiresDescriptor('jackalope.not_implemented.lock.refresh');
36+
$this->dequiresDescriptor('jackalope.not_implemented.get_lock');
3737
}
3838

3939
public function execute(InputInterface $input, OutputInterface $output)

src/PHPCR/Shell/Console/Command/Phpcr/LockTokenAddCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function configure()
3131
HERE
3232
);
3333
$this->requiresDescriptor(RepositoryInterface::OPTION_LOCKING_SUPPORTED, true);
34-
$this->dequiresDescriptor('jackalope.not_implemented.lock.token');
34+
$this->dequiresDescriptor('jackalope.not_implemented.lock_token');
3535
}
3636

3737
public function execute(InputInterface $input, OutputInterface $output)

src/PHPCR/Shell/Console/Command/Phpcr/LockTokenListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected function configure()
3030
HERE
3131
);
3232
$this->requiresDescriptor(RepositoryInterface::OPTION_LOCKING_SUPPORTED, true);
33-
$this->dequiresDescriptor('jackalope.not_implemented.lock.token');
33+
$this->dequiresDescriptor('jackalope.not_implemented.lock_token');
3434
}
3535

3636
public function execute(InputInterface $input, OutputInterface $output)

src/PHPCR/Shell/Console/Command/Phpcr/LockTokenRemoveCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ protected function configure()
2828
HERE
2929
);
3030
$this->requiresDescriptor(RepositoryInterface::OPTION_LOCKING_SUPPORTED, true);
31-
$this->dequiresDescriptor('jackalope.not_implemented.lock.token');
31+
$this->dequiresDescriptor('jackalope.not_implemented.lock_token');
3232
}
3333

3434
public function execute(InputInterface $input, OutputInterface $output)

src/PHPCR/Shell/Console/Command/Phpcr/LockUnlockCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ protected function configure()
4444
HERE
4545
);
4646
$this->requiresDescriptor(RepositoryInterface::OPTION_LOCKING_SUPPORTED, true);
47+
$this->dequiresDescriptor('jackalope.not_implemented.get_lock');
4748
}
4849

4950
public function execute(InputInterface $input, OutputInterface $output)

src/PHPCR/Shell/Console/Command/Phpcr/NodeCloneCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function configure()
4545
this workspace (the destination workspace) has the same identifier as a node
4646
being cloned from srcWorkspace, then the incoming node takes precedence, and
4747
the existing node (and its subgraph) is removed. If
48-
<info>--remove-existing<info> option is not set then an identifier collision
48+
<info>--remove-existing</info> option is not set then an identifier collision
4949
causes this method to throw an ItemExistsException and no changes are made.
5050
5151
If successful, the change is persisted immediately, there is no need to call

src/PHPCR/Shell/Console/Command/Phpcr/QueryCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class QueryCommand extends BasePhpcrCommand
2121
protected function configure()
2222
{
2323
$this->setName('query');
24-
$this->setDescription('Execute a query ');
24+
$this->setDescription('Execute a SELECT query (advanced)');
2525
$this->addArgument('query');
2626
$this->addOption('language', 'l', InputOption::VALUE_OPTIONAL, 'The query language (e.g. jcr-sql2', 'JCR-SQL2');
2727
$this->addOption('limit', null, InputOption::VALUE_OPTIONAL, 'The query limit', 0);

src/PHPCR/Shell/Console/Command/Phpcr/QueryDeleteCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ class QueryDeleteCommand extends BasePhpcrCommand
2121
protected function configure()
2222
{
2323
$this->setName('delete');
24-
$this->setDescription('Execute a literal JCR-SQL2 query');
24+
$this->setDescription('Execute a DELETE query (non standard)');
2525
$this->addArgument('query');
2626
$this->setHelp(<<<EOT
27-
Execute a JCR-SQL2 query. Unlike other commands you can enter a query literally:
27+
Execute a DELETE query. Unlike other commands you can enter a query literally:
2828
2929
DELETE FROM [nt:unstructured] WHERE title = 'foo';
3030

0 commit comments

Comments
 (0)