As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
private static String USER = "admin"; private static String PASSWORD = "admin"; private static String SERVER_URL = "http://localhost:8081/alfresco/cmisatom"; public static Session getSession(){ SessionFactory factory = SessionFactoryImpl.newInstance(); Map<String, String> parameter = new HashMap<String,String>(); parameter.put(SessionParameter.USER, USER); parameter.put(SessionParameter.PASSWORD, PASSWORD); parameter.put(SessionParameter.ATOMPUB_URL, SERVER_URL); parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value()); parameter.put(SessionParameter.REPOSITORY_ID,"yourRepoID"); parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");