Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3095

Make info.magnolia.cms.core.search.SearchFactory implementation configurable

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 4.3
    • None
    • None
    • None

      at the moment there is no way to configure a custom SearchFactory/QueryManager implementation, query manager is instantiated in a static method of a non-configurable class:

      public final class SearchFactory {
          public static QueryManager getAccessControllableQueryManager(javax.jcr.query.QueryManager queryManager,
                  HierarchyManager hm) {
              return (new QueryManagerImpl(queryManager, hm));
          }
      }
      

      I propose to turn SearchFactory into an interface, configure it in mgnl-beans and move the current code to a DefaultSearchFactory

        Acceptance criteria

              fgiust Fabrizio Giustina
              fgiust Fabrizio Giustina
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD