Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-14975

Allow using named parameters in page providers

    XMLWordPrintable

    Details

    • Impact type:
      API change
    • Upgrade notes:
      Hide

      The following method signature has been changed from:
      NXQLQueryBuilder.getQuery(String, Object[], boolean, boolean, SortInfo...)
      to:
      NXQLQueryBuilder.getQuery(String, Object[], boolean, boolean, DocumentModel, SortInfo...)

      Show
      The following method signature has been changed from: NXQLQueryBuilder.getQuery(String, Object[], boolean, boolean, SortInfo...) to: NXQLQueryBuilder.getQuery(String, Object[], boolean, boolean, DocumentModel, SortInfo...)
    • Sprint:
      Sprint Vlad 5.9.5-4
    • Story Points:
      5

      Description

      Currently the system supports only ordered parameters :

      • parameters are expressed with a ? in the NXQL query (or fixed part of the PageProvider)
      • values passed as an ordered list of String from the client side
      • values expansion is limited to $currentUser and $currentRepository

      To make this more useful, we should :

      • allow to pass a JSON Object to address the Named Parameters (WhereClause)
        • this will match the SearchDocumentModel
        • we can use the Properties structure to send a JSON object add parsing for Date and Number parameters

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 days
                  4d
                  Remaining:
                  Remaining Estimate - 4 days
                  4d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified