-
Task
-
Resolution: Fixed
-
Minor
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
Epic Link |
New:
|
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: Open [ 1 ] |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Assignee | New: David Olorundare [ mide ] |
Summary | Original: Update ApiTokenProperty use of SecurityListener | New: Update ApiTokenProperty use of UserPropertyListener |
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 |
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 |
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 |
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 |
Summary | Original: Update ApiTokenProperty use of UserPropertyListener | New: Update ApiTokenProperty to use UserPropertyListener subclass |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |