|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.security.GlobalPermissionsCache
This is a very basic singleton cache that stores permissions When constructed, or when you call refresh() - it will find and cache all permissions
Method Summary | |
static GlobalPermissionsCache |
getInstance()
|
GenericValue |
getPermission(JiraPermission jiraPermission)
|
java.util.Set |
getPermissions()
|
java.util.Collection |
getPermissions(int permissionType)
Get a Collection of permission based on a permissionType |
boolean |
hasPermission(JiraPermission jiraPermission)
|
void |
refresh()
Refresh the permissions cache IMPACT: Should perform only one SQL select statement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static GlobalPermissionsCache getInstance()
public void refresh()
public boolean hasPermission(JiraPermission jiraPermission)
public GenericValue getPermission(JiraPermission jiraPermission)
public java.util.Set getPermissions()
public java.util.Collection getPermissions(int permissionType)
permissionType
- must be global permission type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |