public class AuthorityControlFilter extends java.lang.Object implements PrivilegeFilter
限定符和类型 | 字段和说明 |
---|---|
protected java.util.Map |
authorityAllocationMap |
DIGITAL_URL, NO_VERIFY_NEEDED, ROLE_VERIFY_NEEDED, USER_PASSWORD_VERIFY_NEEDED, XML_TAG
构造器和说明 |
---|
AuthorityControlFilter() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
addAuthorityAllocation(AuthorityAllocation authorityAllocation) |
java.util.Iterator |
authorityAllocationIterator()
获取保存角色和对应权限的MAP
|
protected void |
clearAuthorityAllocation() |
java.lang.Object |
clone() |
PrivilegeVote |
filter(javax.servlet.http.HttpServletRequest req)
是否通过权限认证
|
AuthorityAllocation |
getAuthorityAllocation(java.lang.String authorityName)
获取指定角色名的权限
|
int |
getID()
标示这个认证方式的编号
|
void |
init4Server()
初始化时执行
|
void |
joinAuthorityAllocationWithPrivilege(java.util.HashSet roleNameSet)
对以前版本做的兼容
|
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
protected boolean |
removeAuthorityAllocation(Authority auth) |
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
protected void addAuthorityAllocation(AuthorityAllocation authorityAllocation)
public void joinAuthorityAllocationWithPrivilege(java.util.HashSet roleNameSet)
roleNameSet
- 角色名集合protected boolean removeAuthorityAllocation(Authority auth)
public AuthorityAllocation getAuthorityAllocation(java.lang.String authorityName)
authorityName
- 角色名protected void clearAuthorityAllocation()
public java.util.Iterator authorityAllocationIterator()
public PrivilegeVote filter(javax.servlet.http.HttpServletRequest req)
filter
在接口中 PrivilegeFilter
req
- 保存用户和访问的报表的HTTP请求信息public void init4Server()
init4Server
在接口中 PrivilegeFilter
public int getID()
getID
在接口中 PrivilegeFilter
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
XMLWriter
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常