Package jease.cms.domain

Examples of jease.cms.domain.Parameter


import jfix.zk.View;

public class TableModel extends ObjectTableModel<Parameter> {

  public Parameter newObject() {
    return new Parameter();
  }
View Full Code Here


  /**
   * Returns value of parameter for given key or null if key doesn't exist.
   */
  public static String getParameter(String key) {
    Parameter parameter = Database.query(parameters).get(key);
    return parameter != null ? parameter.getValue() : null;
  }
View Full Code Here

  }

  private void setupParameter() {
    if (Database.query(Parameter.class).isEmpty()) {
      for (Parameter parameter : new Parameter[] {
          new Parameter(Names.JEASE_SITE_DESIGN, "bright"),
          new Parameter(Names.JEASE_REVISION_COUNT, "10"),
          new Parameter(Names.JEASE_REVISION_DAYS, "30") }) {
        Database.save(parameter);
      }
    }
  }
View Full Code Here

TOP

Related Classes of jease.cms.domain.Parameter

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.