Package net.sf.basedb.core
Class ServiceSessionControl.ServicesKeyring
java.lang.Object
net.sf.basedb.core.Keyring
net.sf.basedb.core.ServiceSessionControl.ServicesKeyring
- Enclosing class:
- ServiceSessionControl
Our own keyring containing the only permission:
Permission.ACT_AS_ANOTHER_USER
.
All other permissions are denied.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) int
getAllPermissions
(Item itemType, UserData owner, ItemKeyData itemKey, ProjectKeyData projectKey) Return 0.Return empty set.Return empty set.Return empty set.Return empty map.(package private) boolean
Never reload since everything is static.(package private) int
getRolePermissions
(Item itemType) getRoles()
Return empty set.(package private) int
getSharedPermissions
(ShareableData sharableData) Return 0.getUsers()
Return empty set.Methods inherited from class net.sf.basedb.core.Keyring
getGroups, getInactiveRoles, getItemKeys, getMaxProjectPermission, getPluginPermissions, getProjectKeys, init, setActiveProject, setReload, setRoleInactive, unload
-
Field Details
-
systemPermissions
private final int systemPermissions -
emptySet
-
emptyMap
-
-
Constructor Details
-
ServicesKeyring
private ServicesKeyring()
-
-
Method Details
-
getReload
boolean getReload()Never reload since everything is static. -
getRolePermissions
- Overrides:
getRolePermissions
in classKeyring
- Parameters:
itemType
- The item type as defined by theItem
class- Returns:
- The permission
-
getAllPermissions
int getAllPermissions(Item itemType, UserData owner, ItemKeyData itemKey, ProjectKeyData projectKey) Return 0.- Overrides:
getAllPermissions
in classKeyring
-
getRoles
Return empty set. -
getGroups
Return empty set. -
getUsers
Return empty set. -
getProjects
Return empty map.- Overrides:
getProjects
in classKeyring
-
getItemKeys
Return empty set. -
getProjectKeys
Return empty set.
-