jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (JCR-1607) Add a NamespaceHelper in jcr-commons
Date Fri, 16 May 2008 12:45:55 GMT

     [ https://issues.apache.org/jira/browse/JCR-1607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Jukka Zitting resolved JCR-1607.

       Resolution: Fixed
    Fix Version/s: 1.5

Resolved in revisions 657026 (impl in jcr-commons), 657028 (use in jcr-commons), 657037 (use
in core), and 65738 (use in jcr-server).

> 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, 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.

View raw message