|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addPermission(int permissionsId,
org.ofbiz.core.entity.GenericValue scheme,
String parameter,
String securityType)
Adds a permission to the system |
Collection |
getAllGroups(int permissionId,
org.ofbiz.core.entity.GenericValue project)
Retrieve all groups that are used in the permission globally and in the project entity |
Collection |
getProjects(int permissionId,
User user)
Retrieve a list of projects this user has the permission for |
Collection |
getProjects(int permissionId,
User user,
org.ofbiz.core.entity.GenericValue category)
Retrieve a list of projects associated with the specified category, that this user has the permissions for |
boolean |
hasPermission(int permissionsId,
org.ofbiz.core.entity.GenericValue entity,
User u)
Checks to see if this has permission to see the specified entity Check Permissions scheme(s) if the entity is project Check Permissions scheme(s) and issue level security scheme(s) if the entity is an issue |
boolean |
hasPermission(int permissionsId,
org.ofbiz.core.entity.GenericValue project,
User u,
boolean issueCreation)
|
boolean |
hasPermission(int permissionsId,
Issue entity,
User u)
|
boolean |
hasPermission(int permissionsId,
User u)
Checks to see if this user has the specified permission It will check only global permissions as there are no other permissions to check |
boolean |
hasProjects(int permissionId,
User user)
Can this user see atleast one project with this permission |
void |
removeGroupPermissions(String group)
Remove all permissions that have used this group |
Method Detail |
public void addPermission(int permissionsId, org.ofbiz.core.entity.GenericValue scheme, String parameter, String securityType) throws CreateException
permissionsId
- Permissions valuescheme
- If null permission is global otherwise it is added to the schemeparameter
- Used for e.g. group namesecurityType
- e.g. GroupDropdown.DESC
CreateException
public boolean hasPermission(int permissionsId, User u)
permissionsId
- u
- public boolean hasPermission(int permissionsId, org.ofbiz.core.entity.GenericValue entity, User u)
permissionsId
- , not a global permissionentity
- not nullu
- User object, possibly null if JIRA is accessed anonymouslypublic boolean hasPermission(int permissionsId, Issue entity, User u)
public boolean hasPermission(int permissionsId, org.ofbiz.core.entity.GenericValue project, User u, boolean issueCreation)
public void removeGroupPermissions(String group) throws RemoveException
group
- The name of the group that needs to be removed, must NOT be null and must be a real group
RemoveException
public boolean hasProjects(int permissionId, User user) throws Exception
permissionId
- must NOT be a global permissionuser
-
Exception
public Collection getProjects(int permissionId, User user)
permissionId
- must NOT be a global permissionuser
- public Collection getProjects(int permissionId, User user, org.ofbiz.core.entity.GenericValue category) throws org.ofbiz.core.entity.GenericEntityException
permissionId
- user
- category
-
org.ofbiz.core.entity.GenericEntityException
public Collection getAllGroups(int permissionId, org.ofbiz.core.entity.GenericValue project) throws Exception
permissionId
- project
- project to retireve groups from
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |