|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.atlassian.jira.security.AbstractPermissionManager | +--com.atlassian.jira.security.DefaultPermissionManager
Constructor Summary | |
DefaultPermissionManager()
You shouldn't use this constructor. |
Method Summary | |
void |
addPermission(JiraPermission perm)
Add a permission using a JiraPermission object |
java.util.Collection |
getGlobalPermissions(int permType)
|
java.util.Collection |
getPermissions(int permType,
org.ofbiz.core.entity.GenericValue entity)
|
java.util.Collection |
getProjectGroups(int permType,
org.ofbiz.core.entity.GenericValue entity)
Get the groups that have a permission type for a particular entity |
java.util.Collection |
getUsersWithPermission(int permType,
org.ofbiz.core.entity.GenericValue entity)
Get all the users that have the permission for this entity |
boolean |
hasPermission(JiraPermission perm)
|
void |
removeGroupPermissions(java.lang.String group)
|
boolean |
removePermission(JiraPermission perm)
Remove a permission |
void |
removeSchemePermissions(org.ofbiz.core.entity.GenericValue project)
|
Methods inherited from class com.atlassian.jira.security.AbstractPermissionManager |
addPermission, addPermission, getAllGroups, getGroups, getProjects, getProjects, hasAnonymousPermission, hasGlobalAnonymousPermission, hasGlobalPermission, hasGroupsPermission, hasPermission, hasProjects, hasProjects, hasUserGroupPermission, hasUserPermission, removePermission |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultPermissionManager()
Method Detail |
public void addPermission(JiraPermission perm) throws CreateException
PermissionManager
addPermission
in interface PermissionManager
addPermission
in class AbstractPermissionManager
CreateException
public boolean removePermission(JiraPermission perm) throws RemoveException
PermissionManager
removePermission
in interface PermissionManager
removePermission
in class AbstractPermissionManager
RemoveException
public boolean hasPermission(JiraPermission perm)
hasPermission
in interface PermissionManager
hasPermission
in class AbstractPermissionManager
public java.util.Collection getGlobalPermissions(int permType)
getGlobalPermissions
in interface PermissionManager
getGlobalPermissions
in class AbstractPermissionManager
public java.util.Collection getPermissions(int permType, org.ofbiz.core.entity.GenericValue entity)
getPermissions
in interface PermissionManager
getPermissions
in class AbstractPermissionManager
public void removeSchemePermissions(org.ofbiz.core.entity.GenericValue project) throws RemoveException
removeSchemePermissions
in interface PermissionManager
removeSchemePermissions
in class AbstractPermissionManager
RemoveException
public void removeGroupPermissions(java.lang.String group) throws RemoveException
removeGroupPermissions
in interface PermissionManager
removeGroupPermissions
in class AbstractPermissionManager
RemoveException
public java.util.Collection getProjectGroups(int permType, org.ofbiz.core.entity.GenericValue entity) throws java.lang.Exception
getProjectGroups
in interface PermissionManager
getProjectGroups
in class AbstractPermissionManager
java.lang.Exception
public java.util.Collection getUsersWithPermission(int permType, org.ofbiz.core.entity.GenericValue entity) throws java.lang.Exception
getUsersWithPermission
in interface PermissionManager
getUsersWithPermission
in class AbstractPermissionManager
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |