use of org.apache.chemistry.opencmis.client.api.Repository in project camel by apache.
the class CMISTestSupport method createSession.
protected Session createSession() {
SessionFactory sessionFactory = SessionFactoryImpl.newInstance();
Map<String, String> parameter = new HashMap<String, String>();
parameter.put(SessionParameter.ATOMPUB_URL, getUrl());
parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
Repository repository = sessionFactory.getRepositories(parameter).get(0);
return repository.createSession();
}
Aggregations