【问题标题】:Alfresco Document management system in spring application春季应用中的Alfresco文档管理系统
【发布时间】:2016-07-19 12:03:34
【问题描述】:

我是春季Alfresco文档管理系统的新手,但之前做过Alfresco活动工作流程。我想在春季开发 Alfresco DMS。

任何机构这样做请给我示例模型应用程序或相关的网站 url。

谢谢。

【问题讨论】:

标签: spring alfresco


【解决方案1】:

如果您想连接到您的 Alfresco 存储库

private static Session getSession(String serverUrl, String username, String password) {SessionFactory sessionFactory = SessionFactoryImpl.newInstance();
Map<String, String> params = new HashMap<>();
params.put(SessionParameter.USER, username);
params.put(SessionParameter.PASSWORD, password);
params.put(SessionParameter.ATOMPUB_URL, serverUrl);
params.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
List<Repository> repos = sessionFactory.getRepositories(params);
if (repos.isEmpty()) {
    throw new RuntimeException("Server has no repositories!");
}
return repos.get(0).createSession(); }

您只需添加您的ServerUrlUsernamePassword(默认为adminadmin

【讨论】:

  • 如果您需要另一种方法,请告诉我(不可能在一篇文章中分享所有方法)示例:我需要如何上传文件。
  • 我将在这里提供一个不需要发送电子邮件的示例 serverUrl = "ip@:8080/alfresco/api/-default-/public/cmis/versions/1.0/atom";你只需添加Alfresco Ip Adresse 示例,如果它是本地Alfresco 安装,只需将其设为 127.0.0.1
  • 有什么新东西吗?!?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-08-10
  • 1970-01-01
  • 2013-04-10
  • 1970-01-01
  • 2011-12-17
相关资源
最近更新 更多