Hi, Am Montag, den 14.04.2008, 16:52 +0200 schrieb Alexander Klimetschek: > >> There should be some central API (OSGi service) that can be called > >> anywhere and that creates a valid name, acts in case of an existing > >> node in the repository, etc. All the stuff. There could be a very > >> simple implementation in Sling, and others could extend it by > >> replacing it with their own bundle. WDYT? > > > > If you could come up with such a service, we might certainly consider > > adding it. > > Argh, I shouldn't have raised my arm. ;-)
LOL > Actually, actually my minimum requirement is that the auto-naming code > is available as a (static) utility method for all code running in > sling, because you need it very often. And nobody should be forced to > re-invent the idea of valid characters every time.... We could add such a method to the JcrResourceUtil class of the jcr/resource module. This class contains other related methods such as getParent(String path) and getName(String path). So this would be kind of a fit. Regards Felix
