public class VersionConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_DISPLAYNAME |
static java.lang.String |
ATTR_LIFECYCLE |
static java.lang.String |
ATTR_NAME |
static java.lang.String |
ATTR_RESTFRAMEWORKVERSION |
static java.lang.String |
ELEM_VERSION |
static java.lang.String |
LATEST_VERSION
Reserved keyword for identifying the latest version.
|
| Modifier and Type | Method and Description |
|---|---|
VersionDef |
findVersionByDisplayName(java.lang.String displayName)
Returns the version metadata for the specified version display name.
|
VersionDef |
findVersionByName(java.lang.String name)
Returns the version metadata for the specified version name.
|
VersionDef |
getLatestVersion()
Returns the latest supported version as defined in
adf-config.xml. |
static VersionConfig |
getNullVersionConfig() |
static VersionConfig |
initFromXML(org.w3c.dom.Element versionsNode) |
boolean |
isVersioningEnabled()
Returns
true if versioning is enabled in this application. |
public static final java.lang.String ELEM_VERSION
public static final java.lang.String ATTR_NAME
public static final java.lang.String ATTR_DISPLAYNAME
public static final java.lang.String ATTR_LIFECYCLE
public static final java.lang.String ATTR_RESTFRAMEWORKVERSION
public static final java.lang.String LATEST_VERSION
@Concealed public static VersionConfig initFromXML(org.w3c.dom.Element versionsNode)
<versions> node.@Concealed public static VersionConfig getNullVersionConfig()
<versions> defined.public boolean isVersioningEnabled()
true if versioning is enabled in this application.
In other words, a <versions> element is defined in
adf-config.xml. Note that this method returns true even if
the <versions> element is empty (i.e. no versions are
defined).public VersionDef getLatestVersion()
adf-config.xml. If versioning is not configured, a token
object with "latest" display name and empty name and lifecycle will be
returned.null if no
supported versions are defined in adf-config.xml.public VersionDef findVersionByDisplayName(java.lang.String displayName)
displayName is LATEST_VERSION, this method will
return the latest supported version as defined in
adf-config.xml.displayName - the display name for the versiongetLatestVersion()@Concealed public VersionDef findVersionByName(java.lang.String name)
name - version name