@Managed @Key(name="ByVersionGroupKindId",ordered=false,unique=true,fields={"versionId","groupId","groupKindId"}) @Key(name="ByGroupState",ordered=false,unique=false,fields={"groupKindId","groupId","state"}) public class Version extends java.lang.Object
A single configuration version.
Each version belongs to a named configuration. Each configuration can have multiple versions in memory simultaneously, but only one version can be active at a time.
Modifier and Type | Class and Description |
---|---|
static class |
Version.State
State of version
|
Modifier and Type | Field and Description |
---|---|
java.lang.String |
groupId
Group identifier
|
java.lang.String |
groupKindId
Group kind identifier
|
java.util.Date |
initialActiveDateTime
The initial activation time for this version.
|
java.lang.String |
loadCommand
Loaded with this command
|
java.util.Date |
loadDateTime
Date and time this version loaded
|
java.lang.String |
principal
The principal who applied the state change
|
Version.State |
state
Version state
|
java.util.Date |
stateChangeDateTime
Date and time version state changed
|
java.lang.String |
versionId
Version identifier
|
Modifier | Constructor and Description |
---|---|
protected |
Version()
Create a new Version
|
Modifier and Type | Method and Description |
---|---|
Config[] |
getConfigs()
Obtains all related Config instances
|
Group |
getName()
Returns the named configuration to which
this version belongs.
|
boolean |
isActive()
Returns true if this is the active version
for this configuration.
|
public final java.lang.String versionId
Version identifier
public final java.lang.String groupId
Group identifier
public final java.lang.String groupKindId
Group kind identifier
public final java.util.Date loadDateTime
Date and time this version loaded
public final java.util.Date initialActiveDateTime
The initial activation time for this version. Once set this value never changes. Deactivating and reactivating the version does not update this value.
public final java.lang.String loadCommand
Loaded with this command
public final java.util.Date stateChangeDateTime
Date and time version state changed
public final java.lang.String principal
The principal who applied the state change
public final Version.State state
Version state
protected Version()
public final Config[] getConfigs()
Obtains all related Config instances
Builds a sequence of Config instances that are related to this version
public final Group getName()
Returns the named configuration to which this version belongs.
public final boolean isActive()
Returns true if this is the active version for this configuration.