|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.atlassian.jira.security.PermissionsCache
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 PermissionsCache |
getInstance()
|
org.ofbiz.core.entity.GenericValue |
getPermission(JiraPermission jiraPermission)
|
java.util.Collection |
getPermissionsByProject(int permType,
org.ofbiz.core.entity.GenericValue project)
Get a Collection of permissions based on a particular project. |
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 PermissionsCache getInstance()
public void refresh()
public boolean hasPermission(JiraPermission jiraPermission)
public org.ofbiz.core.entity.GenericValue getPermission(JiraPermission jiraPermission)
public java.util.Collection getPermissionsByProject(int permType, org.ofbiz.core.entity.GenericValue project)
permType
- Id of the Permissionproject
- The project that is part of the permission scheme
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |