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.
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; }