Package jenkins.security.apitoken
Class ApiTokenStats
java.lang.Object
jenkins.security.apitoken.ApiTokenStats
- All Implemented Interfaces:
Saveable
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindTokenStatsById
(String tokenUuid) protected static XmlFile
getConfigFile
(File parent) static ApiTokenStats
Loads the data from the user folder into the new object.static ApiTokenStats
Deprecated.void
Will trigger the save if there is some modificationsvoid
removeAllExcept
(String tokenUuid) void
Will trigger the save if there is some modificationsvoid
save()
Saves the configuration info to the disk.updateUsageForId
(String tokenUuid) Will trigger the save
-
Method Details
-
removeId
Will trigger the save if there is some modifications -
removeAll
public void removeAll()Will trigger the save if there is some modifications -
removeAllExcept
-
updateUsageForId
Will trigger the save -
findTokenStatsById
-
save
public void save()Saves the configuration info to the disk. -
load
@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @NonNull public static ApiTokenStats load(@CheckForNull File parent) Deprecated.useload(User)
instead The method will be removed in a later version as it's an internal oneLoads the data from the disk into the new object.If the file is not present, a fresh new instance is created.
-
load
Loads the data from the user folder into the new object.If the folder does not exist yet, a fresh new instance is created.
-
getConfigFile
-
load(User)
instead The method will be removed in a later version as it's an internal one