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

Add support for initializing Query Filters

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 7.4
    • Fix Version/s: None
    • Component/s: Query
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      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

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                vmassol Vincent Massol
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: