Search in sources :

Example 1 with Repository

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();
}
Also used : SessionFactory(org.apache.chemistry.opencmis.client.api.SessionFactory) Repository(org.apache.chemistry.opencmis.client.api.Repository) HashMap(java.util.HashMap)

Aggregations

HashMap (java.util.HashMap)1 Repository (org.apache.chemistry.opencmis.client.api.Repository)1 SessionFactory (org.apache.chemistry.opencmis.client.api.SessionFactory)1