Map<String, String> parameter = new HashMap<String, String>();
parameter.put(SessionParameter.ATOMPUB_URL, CMIS_ENDPOINT_TEST_SERVER);
parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
Repository repository = sessionFactory.getRepositories(parameter).get(0);
return repository.createSession();
}
protected String getDocumentContentAsString(String nodeId) throws Exception {
CmisObject cmisObject = retrieveCMISObjectByIdFromServer(nodeId);
Document doc = (Document)cmisObject;