我从Alfresco开始。我安装了 Alfresco 4 社区版,并尝试使用 OpenCMIS 连接到它。我从 OpenCMIS 页面获取了这段代码:
SessionFactory sessionFactory = SessionFactoryImpl.newInstance();
Map<String, String> parameter = new HashMap<String, String>();
parameter.put(SessionParameter.USER, "admin");
parameter.put(SessionParameter.PASSWORD, "admin");
parameter.put(SessionParameter.ATOMPUB_URL,
"http://repo.opencmis.org/inmemory/atom/");
parameter.put(SessionParameter.BINDING_TYPE,
BindingType.ATOMPUB.value());
parameter.put(SessionParameter.REPOSITORY_ID,
"");
Session s = sessionFactory.createSession(parameter);
但是,我找不到存储库 ID 应该是什么以及如何指定 Alfresco 的 URL。有人可以向我解释吗?谢谢你。