Uploaded image for project: 'Magnolia REST Framework'
  1. Magnolia REST Framework
  2. MGNLREST-188

Make JCRDeliveryEndpoint extendable

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Neutral
    • None
    • None
    • None
    • None

    Description

      The JCRDeliveryEndpoint allows used to easily create an endpoint using some default settings which can be specified in the endpoint definition (JcrDeliveryEndpointDefinition).

      The JCRDeliveryEndpoint contains some really useful informatie, like the reference resolvers which can be used for retrieving images, contact, etc..

      With the current implementation of the JCRDeliveryEndpoint it's not possible to extend it correctly. To create an endpoint with the same functionality (use reference resolvers), but to only build a custom NodeIterator, you need to copy over most of the private method.

      Please make retrieval of the nodes overridable or make the methods like #initReferenceContext, #instantiatePredicate, #instantiateResolver, #shouldSupportI18n and the private class ReferenceResolverWrapper protected so we can extend the JCREndpointDefinition without copying all the private methods.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              jdiepeveen Jordie Diepeveen
              Votes:
              4 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoD