m_NodeService.getProperty(actionedUponNodeRef, ContentModel.PROP_NAME));
/**
* Renvoie le contenu sous forme de chaine de caractères
*
* @param uuid Identifiant du contenu Alfresco
* @return Contenu dans une chaine de caractères
* @throws ContentFault Erreur lors de l'appel du webservice
* @throws RemoteException Erreur réseau
*/
public static String getContentAsString ( String uuid )throws ContentFault, RemoteException{
Content content = null;
String str = null;
SessionUtils.startSession();
try{
Reference contentReference = new Reference(SessionUtils.STORE, uuid, null);
ContentServiceSoapBindingStub cs = WebServiceFactory.getContentService();
Content[] readResult = cs.read(new Predicate(new Reference[]{contentReference}, SessionUtils.STORE, null), Constants.PROP_CONTENT);
content = readResult[0];
str = ContentUtils.getContentAsString(content);
}catch(ContentFault cmExc){
throw cmExc;
}
finally{
SessionUtils.endSession();
}
return str;
}
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.