私はAlfresco
activitiに新規であり、Alfresco
の問題は、JSP
とAlfresco
activitiの間のリンクを作成する方法を理解できていないということです。あなたはあなただけのServerUrl
、Username
とPassword
を追加する必要があなたのAlfresco
リポジトリJSPページとAlfresco activitiとの間のリンクを作成するには?
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();
}
に接続したい場合には
(デフォルトでは、それは
admin
、admin
になります)私たちはあると思いますより多くの情報が必要になります。あなたは何をしたいのですか? – Akah詳細情報が必要ですか、アプリケーションをalfrescoに接続する必要がありますか? Alfresco Activitiとはどういう意味ですか? –