08-29-2012 07:04 AM
08-30-2012 09:43 AM
09-12-2012 08:15 AM
Map<String, String> parameter = new HashMap<String, String>();
// user credentials
parameter.put(SessionParameter.USER, "admin@user");
parameter.put(SessionParameter.PASSWORD, "user");
// connection settings
parameter.put(SessionParameter.ATOMPUB_URL, "http://localhost:8080/alfresco/cmisatom");
parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
// set the alfresco object factory
parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");
// create session
SessionFactory factory = SessionFactoryImpl.newInstance();
Session session = factory.getRepositories(parameter).get(0).createSession();
object = session.getObjectByPath(nameFolder);
where nameFolder is an existing path on tenant, it throws an exceptionTags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.