Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-1929

Add methods isInUserProperty() and hasUserProperty() to course expert mode

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.5
    • Component/s: Course
    • Labels:
      None

      Description

      With isInAttribute("[AttrName]","[substring]") there is a function to test if a substring is part of a AAI-attribute. This should also be possible for regular user attributes. The same also applies for the hasAttribute() method.

      Method signature

      isInUserProperty("[AttrName]","[substring]")
      hasUserProperty("[AttrName]","[string]")
      # Example: 
      isInUserProperty("email" , "@domain.tld")
      hasUserProperty("email" , "@domain.tld")
      

      The methods are available in the expert mode only in the course editor.

      ToDo

      • Create new method isInUserProperty which is implemented in analogy to isInAttribute()
      • Create new method hasUserProperty which is implemented in analogy to hasAttribute()
      • Register new methods in ConditionInterpreter.java
      • In normal execution, test against user properties
      • In course preview, test against user properties from course preview configuration
      • Update manual (Method reference / documentation, add example)

        Attachments

          Activity

            People

            • Assignee:
              dfurrer Dirk Furrer
              Reporter:
              fetzer Raphael Fetzer
              Tester:
              Kirsten Scherer
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 3 hours, 30 minutes
                1d 3h 30m