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

Update ApiTokenProperty to use UserPropertyListener subclass

      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

          [JENKINS-56170] Update ApiTokenProperty to use UserPropertyListener subclass

          David Olorundare created issue -
          David Olorundare made changes -
          Epic Link New: JENKINS-54082 [ 194705 ]
          David Olorundare made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          David Olorundare made changes -
          Status Original: In Progress [ 3 ] New: Open [ 1 ]
          David Olorundare made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          David Olorundare made changes -
          Assignee New: David Olorundare [ mide ]
          David Olorundare made changes -
          Summary Original: Update ApiTokenProperty use of SecurityListener New: Update ApiTokenProperty use of UserPropertyListener
          David Olorundare made changes -
          Description Original: Update the methods within the ApiTokenProperty class; to make use of the user-property-change listener method of the SecurityListener class. The class has methods which handle api-token creations and deletions made from the Jenkins UI in a user's configuration page.
           * To perform this update will require modifying the ApiTokenProperty class within the jenkins-core hudson/security package.
           * Unit tests for the updated ApiTokenProperty class method should be implemented, to verify its correctness, and should be added to the preexisting Jenkins unit tests for the ApiTokenProperty class.

          The SecurityListener class method related to listening for user-property-change events was added in JENKINS-56005
          New: 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.
           * To perform this update will require creating a ApiTokenPropertyListener subclass of UserPropertyListener within the jenkins-core hudson/security package.
           * 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
          David Olorundare made changes -
          Description Original: 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.
           * To perform this update will require creating a ApiTokenPropertyListener subclass of UserPropertyListener within the jenkins-core hudson/security package.
           * 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
          New: 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
          David Olorundare made changes -
          Summary Original: Update ApiTokenProperty use of UserPropertyListener New: Update ApiTokenProperty to use UserPropertyListener subclass

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

              Created:
              Updated:
              Resolved: