Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-2256

Support security domains Facet Rules to also work on Boolean, Long, and Double

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 14.0.0
    • None
    • None

    Description

      A facet rule typically looks something like below:

      /availability-live:
        jcr:primaryType: hipposys:facetrule
        hipposys:equals: true
        hipposys:facet: hippo:availability
        hipposys:type: String
        hipposys:value: live
      

      The jcr nodes that match are the nodes that if the property hippo:availability is equal to live

      A very logical thing to select nodes whether they match or not are of course a certain boolean, for example

      /availability-live:
        jcr:primaryType: hipposys:facetrule
        hipposys:equals: true
        hipposys:facet: myproject:disclosed
        hipposys:filter: true
        hipposys:type: String
        hipposys:value: true
      

      something like above should result in that IF a node has the property myproject:disclosed , the facet rule only matches if the property has the value true , where this value can be myproject:disclosed as String property equal to "true" OR myproject:disclosed as Boolean property equal to Boolean.TRUE

      For a Long or Double, the value can be

        hipposys:value: 10
        hipposys:value: 10.23
      

      for a Date, you need to specify the String representation of the Date property.

      Attachments

        Activity

          People

            Unassigned Unassigned
            aschrijvers Ard Schrijvers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: