Collection<Group>
|
getAllGroups(int permissionId, Project project)
Retrieve all groups that are used in the permission globally and in the project.
|
Collection<ProjectPermission>
|
getAllProjectPermissions()
|
Collection<Project>
|
getProjectObjects(ProjectPermissionKey permissionKey, ApplicationUser user)
|
Option<ProjectPermission>
|
getProjectPermission(ProjectPermissionKey permissionKey)
Returns a project permission matching the specified key.
|
Collection<ProjectPermission>
|
getProjectPermissions(ProjectPermissionCategory category)
|
Collection<Project>
|
getProjects(ProjectPermissionKey permissionKey, ApplicationUser user)
Retrieve a list of project objects this user has the permission for
|
Collection<Project>
|
getProjects(int permissionId, ApplicationUser user)
Retrieve a list of project objects this user has the permission for
|
Collection<Project>
|
getProjects(ProjectPermissionKey permissionKey, ApplicationUser user, ProjectCategory projectCategory)
Returns the list of projects associated with the specified category, that this user has the permissions for.
|
Collection<Project>
|
getProjects(int permissionId, ApplicationUser user, ProjectCategory projectCategory)
Returns the list of projects associated with the specified category, that this user has the permissions for.
|
boolean
|
hasPermission(ProjectPermissionKey permissionKey, Issue issue, ApplicationUser user, ActionDescriptor actionDescriptor)
Checks to see if this user has the given permission to the specified issue after the given workflow transition takes effect.
|
boolean
|
hasPermission(int permissionsId, Issue issue, ApplicationUser user)
Checks to see if this user has permission to see the specified issue.
|
boolean
|
hasPermission(int permissionsId, ApplicationUser user)
Checks to see if this user has the specified permission.
|
boolean
|
hasPermission(ProjectPermissionKey permissionKey, Project project, ApplicationUser user, boolean issueCreation)
Checks whether the specified user has a specified permission within the context of a specified project.
|
boolean
|
hasPermission(ProjectPermissionKey permissionKey, Issue issue, ApplicationUser user, Status status)
Checks to see if this user has the given permission to the specified issue if the issue was in the given status.
|
boolean
|
hasPermission(ProjectPermissionKey permissionKey, Issue issue, ApplicationUser user)
Checks to see if this user has permission to see the specified issue.
|
boolean
|
hasPermission(int permissionsId, Project project, ApplicationUser user)
Checks whether the specified user has a specified permission within the context of a specified project.
|
boolean
|
hasPermission(ProjectPermissionKey permissionKey, Project project, ApplicationUser user)
Checks whether the specified user has a specified permission within the context of a specified project.
|
boolean
|
hasPermission(int permissionsId, Project project, ApplicationUser user, boolean issueCreation)
Checks whether the specified user has a specified permission within the context of a specified project.
|
@Nonnull
ProjectWidePermission
|
hasProjectWidePermission(ProjectPermissionKey permissionKey, Project project, ApplicationUser user)
Checks whether a user has a particular permission in the given project.
|
boolean
|
hasProjects(int permissionId, ApplicationUser user)
Can this user see at least one project with this permission
|
boolean
|
hasProjects(ProjectPermissionKey permissionKey, ApplicationUser user)
Can this user see at least one project with this permission
|
boolean
|
isGlobalPermission(int permissionId)
|
void
|
removeGroupPermissions(String group)
Remove all permissions that have used this group
|
void
|
removeUserPermissions(ApplicationUser user)
Remove all permissions that have been assigned to this user
|