Examples of Tpl


Examples of com.jeecms.core.tpl.Tpl

        log.debug("templete ignore: {}", name);
        return null;
      }
    }
    name = "/" + name;
    Tpl tpl = get(name);
    if (tpl == null) {
      log.debug("templete not found: {}", name);
      return null;
    } else if (tpl.isDirectory()) {
      log.warn("template is a directory,not a file!");
      return null;
    } else {
      log.debug("templete loaded: {}", name);
      return tpl;
View Full Code Here

Examples of com.jeecms.core.tpl.Tpl

  }

  private void createParentDir(String name) {
    String[] dirs = DbTpl.getParentDir(name);
    DbTpl dirTpl;
    Tpl parentDir;
    for (String dir : dirs) {
      parentDir = get(dir);
      if (parentDir != null && !parentDir.isDirectory()) {
        throw new ParentDirIsFileExceptioin(
            "parent directory is a file: " + parentDir.getName());
      } else if (parentDir == null) {
        dirTpl = new DbTpl();
        dirTpl.setId(dir);
        dirTpl.setDirectory(true);
        dao.save(dirTpl);
View Full Code Here

Examples of com.jeecms.core.tpl.Tpl

  private boolean vldExist(String name, WebErrors errors) {
    if (errors.ifNull(name, "name")) {
      return true;
    }
    Tpl entity = tplManager.get(name);
    if (errors.ifNotExist(entity, Tpl.class, name)) {
      return true;
    }
    return false;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.