public class SimpleAuthorizationInfoOrdered extends Object implements org.apache.shiro.authz.AuthorizationInfo
| 限定符和类型 | 字段和说明 |
|---|---|
protected Collection<org.apache.shiro.authz.Permission> |
objectPermissions
Collection of all object-based permissions associaed with the account.
|
protected Collection<String> |
roles
The internal roles collection.
|
protected Collection<String> |
stringPermissions
Collection of all string-based permissions associated with the account.
|
| 构造器和说明 |
|---|
SimpleAuthorizationInfoOrdered()
Default no-argument constructor.
|
SimpleAuthorizationInfoOrdered(Collection<String> roles)
Creates a new instance with the specified roles and no permissions.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addObjectPermission(org.apache.shiro.authz.Permission permission)
Adds (assigns) a permission to those directly associated with the account.
|
void |
addObjectPermissions(Collection<org.apache.shiro.authz.Permission> permissions)
Adds (assigns) multiple permissions to those associated directly with the account.
|
void |
addRole(String role)
Adds (assigns) a role to those associated with the account.
|
void |
addRoles(Collection<String> roles)
Adds (assigns) multiple roles to those associated with the account.
|
void |
addStringPermission(String permission)
Adds (assigns) a permission to those directly associated with the account.
|
void |
addStringPermissions(Collection<String> permissions)
Adds (assigns) multiple permissions to those associated directly with the account.
|
Collection<org.apache.shiro.authz.Permission> |
getObjectPermissions() |
Collection<String> |
getRoles() |
Collection<String> |
getStringPermissions() |
void |
setObjectPermissions(Collection<org.apache.shiro.authz.Permission> objectPermissions)
Sets the object-based permissions assigned directly to the account.
|
void |
setRoles(Collection<String> roles)
Sets the roles assigned to the account.
|
void |
setStringPermissions(Collection<String> stringPermissions)
Sets the string-based permissions assigned directly to the account.
|
protected Collection<String> roles
protected Collection<String> stringPermissions
protected Collection<org.apache.shiro.authz.Permission> objectPermissions
public SimpleAuthorizationInfoOrdered()
public SimpleAuthorizationInfoOrdered(Collection<String> roles)
roles - the roles assigned to the realm account.public Collection<String> getRoles()
getRoles 在接口中 org.apache.shiro.authz.AuthorizationInfopublic void setRoles(Collection<String> roles)
roles - the roles assigned to the account.public void addRole(String role)
role - the role to add to those associated with the account.public void addRoles(Collection<String> roles)
roles - the roles to add to those associated with the account.public Collection<String> getStringPermissions()
getStringPermissions 在接口中 org.apache.shiro.authz.AuthorizationInfopublic void setStringPermissions(Collection<String> stringPermissions)
object permissions constitute the total permissions assigned directly to the
account.stringPermissions - the string-based permissions assigned directly to the account.public void addStringPermission(String permission)
permission - the permission to add to those directly assigned to the account.public void addStringPermissions(Collection<String> permissions)
permissions - the permissions to add to those associated directly with the account.public Collection<org.apache.shiro.authz.Permission> getObjectPermissions()
getObjectPermissions 在接口中 org.apache.shiro.authz.AuthorizationInfopublic void setObjectPermissions(Collection<org.apache.shiro.authz.Permission> objectPermissions)
string permissions constitute the total permissions assigned directly to the
account.objectPermissions - the object-based permissions assigned directly to the account.public void addObjectPermission(org.apache.shiro.authz.Permission permission)
Permission>) will be created automatically.permission - the permission to add to those directly assigned to the account.public void addObjectPermissions(Collection<org.apache.shiro.authz.Permission> permissions)
Permission>)
will be created automatically.permissions - the permissions to add to those associated directly with the account.Copyright © 2017. All rights reserved.