info.magnolia.cms.beans.config
Class VersionConfig

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

@Singleton
public class VersionConfig
extends Object

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

Author:
Sameer Charles $Id: VersionConfig.java 48388 2011-08-17 08:29:13Z dlipp $

Field Summary
static String ACTIVE
          is versioning is active.
static String MAX_VERSION_INDEX
          maximum index to keep.
 
Constructor Summary
VersionConfig()
           
 
Method Summary
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.
 
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 String MAX_VERSION_INDEX
maximum index to keep.

See Also:
Constant Field Values

ACTIVE

public static final 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()
Deprecated. since 4.5, use IoC !


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-2012 Magnolia International Ltd.. All Rights Reserved.