void
|
addActorsToProjectRole(Collection<String> actors, ProjectRole projectRole, Project project, String actorType, ErrorCollection errorCollection)
|
void
|
addActorsToProjectRole(ApplicationUser currentUser, Collection<String> actors, ProjectRole projectRole, Project project, String actorType, ErrorCollection errorCollection)
|
void
|
addDefaultActorsToProjectRole(ApplicationUser currentUser, Collection<String> actors, ProjectRole projectRole, String type, ErrorCollection errorCollection)
|
void
|
addDefaultActorsToProjectRole(Collection<String> actors, ProjectRole projectRole, String type, ErrorCollection errorCollection)
|
ProjectRole
|
createProjectRole(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection)
|
ProjectRole
|
createProjectRole(ProjectRole projectRole, ErrorCollection errorCollection)
|
void
|
deleteProjectRole(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection)
|
void
|
deleteProjectRole(ProjectRole projectRole, ErrorCollection errorCollection)
|
Collection
|
getAssociatedIssueSecuritySchemes(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection)
|
Collection
|
getAssociatedIssueSecuritySchemes(ProjectRole projectRole, ErrorCollection errorCollection)
|
Collection
|
getAssociatedNotificationSchemes(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection)
|
Collection
|
getAssociatedNotificationSchemes(ProjectRole projectRole, ErrorCollection errorCollection)
|
Collection
|
getAssociatedPermissionSchemes(ProjectRole projectRole, ErrorCollection errorCollection)
|
Collection
|
getAssociatedPermissionSchemes(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection)
|
MultiMap
|
getAssociatedWorkflows(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection)
|
MultiMap
|
getAssociatedWorkflows(ProjectRole projectRole, ErrorCollection errorCollection)
|
DefaultRoleActors
|
getDefaultRoleActors(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection collection)
|
DefaultRoleActors
|
getDefaultRoleActors(ProjectRole projectRole, ErrorCollection collection)
|
Map<Long, List<String>>
|
getProjectIdsForUserInGroupsBecauseOfRole(List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String userName, ErrorCollection errorCollection)
|
Map<Long, List<String>>
|
getProjectIdsForUserInGroupsBecauseOfRole(ApplicationUser currentUser, List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String userName, ErrorCollection errorCollection)
|
ProjectRole
|
getProjectRole(Long id, ErrorCollection errorCollection)
|
ProjectRole
|
getProjectRole(ApplicationUser currentUser, Long id, ErrorCollection errorCollection)
This method is deprecated.
Use getProjectRole(Long, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will return the project role with the given id , and checking the currentUser
has the correct permissions to perform the operation.
The passed in errorCollection will contain any errors that are generated, such as permission violations.
|
ProjectRoleActors
|
getProjectRoleActors(ProjectRole projectRole, Project project, ErrorCollection errorCollection)
|
ProjectRoleActors
|
getProjectRoleActors(ApplicationUser currentUser, ProjectRole projectRole, Project project, ErrorCollection errorCollection)
|
ProjectRole
|
getProjectRoleByName(String name, ErrorCollection errorCollection)
|
ProjectRole
|
getProjectRoleByName(ApplicationUser currentUser, String name, ErrorCollection errorCollection)
This method is deprecated.
Use getProjectRoleByName(String, com.atlassian.jira.util.ErrorCollection) instead. Since v6.0.
Will return the project role with the given name , and checking the currentUser
has the correct permissions to perform the operation.
The passed in errorCollection will contain any errors that are generated, such as permission violations.
|
Collection<ProjectRole>
|
getProjectRoles(ErrorCollection errorCollection)
|
Collection<ProjectRole>
|
getProjectRoles(ApplicationUser currentUser, ErrorCollection errorCollection)
|
Collection<Project>
|
getProjectsContainingRoleActorByNameAndType(String name, String type, ErrorCollection errorCollection)
|
Collection<Project>
|
getProjectsContainingRoleActorByNameAndType(ApplicationUser currentUser, String name, String type, ErrorCollection errorCollection)
|
boolean
|
hasProjectRolePermission(Project project)
|
boolean
|
hasProjectRolePermission(ApplicationUser currentUser, Project project)
This method is deprecated.
Use #hasProjectRolePermission(com.atlassian.crowd.embedded.api.User, com.atlassian.jira.project.Project) instead. Since v6.0.
Will have permission to modify roles if they are a JIRA admin or, if in enterprise, the user is a project administrator.
|
boolean
|
isProjectRoleNameUnique(String name, ErrorCollection errorCollection)
|
boolean
|
isProjectRoleNameUnique(ApplicationUser currentUser, String name, ErrorCollection errorCollection)
|
void
|
removeActorsFromProjectRole(ApplicationUser currentUser, Collection<String> actors, ProjectRole projectRole, Project project, String actorType, ErrorCollection errorCollection)
|
void
|
removeActorsFromProjectRole(Collection<String> actors, ProjectRole projectRole, Project project, String actorType, ErrorCollection errorCollection)
|
void
|
removeAllRoleActorsByNameAndType(ApplicationUser currentUser, String name, String type, ErrorCollection errorCollection)
This method is deprecated.
Use removeAllRoleActorsByNameAndType(String, String, ErrorCollection) instead. Since v6.0.
Will remove all role actors with the specified name and the specified type. This method should be used
to clean up after the actual subject of the role actor has been deleted (ex. deleting a user from the system).
|
void
|
removeAllRoleActorsByNameAndType(String name, String type, ErrorCollection errorCollection)
|
void
|
removeAllRoleActorsByNameAndType(String name, String type)
|
void
|
removeAllRoleActorsByProject(Project project, ErrorCollection errorCollection)
|
void
|
removeAllRoleActorsByProject(ApplicationUser currentUser, Project project, ErrorCollection errorCollection)
|
void
|
removeDefaultActorsFromProjectRole(Collection<String> actors, ProjectRole projectRole, String actorType, ErrorCollection errorCollection)
|
void
|
removeDefaultActorsFromProjectRole(ApplicationUser currentUser, Collection<String> actors, ProjectRole projectRole, String actorType, ErrorCollection errorCollection)
|
List<Long>
|
roleActorOfTypeExistsForProjects(ApplicationUser currentUser, List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String projectRoleParameter, ErrorCollection errorCollection)
|
List<Long>
|
roleActorOfTypeExistsForProjects(List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String projectRoleParameter, ErrorCollection errorCollection)
|
void
|
setActorsForProjectRole(Map<String, Set<String>> newRoleActors, ProjectRole projectRole, Project project, ErrorCollection errorCollection)
|
void
|
setActorsForProjectRole(ApplicationUser currentUser, Map<String, Set<String>> newRoleActors, ProjectRole projectRole, Project project, ErrorCollection errorCollection)
|
void
|
swapRole(ProjectRole role, ProjectRole swapRole)
Swaps a role in scheme entities, workflows, comments and worklogs for a replacement role.
|
void
|
updateProjectRole(ProjectRole projectRole, ErrorCollection errorCollection)
|
void
|
updateProjectRole(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection)
|
ServiceResult
|
validateNoRoleUsage(ProjectRole projectRole)
Checks if the given role is not used.
|
ErrorCollection
|
validateRemoveAllRoleActorsByNameAndType(ApplicationUser currentUser, String name, String type)
This method is deprecated.
Use removeAllRoleActorsByNameAndType(String, String) instead. Since v6.0.
Will validate removing all role actors with the specified name and the specified type. This method should be used
before clean up after the actual subject of the role actor has been deleted (ex. deleting a user from the system).
Validation error wil be reported when name does not exists, type does not exists or user performing validation
does not have administrative rights
|
ErrorCollection
|
validateRemoveAllRoleActorsByNameAndType(String name, String type)
|