public class LocalFileRoleAccessor extends Object implements IRoleAccessor
| 构造器和说明 |
|---|
LocalFileRoleAccessor(String roleDirPath) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
deleteRole(String rolename)
Delete a role's in lower storage.
|
List<String> |
listAllRoles()
List all roles in this database.
|
Role |
loadRole(String rolename)
Deserialize a role from lower storage.
|
void |
reset()
Re-initialize this object.
|
void |
saveRole(Role role)
Serialize the role object to lower storage.
|
public LocalFileRoleAccessor(String roleDirPath)
public Role loadRole(String rolename) throws IOException
IRoleAccessorloadRole 在接口中 IRoleAccessorrolename - The name of the role to be deserialized.IOException - if IOException is raised when interacting with lower storage.public void saveRole(Role role) throws IOException
IRoleAccessorsaveRole 在接口中 IRoleAccessorrole - The role object that is to be saved.IOException - if IOException is raised when interacting with lower storage.public boolean deleteRole(String rolename) throws IOException
IRoleAccessordeleteRole 在接口中 IRoleAccessorrolename - The name of the role to be deleted.IOException - if IOException is raised when interacting with lower storage.public List<String> listAllRoles()
IRoleAccessorlistAllRoles 在接口中 IRoleAccessorpublic void reset()
IRoleAccessorreset 在接口中 IRoleAccessorCopyright © 2022 The Apache Software Foundation. All rights reserved.