Package net.sf.basedb.core
Class InternalJobQueue.JobQueueKeyring
java.lang.Object
net.sf.basedb.core.Keyring
net.sf.basedb.core.InternalJobQueue.JobQueueKeyring
- Enclosing class:
- InternalJobQueue
Our own keyring containing the permissions we need to execute the jobs.
The only required permission is:
Permission.ACT_AS_ANOTHER_USER
.
All other permissions are denied.-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final int
-
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 -
jobPermissions
private final int jobPermissions -
emptySet
-
emptyMap
-
-
Constructor Details
-
JobQueueKeyring
private JobQueueKeyring()
-
-
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.
-