public abstract class AbstractAppDirective extends BaseHttpDirective
限定符和类型 | 字段和说明 |
---|---|
private SysAppService |
appService |
private SysAppTokenService |
appTokenService |
private SysUserService |
sysUserService |
private SysUserTokenService |
sysUserTokenService |
构造器和说明 |
---|
AbstractAppDirective() |
限定符和类型 | 方法和说明 |
---|---|
void |
execute(RenderHandler handler) |
abstract void |
execute(RenderHandler handler,
SysApp app,
SysUser user) |
protected SysApp |
getApp(RenderHandler handler) |
SysSite |
getSite(RenderHandler handler) |
protected SysUser |
getUser(RenderHandler handler) |
abstract boolean |
needAppToken() |
abstract boolean |
needUserToken() |
execute, getName, getNamespace, getShortName, setName, setNamespace, setShortName
private SysUserTokenService sysUserTokenService
private SysUserService sysUserService
private SysAppTokenService appTokenService
private SysAppService appService
public SysSite getSite(RenderHandler handler) throws freemarker.template.TemplateModelException
handler
- freemarker.template.TemplateModelException
public void execute(RenderHandler handler) throws java.io.IOException, freemarker.template.TemplateException
java.io.IOException
freemarker.template.TemplateException
protected SysApp getApp(RenderHandler handler) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
protected SysUser getUser(RenderHandler handler) throws freemarker.template.TemplateModelException
freemarker.template.TemplateModelException
public abstract void execute(RenderHandler handler, SysApp app, SysUser user) throws java.io.IOException, freemarker.template.TemplateException
handler
- app
- user
- java.io.IOException
freemarker.template.TemplateException
public abstract boolean needAppToken()
public abstract boolean needUserToken()