类 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.vo.Json index() throws IOException

      Index.

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

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

      public static cool.scx.vo.Json setFileContent(String filePath, String fileContent)

      setFileContent.

      参数:
      filePath - 文件路径
      fileContent - 文件内容
      返回:
      a Json object.
    • delete

      public static cool.scx.vo.Json delete(String filePath) throws IOException

      delete.

      参数:
      filePath - a Map object.
      返回:
      a Json object.
      抛出:
      IOException - if any.
    • upload

      public static cool.scx.vo.Json upload(cool.scx.bo.UploadedEntity file, String filePath)

      upload.

      参数:
      file - a File object.
      filePath - a String object.
      返回:
      a Json object.
    • rename

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

      rename.

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