类 FileHistoryListDirective
java.lang.Object
com.publiccms.common.directive.BaseTemplateDirective
com.publiccms.common.base.AbstractTemplateDirective
com.publiccms.views.directive.tools.FileHistoryListDirective
- 所有已实现的接口:
Directive
,HttpDirective
,freemarker.template.TemplateDirectiveModel
,freemarker.template.TemplateModel
fileHistoryList 文件修改历史列表获取指令
参数列表
parameter list
パラメータリスト
type
:文件类型【file,task,template】,默认templatepath
:文件路径orderField
: 排序类型【fileName,fileSize,modifiedDate,createDate】,默认fileName
返回结果
return result
戻り値
list
:文件列表@link 无效
com.publiccms.common.tools.CmsFileUtils$FileInfo
使用示例
usage example
使用例
<@tools.fileHistoryList path='/'><#list list as a>${a.fileName}<#sep>,</#list></@tools.fileHistoryList>
<script> $.getJSON('${site.dynamicPath}api/directive/tools/fileHistoryList?path=/&appToken=接口访问授权Token', function(data){ console.log(data); }); </script>
-
字段概要
从类继承的字段 com.publiccms.common.base.AbstractTemplateDirective
ADVANCED, APP_TOKEN, AUTH_TOKEN, AUTH_USER_ID, siteComponent
从类继承的字段 com.publiccms.common.directive.BaseTemplateDirective
log
从接口继承的字段 freemarker.template.TemplateModel
NOTHING
-
构造器概要
构造器 -
方法概要
从类继承的方法 com.publiccms.common.base.AbstractTemplateDirective
execute, expose, getAdvanced, getApp, getSite, getUser, getUserId, needUserToken, supportAdvanced
从类继承的方法 com.publiccms.common.directive.BaseTemplateDirective
execute, getName, getNamespace, getShortName, httpEnabled, setName, setNamespace, setShortName
-
构造器详细资料
-
FileHistoryListDirective
public FileHistoryListDirective()
-
-
方法详细资料
-
execute
public void execute(RenderHandler handler) throws IOException, freemarker.template.TemplateException - 参数:
handler
-- 抛出:
IOException
freemarker.template.TemplateException
-
needAppToken
public boolean needAppToken()- 覆盖:
needAppToken
在类中AbstractTemplateDirective
- 返回:
- whether need the app token
-