public interface ProjectRoleAndActorStore
ProjectRole addProjectRole(ProjectRole projectRole)
void updateProjectRole(ProjectRole projectRole)
Collection<ProjectRole> getAllProjectRoles()
ProjectRole getProjectRole(Long id)
ProjectRole getProjectRoleByName(String name)
void deleteProjectRole(ProjectRole projectRole)
ProjectRoleActors getProjectRoleActors(@Nonnull Long projectRoleId, Long projectId)
ProjectRoleActors
for a given project role ID and project ID.projectRoleId
- the ID of the project role.projectId
- the ID of the project.ProjectRoleActors
object containing the role actors for the given project with the given
project role id. If none are found, a ProjectRoleActors
object with an empty set will be returned.@Nonnull Collection<ProjectRoleActors> getProjectRoleActorsByRoleId(@Nonnull Long projectRoleId)
ProjectRoleActors
that have a given project role ID, including the default ones (null project).projectRoleId
- the ID of the project role.void updateProjectRoleActors(ProjectRoleActors projectRoleActors)
void updateDefaultRoleActors(DefaultRoleActors defaultRoleActors)
DefaultRoleActors getDefaultRoleActors(@Nonnull Long projectRoleId)
ProjectRoleActors
for a given project role ID.projectRoleId
- the ID of the project role.ProjectRoleActors
object containing the default role actors for the given project. If none are
found, a ProjectRoleActors
object with an empty set will be returned.void applyDefaultsRolesToProject(Project project)
void removeAllRoleActorsByProject(Project project)
Collection<Long> getProjectIdsContainingRoleActorByKeyAndType(String key, String type)
List<Long> roleActorOfTypeExistsForProjects(List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String projectRoleParameter)
Map<Long,List<String>> getProjectIdsForUserInGroupsBecauseOfRole(List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String userKey)
Copyright © 2002-2019 Atlassian. All Rights Reserved.