06-24-2013 12:14 AM
06-24-2013 05:02 AM
06-24-2013 07:47 PM
06-25-2013 02:24 AM
public static void main(String[] args) {
SessionFactory factory = SessionFactoryImpl.newInstance();
Map<String,String> parameters = new HashMap<String, String>();
parameters.put(SessionParameter.ATOMPUB_URL, "http://localhost:8080/alfresco/cmisatom");
parameters.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
parameters.put(SessionParameter.AUTH_HTTP_BASIC, "true");
parameters.put(SessionParameter.USER, "testuser2");
parameters.put(SessionParameter.PASSWORD, "test123");
parameters.put(SessionParameter.REPOSITORY_ID, "8d6fe36d-a3e0-40f4-aece-4639647c9bc8");
Session session = factory.createSession(parameters);
System.out.println(">>> " + session.getRootFolder().getName());
Map<String,String> folderProps = new HashMap<String, String>();
folderProps.put(PropertyIds.OBJECT_TYPE_ID, "cmis:folder");
folderProps.put(PropertyIds.NAME,"TestUser1234");
session.getRootFolder().createFolder(folderProps);
}
parameters.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");
06-25-2013 09:15 PM
06-26-2013 01:57 AM
06-26-2013 04:12 AM
06-26-2013 06:32 PM
Tags
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.