类 TemplateHelper

java.lang.Object
cool.scx.ext.cms.template.TemplateHelper

public final class TemplateHelper extends Object
Cms 模板
版本:
0.3.6
作者:
scx567888
  • 构造器详细资料

    • TemplateHelper

      public TemplateHelper()
  • 方法详细资料

    • index

      public static cool.scx.mvc.vo.BaseVo index() throws IOException

      Index.

      返回:
      a Json object.
      抛出:
      IOException - if any.
    • getFileContent

      public static cool.scx.mvc.vo.BaseVo getFileContent(String filePath)
      获取文件内容
      参数:
      filePath - 文件路径
      返回:
      a Json object.
    • setFileContent

      public static cool.scx.mvc.vo.BaseVo setFileContent(String filePath, String fileContent) throws IOException
      a
      参数:
      filePath - a
      fileContent - a
      返回:
      a
      抛出:
      IOException - a
    • delete

      public static cool.scx.mvc.vo.BaseVo delete(String filePath) throws IOException
      抛出:
      IOException
    • upload

      public static cool.scx.mvc.vo.BaseVo upload(cool.scx.mvc.type.UploadedEntity file, String filePath) throws IOException
      抛出:
      IOException
    • rename

      public static cool.scx.mvc.vo.BaseVo rename(String newFilePath, String oldFilePath)

      rename.

      参数:
      newFilePath - 原文件路径
      oldFilePath - 新文件路径
      返回:
      a Json object.