|
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.InternalJobQueue.JobQueueKeyring
private static class InternalJobQueue.JobQueueKeyring
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 | |
---|---|
private Map<Integer,Integer> |
emptyMap
|
private Set<Integer> |
emptySet
|
private int |
systemPermissions
|
Constructor Summary | |
---|---|
private |
InternalJobQueue.JobQueueKeyring()
|
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)
Return Permission.ACT_AS_ANOTHER_USER if itemType =
Item.SYSTEM , 0 otherwise. |
(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 int systemPermissions
private final Set<Integer> emptySet
private final Map<Integer,Integer> emptyMap
Constructor Detail |
---|
private InternalJobQueue.JobQueueKeyring()
Method Detail |
---|
boolean getReload()
getReload
in class Keyring
int getRolePermissions(Item itemType)
Permission.ACT_AS_ANOTHER_USER
if itemType
=
Item.SYSTEM
, 0 otherwise.
getRolePermissions
in class Keyring
itemType
- The item type as defined by the Item
class
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 |