06-20-2016 12:15 PM
HashMap<String, String> params = new HashMap<String, String>();
params.put(SessionParameter.ATOMPUB_URL, "http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.0/atom");
params.put(SessionParameter.USER, user);//utente admin
params.put(SessionParameter.PASSWORD, password);//psw admin
params.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
params.put(SessionParameter.OBJECT_FACTORY_CLASS,"org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");
try
{
SessionFactory factory = SessionFactoryImpl.newInstance();
setSessionCMIS(factory.getRepositories(params).get(0).createSession());
}
catch (Exception e)
{
logger.error("Errore nella createSessionCMIS: " + e.hashCode() + ' ' + e.toString());
}
07-08-2016 04:45 AM
06-21-2016 03:35 AM
06-21-2016 03:41 AM
06-23-2016 01:35 PM
06-24-2016 03:29 AM
06-24-2016 09:16 AM
06-24-2016 09:57 AM
HashMap<String, String> params = new HashMap<String, String>();
params.put(SessionParameter.ATOMPUB_URL,"http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom");
params.put(SessionParameter.BROWSER_URL,"http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom");
params.put(SessionParameter.USER, user);
params.put(SessionParameter.PASSWORD, password);
params.put(SessionParameter.BINDING_TYPE, BindingType.BROWSER.value());
//params.put(SessionParameter.OBJECT_FACTORY_CLASS,"org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");
try
{
SessionFactory factory = SessionFactoryImpl.newInstance();
setSessionCMIS(factory.getRepositories(params).get(0).createSession());
}
catch (Exception e)
{
logger.error("Errore nella createSessionCMIS: " + e.hashCode() + ' ' + e.toString());
}
06-24-2016 12:16 PM
06-27-2016 07:30 AM
AlfrescoFolder destinationPath = (AlfrescoFolder) getSessionCMIS().getObjectByPath("/Sites/demo/documentLibrary/Qualità 18001/Istruzioni Operative/Documenti in redazione");
HashMap<String, String> params = new HashMap<String, String>();
//params.put(SessionParameter.ATOMPUB_URL, "http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser");
params.put(SessionParameter.BROWSER_URL,"http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser");
params.put(SessionParameter.USER, user);
params.put(SessionParameter.PASSWORD, password);
params.put(SessionParameter.BINDING_TYPE, BindingType.BROWSER.value());
//params.put(SessionParameter.OBJECT_FACTORY_CLASS,"org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");
try
{
SessionFactory factory = SessionFactoryImpl.newInstance();
setSessionCMIS(factory.getRepositories(params).get(0).createSession());
}
catch (Exception e)
{
logger.error("Errore nella createSessionCMIS: " + e.hashCode() + ' ' + e.toString());
}
HashMap<String, Object> metadati= new HashMap<>();
//Metadati per configurazione tipologia documento
metadati.put(PropertyIds.OBJECT_TYPE_ID,"D:fe:offerta,P:cm:titled" );
metadati.put(PropertyIds.NAME,fileName);
metadati.put("cm:title", "prova");
metadati.put("fe:organizzazione","Demo");
metadati.put("fe:numDoc",60);
07-08-2016 04:45 AM
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.