|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.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, getMaxProjectPermission, 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 Keyringint getRolePermissions(Item itemType)
Permission.ACT_AS_ANOTHER_USER if itemType =
Item.SYSTEM, 0 otherwise.
getRolePermissions in class KeyringitemType - 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 KeyringSet<Integer> getRoles()
getRoles in class KeyringSet<Integer> getGroups()
Set<Integer> getUsers()
getUsers in class KeyringMap<Integer,Integer> getProjects()
getProjects in class KeyringSet<Integer> getItemKeys()
Set<Integer> getProjectKeys()
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||