类 TemplateController
- java.lang.Object
-
- cool.scx.ext.cms.template.TemplateController
-
public class TemplateController extends Object
Cms 模板- 版本:
- 0.3.6
- 作者:
- scx567888
-
-
构造器概要
构造器 构造器 说明 TemplateController()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 cool.scx.vo.Jsondelete(String filePath)delete.cool.scx.vo.JsongetFileContent(String filePath)获取文件内容cool.scx.vo.Jsonindex()Index.cool.scx.vo.Jsonrename(String newFilePath, String oldFilePath)rename.cool.scx.vo.JsonsetFileContent(String filePath, String fileContent)setFileContent.cool.scx.vo.Jsonupload(cool.scx.bo.FileUpload file, String filePath)upload.
-
-
-
方法详细资料
-
index
public cool.scx.vo.Json index() throws IOExceptionIndex.
- 返回:
- a
Jsonobject. - 抛出:
IOException- if any.
-
getFileContent
public cool.scx.vo.Json getFileContent(String filePath)
获取文件内容- 参数:
filePath- 文件路径- 返回:
- a
Jsonobject.
-
setFileContent
public cool.scx.vo.Json setFileContent(String filePath, String fileContent)
setFileContent.
- 参数:
filePath- 文件路径fileContent- 文件内容- 返回:
- a
Jsonobject.
-
delete
public cool.scx.vo.Json delete(String filePath) throws IOException
delete.
- 参数:
filePath- aMapobject.- 返回:
- a
Jsonobject. - 抛出:
IOException- if any.
-
upload
public cool.scx.vo.Json upload(cool.scx.bo.FileUpload file, String filePath)upload.
-
-