Package org.olat.core.util.vfs.version

Examples of org.olat.core.util.vfs.version.SimpleVersionConfig


  }
 
  public Long getNumOfVersions() {
    Object versioningConfigurator = CoreSpringFactory.getBean("org.olat.core.util.vfs.version.FolderVersioningConfigurator");
    if(versioningConfigurator instanceof SimpleVersionConfig) {
      SimpleVersionConfig config = (SimpleVersionConfig)versioningConfigurator;
      return config.getMaxNumberOfVersionsProperty();
    }
    return null;
  }
View Full Code Here


  }
 
  public void setNumOfVersions(int maxNumber) {
    Object versioningConfigurator = CoreSpringFactory.getBean("org.olat.core.util.vfs.version.FolderVersioningConfigurator");
    if(versioningConfigurator instanceof SimpleVersionConfig) {
      SimpleVersionConfig config = (SimpleVersionConfig)versioningConfigurator;
      config.setMaxNumberOfVersionsProperty(new Long(maxNumber));
    }
  }
View Full Code Here

TOP

Related Classes of org.olat.core.util.vfs.version.SimpleVersionConfig

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.