Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56170

Update ApiTokenProperty to use UserPropertyListener subclass

    XMLWordPrintable

Details

    Description

      Update the methods within the ApiTokenProperty class; to make use of a subclass of the UserPropertyListener abstract class or (preferably) interface. This subclass has methods which handle notification of api-token creations and deletions made from the Jenkins UI in a user's configuration page.

      • This update requires the creation of a new ApiTokenPropertyListener subclass of UserPropertyListener within the jenkins-core hudson/security package. The relevant method(s) in ApiTokenProperty then call this new listener.
      • Unit tests for the ApiTokenPropertyListener class method should be implemented, to verify its correctness, and should be added to the preexisting Jenkins unit tests for the ApiTokenProperty class.

      The UserPropertyListener abstract class or (preferably) interface related to listening for user property-change events was added in JENKINS-56005

      Attachments

        Activity

          jvz Matt Sicker added a comment -

          Moved to GitHub.

          jvz Matt Sicker added a comment - Moved to GitHub.

          People

            mide David Olorundare
            mide David Olorundare
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: