类 AbstractAppDirective
java.lang.Object
com.publiccms.common.directive.BaseHttpDirective
com.publiccms.common.base.AbstractAppDirective
- 所有已实现的接口:
Directive,HttpDirective
- 直接已知子类:
AppClientDirective,AppTokenDirective,AutoLoginDirective,BindingUserDirective,ClearCacheDirective,ContentCheckDirective,ContentClickDirective,ContentCreateDirective,LoginDirective,MyContentListDirective,RefreshTokenDirective,UnBindingUserDirective,UploadDirective
BaseDirective 自定义接口指令基类
-
字段概要
字段修饰符和类型字段说明private SysAppServiceprivate SysAppTokenServiceprivate SysUserServiceprivate SysUserTokenService -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidexecute(RenderHandler handler) abstract voidexecute(RenderHandler handler, SysApp app, SysUser user) protected SysAppgetApp(RenderHandler handler) getSite(RenderHandler handler) protected SysUsergetUser(RenderHandler handler) abstract booleanabstract boolean从类继承的方法 com.publiccms.common.directive.BaseHttpDirective
execute, getName, getNamespace, getShortName, setName, setNamespace, setShortName
-
字段详细资料
-
sysUserTokenService
-
sysUserService
-
appTokenService
-
appService
-
-
构造器详细资料
-
AbstractAppDirective
public AbstractAppDirective()
-
-
方法详细资料
-
getSite
- 参数:
handler-- 返回:
- site
- 抛出:
freemarker.template.TemplateModelException
-
execute
public void execute(RenderHandler handler) throws IOException, freemarker.template.TemplateException - 参数:
handler-- 抛出:
IOExceptionfreemarker.template.TemplateException
-
getApp
- 抛出:
freemarker.template.TemplateModelException
-
getUser
- 抛出:
freemarker.template.TemplateModelException
-
execute
public abstract void execute(RenderHandler handler, SysApp app, SysUser user) throws IOException, freemarker.template.TemplateException - 参数:
handler-app-user-- 抛出:
IOExceptionfreemarker.template.TemplateException
-
needAppToken
public abstract boolean needAppToken()- 返回:
- whether need the app token
-
needUserToken
public abstract boolean needUserToken()- 返回:
- whether need the user token
-