public class BasePermissionStorage extends Object implements PermissionStorage
| Modifier and Type | Method and Description |
|---|---|
String[] |
getConditionalPermissionInfos()
Returns the persistent array of encoded ConditionalPermissionInfo strings
|
String[] |
getLocations()
Returns the locations that have permission data assigned to them,
that is, locations for which permission data
exists in persistent storage.
|
String[] |
getPermissionData(String location)
Gets the permission data assigned to the specified
location.
|
boolean |
isDirty() |
void |
saveConditionalPermissionInfos(String[] infos)
Persists the array of encoded ConditionalPermissionInfo strings
|
void |
setDirty(boolean dirty) |
void |
setPermissionData(String location,
String[] data)
Assigns the specified permission data to the specified
location.
|
public String[] getLocations() throws IOException
PermissionStoragegetLocations in interface PermissionStorageIOExceptionpublic String[] getPermissionData(String location) throws IOException
PermissionStoragegetPermissionData in interface PermissionStoragelocation - The location whose permission data is to
be returned.
The location can be null for the default permission data.IOExceptionpublic void setPermissionData(String location, String[] data) throws IOException
PermissionStoragesetPermissionData in interface PermissionStoragelocation - The location that will be assigned the
permissions.
The location can be null for the default permission data.data - The permission data to be assigned, or null
if the specified location is to be removed from persistent storaqe.IOExceptionpublic void saveConditionalPermissionInfos(String[] infos) throws IOException
PermissionStoragesaveConditionalPermissionInfos in interface PermissionStorageinfos - an array of encoded ConditionalPermissionInfo stringsIOExceptionpublic String[] getConditionalPermissionInfos() throws IOException
PermissionStoragegetConditionalPermissionInfos in interface PermissionStorageIOExceptionpublic boolean isDirty()
public void setDirty(boolean dirty)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.