Copyright© 2008-2018 SiteVision AB, all rights reserved.
@Requireable(value="VersionUtil") public interface VersionUtil extends VelocityAccess.VersionUtilConstants
An instance of the SiteVision class implementing this interface can be obtained via
Utils.getVersionUtil()
.
See Utils
for how to obtain an instance of the Utils
interface.
Modifier and Type | Field and Description |
---|---|
static int |
OFFLINE_VERSION
The offline version (i.e. the version used when editing in the SiteVision editor) marker
|
static int |
ONLINE_VERSION
The online version (i.e. the published version that visitors can access) marker
|
Modifier and Type | Method and Description |
---|---|
int |
getCurrentVersion()
Gets current version
|
getOFFLINE_VERSION, getONLINE_VERSION
static final int OFFLINE_VERSION
static final int ONLINE_VERSION
int getCurrentVersion()
OFFLINE_VERSION
or ONLINE_VERSION
. If current version is undeterminable, -1 is returned.SiteVision - Portal and Content Management Made Easy
SiteVision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2018 SiteVision AB, all rights reserved.