Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5513

Deprecate JcrResourceUtil

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • JCR Resource 2.7.0
    • JCR Resource 2.7.2
    • JCR
    • None

    Description

      I think we should deprecate the jcr resource API completely, most of it
      is already deprecated. Deprecating will allow us to get rid of it in the
      future and reduce the parts we have to maintain.

      Most of that API is very old and was created in a time where we didn't
      have CRUD support for resources. Now that we have this for some time,
      there shouldn't be a need for any of this API. And if so, jackrabbit
      would be a much better place.

      Right now, we still have not deprecated:
      JcrResourceUtil#query - Resource Resolver should be used instead.
      JcrResourceUtil#toJavaObject - Value Map should be used instead.
      JcrResourceUtil#createValue - Modifiable Value Map should be used instead.
      JcrResourceUtil#setProperty - Modifiable Value Map should be used instead.
      JcrResourceUtil#createPath - ResourceUtil#getOrCreateResource should be
      used instead

      This leaves us with some constants in JcrResourceConstants. Although I
      would love to get rid of them to not have any API at all in the jcr
      resource bundle, some of them are really related to the jcr resource
      provider.

      Attachments

        Activity

          People

            cziegeler Carsten Ziegeler
            cziegeler Carsten Ziegeler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: