transient private BrowseBean browseBean;
List<Node> contentList = browseBean.getContent();
//litse des nodes resultats de la recherche
List<Node> contentList = browseBean.getContent();
Node node = (Node)contentList.get(0);
System.out.println("************** node.getPath() " + node.getPath());
System.out.println("************** node.getName() " + node.getName());
System.out.println("************** url " + node.getProperties().get("url"));
System.out.println("************** downloadUrl " + node.getProperties().get("downloadUrl"));
System.out.println("************** path " + node.getProperties().get("path"));
System.out.println("************** displayPath " + node.getProperties().get("displayPath"));
J'ai fait ça pour tester quelle propriété du node j'ai besion pour avoir le document proprement-dit avant de le zipper mais j'ai regardé le resultat mais aucune ne me donne le fichier.
ContentService cs ;
FileContentReader fContentReader = (FileContentReader) cs.getReader(
nodeRef, ContentModel.PROP_CONTENT);
return fContentReader.getFile();
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.