@Component public class OauthListDirective extends AbstractTemplateDirective
参数列表 返回结果
list
登录渠道名称列表
<@oauth.list><#list list as a>${a}<#sep>,</#list></@oauth.list>
<script> $.getJSON('${site.dynamicPath}api/directive/oauth/list', function(data){ console.log(data); }); </script>
限定符和类型 | 字段和说明 |
---|---|
private java.util.List<OauthGateway> |
oauthList |
ADVANCED, AUTH_TOKEN, AUTH_USER_ID, siteComponent
log
构造器和说明 |
---|
OauthListDirective() |
限定符和类型 | 方法和说明 |
---|---|
void |
execute(RenderHandler handler) |
execute, expose, getAdvanced, getApp, getSite, getUserId, needAppToken, needUserToken, supportAdvanced
execute, getName, getNamespace, getShortName, httpEnabled, setName, setNamespace, setShortName
@Autowired(required=false) private java.util.List<OauthGateway> oauthList
public void execute(RenderHandler handler) throws java.io.IOException, freemarker.template.TemplateException
java.io.IOException
freemarker.template.TemplateException