String contentMimeType = this.contentService.getWriter(actionedUponNodeRef, ContentModel.PROP_CONTENT, true).getMimetype().toString();
ce qui me retourne dans le cas d'un document word, le Mime Type suivant : application/msword. Existe-t'il un fonction permettant à son tour de retourner l'extension associé à ce Mime Type en l'occurence doc dans mon exemple.public String getExtension(String mimetype)
Bertrand.
Huberd va bientôt pouvoir écrire le livre du référence du développeur rien qu'en compilant ses messagesJe crois que c'est clair. C'est pas évident, mais je progresse assez vite. Bon je m'en va poster un nouveau sujet ;o))
J'arrive un peu après la bataille, mais pour info il y a dans Alfresco le MimetypeService qui sert justement à ça.En effet, MimetypeMap est une implémentation du MimetypeService
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.