Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13122

Add support for initializing Query Filters

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • 7.4
    • Query
    • None
    • Unknown

    Description

      Introduce the notion of InitializableQueryFilters.

      @Role
      public interface InitializableQueryFilter extends QueryFilter
      {
          void initialize(Map<String, Object> parameters) throws QueryException;
      }
      

      Example usage:

      $services.query.getNamedQuery("getAllAttachments").addFilter('where', {'clause' : '....'}).bindValue(...).execute()
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: