@Singleton public class VersionConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVE
is versioning is active.
|
static String |
MAX_VERSION_INDEX
maximum index to keep.
|
Constructor and Description |
---|
VersionConfig() |
Modifier and Type | Method and Description |
---|---|
static VersionConfig |
getInstance()
Deprecated.
since 4.5, use IoC !
|
long |
getMaxVersionAllowed()
Get maximum number of versions allowed in version history.
|
void |
init()
Initialize bean.
|
boolean |
isActive()
Checks active flag in version config.
|
void |
load()
Its a fixed config bean.
|
void |
reload()
Read config and reload bean.
|
public static final String MAX_VERSION_INDEX
public static final String ACTIVE
@Deprecated public static VersionConfig getInstance()
public void init()
public void load()
public void reload()
public boolean isActive()
public long getMaxVersionAllowed()
Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.