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

Lifecycle events for classes

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Minor
    • None
    • 0.9.840
    • Groovy
    • None

    Description

      Classes need to have event handlers such as "create", "modify", and "remove" where script code is stored as part of the class and executed whenever an object experiences the appropriate change.

      This should also extend to properties, perhaps the "modify" event should just receive parameters that indicate changes being applied. I also suggest a "validate" lifecycle event and accordant addition to the object editing interface.

      List properties also need a "get list values" method for arbitrary lists.

      Use cases include:

      • integration of external services
      • custom, dynamic list values
      • validation of object data

      Attachments

        Activity

          People

            Unassigned Unassigned
            hans Hans Gerwitz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: