|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.Keyring net.sf.basedb.core.InternalStorageController.StorageKeyring
private static class InternalStorageController.StorageKeyring
Our own keyring containing the permissions we need to move the files. The required permissions are:
All other permissions are denied.
Field Summary | |
---|---|
private Map<Integer,Integer> |
emptyMap
|
private Set<Integer> |
emptySet
|
private Map<Item,Integer> |
permissions
|
Constructor Summary | |
---|---|
private |
InternalStorageController.StorageKeyring()
|
Method Summary | |
---|---|
(package private) int |
getAllPermissions(Item itemType,
UserData owner,
ItemKeyData itemKey,
ProjectKeyData projectKey)
Return 0. |
(package private) Set<Integer> |
getGroups()
Return empty set. |
(package private) Set<Integer> |
getItemKeys()
Return empty set. |
(package private) Set<Integer> |
getProjectKeys()
Return empty set. |
(package private) Map<Integer,Integer> |
getProjects()
Return empty map. |
(package private) boolean |
getReload()
Never reload since everything is static. |
(package private) int |
getRolePermissions(Item itemType)
Get the logged in user's permission to an unspecified item of a certain Item type. |
(package private) Set<Integer> |
getRoles()
Return empty set. |
(package private) int |
getSharedPermissions(ShareableData sharableData)
Return 0. |
(package private) Set<Integer> |
getUsers()
Return empty set. |
Methods inherited from class net.sf.basedb.core.Keyring |
---|
getGroups, getItemKeys, getPluginPermissions, getProjectKeys, init, setActiveProject, setReload, unload |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Map<Item,Integer> permissions
private final Set<Integer> emptySet
private final Map<Integer,Integer> emptyMap
Constructor Detail |
---|
private InternalStorageController.StorageKeyring()
Method Detail |
---|
boolean getReload()
getReload
in class Keyring
int getRolePermissions(Item itemType)
Keyring
Item
type. If Permission.DENIED
is set,
it overrides all other permissions.
getRolePermissions
in class Keyring
itemType
- The item type as defined by the Item
class
InternalStorageController.StorageKeyring
int getSharedPermissions(ShareableData sharableData)
getSharedPermissions
in class Keyring
int getAllPermissions(Item itemType, UserData owner, ItemKeyData itemKey, ProjectKeyData projectKey)
getAllPermissions
in class Keyring
Set<Integer> getRoles()
getRoles
in class Keyring
Set<Integer> getGroups()
Set<Integer> getUsers()
getUsers
in class Keyring
Map<Integer,Integer> getProjects()
getProjects
in class Keyring
Set<Integer> getItemKeys()
Set<Integer> getProjectKeys()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |