|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PermissionManager
Manager responsible for JIRA Permissions.
Method Summary | |
---|---|
void |
addPermission(int permissionsId,
org.ofbiz.core.entity.GenericValue scheme,
String parameter,
String securityType)
Adds a permission to the system. |
Collection<Group> |
getAllGroups(int permissionId,
org.ofbiz.core.entity.GenericValue project)
Deprecated. Use getAllGroups(int, com.atlassian.jira.project.Project) instead. Since v4.3 |
Collection<com.atlassian.crowd.embedded.api.Group> |
getAllGroups(int permissionId,
Project project)
Retrieve all groups that are used in the permission globally and in the project. |
Collection<Project> |
getProjectObjects(int permissionId,
com.atlassian.crowd.embedded.api.User user)
Retrieve a list of project objects this user has the permission for |
Collection<Project> |
getProjectObjects(int permissionId,
User user)
Deprecated. Please use getProjectObjects(int, com.atlassian.crowd.embedded.api.User) . Since v4.3 |
Collection<org.ofbiz.core.entity.GenericValue> |
getProjects(int permissionId,
com.atlassian.crowd.embedded.api.User user)
Deprecated. Please use getProjectObjects(int, com.atlassian.crowd.embedded.api.User) . Since v4.3 |
Collection<org.ofbiz.core.entity.GenericValue> |
getProjects(int permissionId,
User user)
Deprecated. Please use getProjectObjects(int, com.atlassian.crowd.embedded.api.User) . Since v4.3 |
Collection<org.ofbiz.core.entity.GenericValue> |
getProjects(int permissionId,
com.atlassian.crowd.embedded.api.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 |
Collection<org.ofbiz.core.entity.GenericValue> |
getProjects(int permissionId,
User user,
org.ofbiz.core.entity.GenericValue category)
Deprecated. Please use getProjects(int, com.atlassian.crowd.embedded.api.User, org.ofbiz.core.entity.GenericValue) . Since v4.3 |
boolean |
hasPermission(int permissionsId,
org.ofbiz.core.entity.GenericValue entity,
com.atlassian.crowd.embedded.api.User u)
Deprecated. use hasPermission(int, Issue, User) for Issues or hasPermission(int, Project, User)
for Projects since JIRA 3.11 |
boolean |
hasPermission(int permissionsId,
org.ofbiz.core.entity.GenericValue entity,
User u)
Deprecated. use hasPermission(int, Issue, User) for Issues or hasPermission(int, Project, User)
for Projects since JIRA 3.11 |
boolean |
hasPermission(int permissionsId,
org.ofbiz.core.entity.GenericValue project,
com.atlassian.crowd.embedded.api.User u,
boolean issueCreation)
Deprecated. use hasPermission(int, Issue, User) for Issues or
hasPermission(int, Project, User, boolean) for Projects since 3.11 |
boolean |
hasPermission(int permissionsId,
org.ofbiz.core.entity.GenericValue project,
User u,
boolean issueCreation)
Deprecated. use hasPermission(int, Issue, User) for Issues or
hasPermission(int, Project, User, boolean) for Projects since 3.11 |
boolean |
hasPermission(int permissionsId,
Issue entity,
com.atlassian.crowd.embedded.api.User u)
Does the same as hasPermission(int,org.ofbiz.core.entity.GenericValue,User) except
the entity is an issue. |
boolean |
hasPermission(int permissionsId,
Issue entity,
User u)
Deprecated. Please use hasPermission(int, com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User) . Since v4.3 |
boolean |
hasPermission(int permissionsId,
Project project,
com.atlassian.crowd.embedded.api.User user)
Checks whether the specified user has a specified permission within the context of a specified project. |
boolean |
hasPermission(int permissionsId,
Project project,
User user)
Deprecated. Please use hasPermission(int, com.atlassian.jira.project.Project, com.atlassian.crowd.embedded.api.User) . Since v4.3 |
boolean |
hasPermission(int permissionsId,
Project project,
com.atlassian.crowd.embedded.api.User user,
boolean issueCreation)
Checks whether the specified user has a specified permission within the context of a specified project. |
boolean |
hasPermission(int permissionsId,
Project project,
User user,
boolean issueCreation)
Deprecated. Please use hasPermission(int, com.atlassian.jira.project.Project, com.atlassian.crowd.embedded.api.User, boolean) . Since v4.3 |
boolean |
hasPermission(int permissionsId,
com.atlassian.crowd.embedded.api.User user)
Checks to see if this user has the specified permission. |
boolean |
hasPermission(int permissionsId,
User user)
Deprecated. Please use hasPermission(int, com.atlassian.crowd.embedded.api.User) . Since v4.3 |
boolean |
hasProjects(int permissionId,
com.atlassian.crowd.embedded.api.User user)
Can this user see at least one project with this permission |
boolean |
hasProjects(int permissionId,
User user)
Deprecated. Please use hasProjects(int, com.atlassian.crowd.embedded.api.User) . Since v4.3 |
void |
removeGroupPermissions(String group)
Remove all permissions that have used this group |
void |
removeUserPermissions(String username)
Remove all permissions that have used this username |
Method Detail |
---|
void addPermission(int permissionsId, org.ofbiz.core.entity.GenericValue scheme, String parameter, String securityType) throws CreateException
permissionsId
- Permissions value. E.g. See Permissions.ADMINISTER
scheme
- If null permission is global otherwise it is added to the schemeparameter
- Used for e.g. group namesecurityType
- e.g. GroupDropdown.DESC
CreateException
- if permission creation failsboolean hasPermission(int permissionsId, com.atlassian.crowd.embedded.api.User user)
permissionsId
- permission iduser
- user, can be null - anonymous user
GlobalPermissionManager.hasPermission(int, User)
boolean hasPermission(int permissionsId, User user)
hasPermission(int, com.atlassian.crowd.embedded.api.User)
. Since v4.3
permissionsId
- permission iduser
- user, can be null - anonymous user
GlobalPermissionManager.hasPermission(int, User)
boolean hasPermission(int permissionsId, org.ofbiz.core.entity.GenericValue entity, com.atlassian.crowd.embedded.api.User u)
hasPermission(int, Issue, User)
for Issues or hasPermission(int, Project, User)
for Projects since JIRA 3.11
permissionsId
- Not a global permissionentity
- Not null. Must be either an issue or project.u
- User object, possibly null if JIRA is accessed anonymously
IllegalArgumentException
- If the entity supplied is NOT an issue or project.boolean hasPermission(int permissionsId, org.ofbiz.core.entity.GenericValue entity, User u)
hasPermission(int, Issue, User)
for Issues or hasPermission(int, Project, User)
for Projects since JIRA 3.11
permissionsId
- Not a global permissionentity
- Not null. Must be either an issue or project.u
- User object, possibly null if JIRA is accessed anonymously
IllegalArgumentException
- If the entity supplied is NOT an issue or project.boolean hasPermission(int permissionsId, Issue entity, com.atlassian.crowd.embedded.api.User u)
hasPermission(int,org.ofbiz.core.entity.GenericValue,User)
except
the entity is an issue.
Note that if the issue's generic value is null, it is assumed that the issue is currently being created, and so
the permission check call is deferred to the issue's project object, with the issueCreation flag set to true. See
JRA-14788 for more info.
permissionsId
- Not a global permissionentity
- Not null.u
- User object, possibly null if JIRA is accessed anonymously
boolean hasPermission(int permissionsId, Issue entity, User u)
hasPermission(int, com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User)
. Since v4.3
hasPermission(int,org.ofbiz.core.entity.GenericValue,User)
except
the entity is an issue.
Note that if the issue's generic value is null, it is assumed that the issue is currently being created, and so
the permission check call is deferred to the issue's project object, with the issueCreation flag set to true. See
JRA-14788 for more info.
permissionsId
- Not a global permissionentity
- Not null.u
- User object, possibly null if JIRA is accessed anonymously
boolean hasPermission(int permissionsId, Project project, com.atlassian.crowd.embedded.api.User user)
permissionsId
- A non-global permission, i.e. a permission that is granted via a project contextproject
- The project that is the context of the permission check.user
- The person to perform the permission check for
boolean hasPermission(int permissionsId, Project project, User user)
hasPermission(int, com.atlassian.jira.project.Project, com.atlassian.crowd.embedded.api.User)
. Since v4.3
permissionsId
- A non-global permission, i.e. a permission that is granted via a project contextproject
- The project that is the context of the permission check.user
- The person to perform the permission check for
boolean hasPermission(int permissionsId, Project project, com.atlassian.crowd.embedded.api.User user, boolean issueCreation)
permissionsId
- A non-global permission, i.e. a permission that is granted via a project contextproject
- The project that is the context of the permission check.user
- The person to perform the permission check forissueCreation
- Whether this permission is being checked during issue creation
boolean hasPermission(int permissionsId, Project project, User user, boolean issueCreation)
hasPermission(int, com.atlassian.jira.project.Project, com.atlassian.crowd.embedded.api.User, boolean)
. Since v4.3
permissionsId
- A non-global permission, i.e. a permission that is granted via a project contextproject
- The project that is the context of the permission check.user
- The person to perform the permission check forissueCreation
- Whether this permission is being checked during issue creation
boolean hasPermission(int permissionsId, org.ofbiz.core.entity.GenericValue project, com.atlassian.crowd.embedded.api.User u, boolean issueCreation)
hasPermission(int, Issue, User)
for Issues or
hasPermission(int, Project, User, boolean)
for Projects since 3.11
hasPermission(int,org.ofbiz.core.entity.GenericValue,User)
except
the entity is a project GenericValue
.
permissionsId
- Not a global permissionproject
- Not null.u
- User object, possibly null if JIRA is accessed anonymouslyissueCreation
- Whether this permission is being checked during issue creation
boolean hasPermission(int permissionsId, org.ofbiz.core.entity.GenericValue project, User u, boolean issueCreation)
hasPermission(int, Issue, User)
for Issues or
hasPermission(int, Project, User, boolean)
for Projects since 3.11
hasPermission(int,org.ofbiz.core.entity.GenericValue,User)
except
the entity is a project GenericValue
.
permissionsId
- Not a global permissionproject
- Not null.u
- User object, possibly null if JIRA is accessed anonymouslyissueCreation
- Whether this permission is being checked during issue creation
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
- if permission removal failsvoid removeUserPermissions(String username) throws RemoveException
username
- username of the user whose permissions are to be removed
RemoveException
- if permission removal failsboolean hasProjects(int permissionId, com.atlassian.crowd.embedded.api.User user)
permissionId
- must NOT be a global permissionuser
- user being checked
boolean hasProjects(int permissionId, User user)
hasProjects(int, com.atlassian.crowd.embedded.api.User)
. Since v4.3
permissionId
- must NOT be a global permissionuser
- user being checked
Collection<org.ofbiz.core.entity.GenericValue> getProjects(int permissionId, com.atlassian.crowd.embedded.api.User user)
getProjectObjects(int, com.atlassian.crowd.embedded.api.User)
. Since v4.3
permissionId
- must NOT be a global permissionuser
- user
GenericValue
objectsCollection<org.ofbiz.core.entity.GenericValue> getProjects(int permissionId, User user)
getProjectObjects(int, com.atlassian.crowd.embedded.api.User)
. Since v4.3
permissionId
- must NOT be a global permissionuser
- user
GenericValue
objectsCollection<Project> getProjectObjects(int permissionId, com.atlassian.crowd.embedded.api.User user)
permissionId
- must NOT be a global permissionuser
- user
Project
objectsCollection<Project> getProjectObjects(int permissionId, User user)
getProjectObjects(int, com.atlassian.crowd.embedded.api.User)
. Since v4.3
permissionId
- must NOT be a global permissionuser
- user
Project
objectsCollection<org.ofbiz.core.entity.GenericValue> getProjects(int permissionId, com.atlassian.crowd.embedded.api.User user, org.ofbiz.core.entity.GenericValue category)
permissionId
- permission iduser
- usercategory
- GenericValue representing category
GenericValue
objectsCollection<org.ofbiz.core.entity.GenericValue> getProjects(int permissionId, User user, org.ofbiz.core.entity.GenericValue category)
getProjects(int, com.atlassian.crowd.embedded.api.User, org.ofbiz.core.entity.GenericValue)
. Since v4.3
permissionId
- permission iduser
- usercategory
- GenericValue representing category
GenericValue
objectsCollection<com.atlassian.crowd.embedded.api.Group> getAllGroups(int permissionId, Project project)
permissionId
- permission idproject
- project from which to retrieve groups
Collection<Group> getAllGroups(int permissionId, org.ofbiz.core.entity.GenericValue project)
getAllGroups(int, com.atlassian.jira.project.Project)
instead. Since v4.3
permissionId
- permission idproject
- project to retrieve groups from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |