java-如何在jackrabbit-standalone命令行(cli)中切换工作区?
作者:互联网
如何在Jackrabbit独立命令行客户端中切换工作区?我有版本2.4.3.
我这样连接:
java -jar jackrabbit-standalone-2.4.3.jar --cli rmi://localhost:1100/jackrabbit
它以匿名身份登录我,因此我像这样切换到管理员:
[/] > logout
elapsed time: 2 ms.
[not logged in] > login admin admin
elapsed time: 21 ms.
[/] > info
Repository: rmi://localhost:1100/jackrabbit
User : admin
Workspace : default
Node : /
Session is live.
Session has no changes.
如何从默认切换工作区?我在帮助命令中找不到任何信息.它仅说明了如何创建新的工作空间或如何将节点克隆或复制到另一个工作空间.
解决方法:
您可以使用login命令执行此操作.让我们通过帮助登录获取登录命令的帮助:
[/] > help login
description:
Login to the current working Repository
usage:login <user> <password> -workspace <name>
<arguments>
name argument required description
---------- ---------- ---------- ----------------------------------------
user user false registered user name [default=anonymous]
password password false password [default = anonymous]
<options>
name argument required description
---------- ---------- ---------- ----------------------------------------
workspace name false workspace
因此,您需要这样登录:
login admin admin -workspace anotherWorkspace
标签:jcr,jackrabbit,java 来源: https://codeday.me/bug/20191029/1963724.html