public class ApprovedGroupsCacheConfigurable extends java.lang.Object implements PersistentStateComponent<ApprovedGroupsCacheConfigurable.State>
Modifier and Type | Class and Description |
---|---|
static class |
ApprovedGroupsCacheConfigurable.State |
Constructor and Description |
---|
ApprovedGroupsCacheConfigurable() |
Modifier and Type | Method and Description |
---|---|
FUSWhitelist |
cacheGroups(java.util.Date date,
FUSWhitelist whitelist,
BuildNumber build) |
FUSWhitelist |
getCachedGroups(java.util.Date date,
long cacheActualDuration) |
FUSWhitelist |
getCachedGroups(java.util.Date date,
long cacheActualDuration,
BuildNumber currentBuild) |
static ApprovedGroupsCacheConfigurable |
getInstance() |
ApprovedGroupsCacheConfigurable.State |
getState() |
void |
loadState(ApprovedGroupsCacheConfigurable.State state)
This method is called when new component state is loaded.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initializeComponent, noStateLoaded
public static ApprovedGroupsCacheConfigurable getInstance()
public ApprovedGroupsCacheConfigurable.State getState()
getState
in interface PersistentStateComponent<ApprovedGroupsCacheConfigurable.State>
null
value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializer
public void loadState(ApprovedGroupsCacheConfigurable.State state)
PersistentStateComponent
State object should be used directly, defensive copying is not required.
loadState
in interface PersistentStateComponent<ApprovedGroupsCacheConfigurable.State>
state
- loaded component stateXmlSerializerUtil.copyBean(Object, Object)
public FUSWhitelist getCachedGroups(java.util.Date date, long cacheActualDuration, BuildNumber currentBuild)
public FUSWhitelist getCachedGroups(java.util.Date date, long cacheActualDuration)
public FUSWhitelist cacheGroups(java.util.Date date, FUSWhitelist whitelist, BuildNumber build)