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

Support for generic user properties that must be unique within the system

    XMLWordPrintable

    Details

      Description

      The Generic127CharTextPropertyHandler is useful to deal with a great variety of scenarios, however one important setup is possible to implement: when the user property should be unique accross the system.

      A new GenericUnique127CharTextPropertyHandler will solve this issue. The form validation code checks against the database if the same property value is already used by another user. If so, the form element does not validate and displays an error message. See email for a similar example.

      • Check does not apply against the same user which will be true when not modifying the property
      • Check does check if more than one exists, not if exactly one exists to be backward compatible. If more than one is found, a warning is written to the log but no error for the user
      • As an option the error should be customizable as well although not possible in the GUI. A standard error should be implemented.
      • Standard error: "This value is already usesd by user {0}. Please enter a unique value." | "Dieser Wert wird bereits von Benutzer {0}

        verwendet. Bitte geben Sie einen eindeutigen Wert ein." Variable 0 is username or email.

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            gnaegi Florian Gnägi
            Tester:
            Florian Gnägi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3 hours Original Estimate - 3 hours
                3h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 30 minutes
                4h 30m