[
https://issues.apache.org/jira/browse/JCR-1607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
angela updated JCR-1607:
------------------------
Component/s: jackrabbit-jcr-server
add missing component
> Add a NamespaceHelper in jcr-commons
> ------------------------------------
>
> Key: JCR-1607
> URL: https://issues.apache.org/jira/browse/JCR-1607
> Project: Jackrabbit
> Issue Type: New Feature
> Components: jackrabbit-core, jackrabbit-jcr-commons,
> jackrabbit-jcr-server, namespace
> Reporter: Jukka Zitting
> Assignee: Jukka Zitting
> Priority: Minor
> Fix For: 1.5
>
>
> We have a number of code snippets in jackrabbit-core and many JCR clients
> that do something like the following:
> * get the prefix/URI for a given namespace URI/prefix without throwing an
> exception if the namespace is not found (return null instead)
> * get a Map containing all current namespace prefix->URI mappings
> * get the prefixed name for a given URI + local name pair in a given session
> (without a dependency to the SPI)
> * safely register a given namespace (don't throw if the namespace is already
> registered, automatically select an unused prefix if needed, etc.)
> I'd like to introduce a NamespaceHelper class in jcr-commons to cover such
> common code.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.