类 TemplateController


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

      • TemplateController

        public TemplateController()
    • 方法详细资料

      • index

        public cool.scx.vo.Json index()
                               throws IOException

        Index.

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

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

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

        setFileContent.

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

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

        delete.

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

        public cool.scx.vo.Json upload​(cool.scx.bo.FileUpload file,
                                       String filePath)

        upload.

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

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

        rename.

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