Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4207

Add notifications upon tenant changes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • Tenant 1.0.2
    • None
    • Extensions
    • None

    Description

      Currently, there is no clean way to detect when a tenant has been added/removed/modified.

      We may detect when a change is required by implementing the TenantCustomizer interface, however, it tells nothing about the actual completion of the change.
      We may listen for OSGI events under /etc/tenants but this requires the user to know where the tenants are located (which afaik, currently is not exposed).

      In order to allow apps reacting on tenant changes, I propose to either:

      I. extend the current SPI with an interface TenantEventListener that users can implement ; or
      II. send OSGI events form the current implementation.

      In both cases, the events should cover

      • Tenant added
      • Tenant removed
      • Property added
      • Property removed

      Attachments

        1. SLING-4207.patch
          13 kB
          Timothee Maret
        2. SLING-4207.patch
          15 kB
          Timothee Maret
        3. SLING-4207.patch
          17 kB
          Timothee Maret
        4. SLING-4207.patch
          34 kB
          Timothee Maret

        Activity

          People

            fmeschbe Felix Meschberger
            marett Timothee Maret
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: