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
PermissionStorage
getLocations
in interface PermissionStorage
IOException
public String[] getPermissionData(String location) throws IOException
PermissionStorage
getPermissionData
in interface PermissionStorage
location
- The location whose permission data is to
be returned.
The location can be null for the default permission data.IOException
public void setPermissionData(String location, String[] data) throws IOException
PermissionStorage
setPermissionData
in interface PermissionStorage
location
- 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.IOException
public void saveConditionalPermissionInfos(String[] infos) throws IOException
PermissionStorage
saveConditionalPermissionInfos
in interface PermissionStorage
infos
- an array of encoded ConditionalPermissionInfo stringsIOException
public String[] getConditionalPermissionInfos() throws IOException
PermissionStorage
getConditionalPermissionInfos
in interface PermissionStorage
IOException
public boolean isDirty()
public void setDirty(boolean dirty)
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.