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
private static class InternalJobQueue.JobQueueKeyring extends Keyring
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
Fields Modifier and Type Field Description private Map<Integer,Integer>
emptyMap
private Set<Integer>
emptySet
private int
jobPermissions
private int
systemPermissions
-
Constructor Summary
Constructors Modifier Constructor Description private
JobQueueKeyring()
-
Method Summary
Modifier and Type Method Description (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)
(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, 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.
-