1 13 package info.magnolia.cms.beans.config; 14 15 import info.magnolia.cms.util.FactoryUtil; 16 17 18 22 public class VersionConfig { 23 24 27 public static final String MAX_VERSION_INDEX = "maxVersionIndex"; 28 29 32 public static final String ACTIVE = "active"; 33 34 37 private static long maxVersions = 2; 39 public VersionConfig() { 40 } 42 43 public static VersionConfig getInstance() { 44 return (VersionConfig) FactoryUtil.getSingleton(VersionConfig.class); 45 } 46 47 50 public void init() { 51 load(); 52 } 53 54 57 public void load() { 58 } 60 61 64 public void reload() { 65 load(); 66 } 67 68 72 public boolean isActive() { 73 return true; 74 } 75 76 80 public long getMaxVersionAllowed() { 81 return maxVersions; 82 } 83 84 } 85 | Popular Tags |