Modifier and Type | Class and Description |
---|---|
static class |
ApiTokenStats.SingleTokenStats |
Modifier and Type | Method and Description |
---|---|
ApiTokenStats.SingleTokenStats |
findTokenStatsById(String tokenUuid) |
protected static XmlFile |
getConfigFile(File parent) |
static ApiTokenStats |
load(File parent)
Deprecated.
use
load(User) instead
The method will be removed in a later version as it's an internal one |
static ApiTokenStats |
load(User user)
Loads the data from the user folder into the new object.
|
void |
removeId(String tokenUuid)
Will trigger the save if there is some modification
|
void |
save()
Saves the configuration info to the disk.
|
ApiTokenStats.SingleTokenStats |
updateUsageForId(String tokenUuid)
Will trigger the save
|
public void removeId(@Nonnull String tokenUuid)
@Nonnull public ApiTokenStats.SingleTokenStats updateUsageForId(@Nonnull String tokenUuid)
@Nonnull public ApiTokenStats.SingleTokenStats findTokenStatsById(@Nonnull String tokenUuid)
public void save()
@Deprecated @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Nonnull public static ApiTokenStats load(@CheckForNull File parent)
load(User)
instead
The method will be removed in a later version as it's an internal oneIf the file is not present, a fresh new instance is created.
@Nonnull public static ApiTokenStats load(@Nonnull User user)
If the folder does not exist yet, a fresh new instance is created.
Copyright © 2004–2019. All rights reserved.