While creating every document, i need to give them their icon path, I realised that in the default case (for a folder, note, or a file that we didn't retrieve a mime/type), i needed to retrieve the iconpath from the the Type (of NXTypeManager). So i retrieved the document.getType() wich is a String. and then with the NXTypeManagerService, i retrieved the required Type. I of course initialised once the service.
I was wondering if it wouldn't be better that the document.getType() return a Type directly. This would mean that NCXore would depend of NXTypeManager but it seem logic. It perturbed me cause i was retrieving the Type every time i was creating. And when creating i was using a Type name to create the document And the document didn't have any links to his Type (org.nuxeo.types.Type like) after that. Any remarks? Andreas This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
