2.17.2: 2011-06-17

net.sf.basedb.core
Class InternalStorageController.StorageKeyring

java.lang.Object
  extended by net.sf.basedb.core.Keyring
      extended by net.sf.basedb.core.InternalStorageController.StorageKeyring
Enclosing class:
InternalStorageController

private static class InternalStorageController.StorageKeyring
extends Keyring

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

permissions

private final Map<Item,Integer> permissions

emptySet

private final Set<Integer> emptySet

emptyMap

private final Map<Integer,Integer> emptyMap
Constructor Detail

InternalStorageController.StorageKeyring

private InternalStorageController.StorageKeyring()
Method Detail

getReload

boolean getReload()
Never reload since everything is static.

Overrides:
getReload in class Keyring

getRolePermissions

int getRolePermissions(Item itemType)
Description copied from class: Keyring
Get the logged in user's permission to an unspecified item of a certain Item type. If Permission.DENIED is set, it overrides all other permissions.

Overrides:
getRolePermissions in class Keyring
Parameters:
itemType - The item type as defined by the Item class
Returns:
The permission
See Also:
InternalStorageController.StorageKeyring

getSharedPermissions

int getSharedPermissions(ShareableData sharableData)
Return 0.

Overrides:
getSharedPermissions in class Keyring

getAllPermissions

int getAllPermissions(Item itemType,
                      UserData owner,
                      ItemKeyData itemKey,
                      ProjectKeyData projectKey)
Return 0.

Overrides:
getAllPermissions in class Keyring

getRoles

Set<Integer> getRoles()
Return empty set.

Overrides:
getRoles in class Keyring

getGroups

Set<Integer> getGroups()
Return empty set.


getUsers

Set<Integer> getUsers()
Return empty set.

Overrides:
getUsers in class Keyring

getProjects

Map<Integer,Integer> getProjects()
Return empty map.

Overrides:
getProjects in class Keyring

getItemKeys

Set<Integer> getItemKeys()
Return empty set.


getProjectKeys

Set<Integer> getProjectKeys()
Return empty set.


2.17.2: 2011-06-17