public abstract class TemplateAuthValidator extends java.lang.Object implements IntegerType
构造器和说明 |
---|
TemplateAuthValidator() |
限定符和类型 | 方法和说明 |
---|---|
abstract boolean |
detectTemplateNeedAuthenticate(javax.servlet.http.HttpServletRequest request,
java.lang.String templateId) |
abstract boolean |
detectTemplateRoleAuthority(javax.servlet.http.HttpServletRequest request,
java.lang.String userId,
java.lang.String templateId) |
static TemplateAuthValidator |
fromInteger(int value) |
abstract java.lang.String |
getTemplateId(javax.servlet.http.HttpServletRequest request,
com.fr.third.springframework.web.method.HandlerMethod handlerMethod) |
abstract int |
getTypeValue() |
static void |
registerTemplateAuthValidator(TemplateAuthValidator templateAuthValidator)
注册不同类型产品的模板认证类型
|
int |
toInteger()
枚举值转为整数结果
|
public abstract int getTypeValue()
public abstract java.lang.String getTemplateId(javax.servlet.http.HttpServletRequest request, com.fr.third.springframework.web.method.HandlerMethod handlerMethod)
public abstract boolean detectTemplateNeedAuthenticate(javax.servlet.http.HttpServletRequest request, java.lang.String templateId)
public abstract boolean detectTemplateRoleAuthority(javax.servlet.http.HttpServletRequest request, java.lang.String userId, java.lang.String templateId)
public int toInteger()
IntegerType
toInteger
在接口中 IntegerType
public static TemplateAuthValidator fromInteger(int value)
public static void registerTemplateAuthValidator(TemplateAuthValidator templateAuthValidator) throws java.lang.IllegalArgumentException
templateAuthValidator
- 模板认证类型java.lang.IllegalArgumentException
- 异常