|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addPermission(int permType,
org.ofbiz.core.entity.GenericValue scheme,
java.lang.String group)
Add a permission for a particular project and group |
void |
addPermission(JiraPermission perm)
Add a permission using a JiraPermission object |
java.util.Collection |
getAllGroups(int permType,
org.ofbiz.core.entity.GenericValue entity)
Get all groups that have this permission type, in this project and globally |
java.util.Collection |
getGlobalPermissions(int permType)
|
java.util.Collection |
getGroups(int permType)
Get a set of groups with this global permission type |
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 a set of groups with this permission type and project |
java.util.Collection |
getProjects(int permType,
java.util.Collection groups)
|
java.util.Collection |
getProjects(int permType,
com.opensymphony.module.user.User user)
Get a collection of projects which a user can see (for a given permission) |
java.util.Collection |
getUsersWithPermission(int permType,
org.ofbiz.core.entity.GenericValue entity)
|
boolean |
hasGroupsPermission(int permType,
org.ofbiz.core.entity.GenericValue entity,
java.util.Collection groups)
|
boolean |
hasPermission(int permType,
org.ofbiz.core.entity.GenericValue project,
java.lang.String group)
|
boolean |
hasPermission(JiraPermission perm)
|
boolean |
hasProjects(int permType,
java.util.Collection groups)
|
boolean |
hasProjects(int permType,
com.opensymphony.module.user.User user)
Return true if there are any projects which match the given permission and user |
boolean |
hasUserPermission(int permType,
org.ofbiz.core.entity.GenericValue project,
com.opensymphony.module.user.User user)
|
void |
removeGroupPermissions(java.lang.String group)
|
boolean |
removePermission(int permType,
org.ofbiz.core.entity.GenericValue scheme,
java.lang.String group)
Remove a permission from a group in a particular scheme |
boolean |
removePermission(JiraPermission perm)
Remove a permission |
void |
removeSchemePermissions(org.ofbiz.core.entity.GenericValue scheme)
|
Method Detail |
public void addPermission(int permType, org.ofbiz.core.entity.GenericValue scheme, java.lang.String group) throws CreateException
CreateException
public void addPermission(JiraPermission perm) throws CreateException
CreateException
public boolean removePermission(JiraPermission perm) throws RemoveException
RemoveException
public boolean removePermission(int permType, org.ofbiz.core.entity.GenericValue scheme, java.lang.String group) throws RemoveException
RemoveException
public boolean hasPermission(int permType, org.ofbiz.core.entity.GenericValue project, java.lang.String group)
public boolean hasUserPermission(int permType, org.ofbiz.core.entity.GenericValue project, com.opensymphony.module.user.User user)
public boolean hasGroupsPermission(int permType, org.ofbiz.core.entity.GenericValue entity, java.util.Collection groups)
public boolean hasPermission(JiraPermission perm)
public java.util.Collection getGlobalPermissions(int permType)
public java.util.Collection getPermissions(int permType, org.ofbiz.core.entity.GenericValue entity)
public java.util.Collection getProjects(int permType, com.opensymphony.module.user.User user) throws java.lang.Exception
java.lang.Exception
public java.util.Collection getProjects(int permType, java.util.Collection groups) throws java.lang.Exception
java.lang.Exception
public boolean hasProjects(int permType, com.opensymphony.module.user.User user) throws java.lang.Exception
java.lang.Exception
public boolean hasProjects(int permType, java.util.Collection groups) throws java.lang.Exception
java.lang.Exception
public void removeSchemePermissions(org.ofbiz.core.entity.GenericValue scheme) throws RemoveException
RemoveException
public void removeGroupPermissions(java.lang.String group) throws RemoveException
RemoveException
public java.util.Collection getGroups(int permType) throws java.lang.Exception
java.lang.Exception
public java.util.Collection getProjectGroups(int permType, org.ofbiz.core.entity.GenericValue entity) throws java.lang.Exception
java.lang.Exception
public java.util.Collection getAllGroups(int permType, org.ofbiz.core.entity.GenericValue entity) throws java.lang.Exception
java.lang.Exception
public java.util.Collection getUsersWithPermission(int permType, org.ofbiz.core.entity.GenericValue entity) throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |