info.magnolia.cms.beans.config
Class VersionConfig

java.lang.Object
  extended by info.magnolia.cms.beans.config.VersionConfig

public class VersionConfig
extends java.lang.Object

Versioning configuration. Defines if versions are created and how many version are kept.

Author:
Sameer Charles $Id: VersionConfig.java 41137 2011-01-06 18:19:25Z gjoseph $

Field Summary
static java.lang.String ACTIVE
          is versioning is active.
static java.lang.String MAX_VERSION_INDEX
          maximum index to keep.
 
Constructor Summary
VersionConfig()
           
 
Method Summary
static VersionConfig getInstance()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_VERSION_INDEX

public static final java.lang.String MAX_VERSION_INDEX
maximum index to keep.

See Also:
Constant Field Values

ACTIVE

public static final java.lang.String ACTIVE
is versioning is active. (at application level, JCR is always configured to version if implemented)

See Also:
Constant Field Values
Constructor Detail

VersionConfig

public VersionConfig()
Method Detail

getInstance

public static VersionConfig getInstance()

init

public void init()
Initialize bean.


load

public void load()
Its a fixed config bean.


reload

public void reload()
Read config and reload bean.


isActive

public boolean isActive()
Checks active flag in version config.

Returns:
true if versioning is active at application level

getMaxVersionAllowed

public long getMaxVersionAllowed()
Get maximum number of versions allowed in version history.

Returns:
max version index


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.