com.atlassian.jira.security.roles
Interface ProjectRoleAndActorStore
- All Known Implementing Classes:
- CachingProjectRoleAndActorStore, OfBizProjectRoleAndActorStore
public interface ProjectRoleAndActorStore
This is an interface that defines the storage class for ProjectRoles and RoleActors.
Method Summary |
ProjectRole |
addProjectRole(ProjectRole projectRole)
|
void |
applyDefaultsRolesToProject(Project project)
|
void |
deleteProjectRole(ProjectRole projectRole)
|
Collection<ProjectRole> |
getAllProjectRoles()
|
DefaultRoleActors |
getDefaultRoleActors(Long projectRoleId)
|
Collection<Long> |
getProjectIdsContainingRoleActorByNameAndType(String name,
String type)
|
Map<Long,List<String>> |
getProjectIdsForUserInGroupsBecauseOfRole(List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String userName)
|
ProjectRole |
getProjectRole(Long id)
|
ProjectRoleActors |
getProjectRoleActors(Long projectRoleId,
Long projectId)
|
ProjectRole |
getProjectRoleByName(String name)
|
void |
removeAllRoleActorsByNameAndType(String name,
String type)
|
void |
removeAllRoleActorsByProject(Project project)
|
List<Long> |
roleActorOfTypeExistsForProjects(List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String projectRoleParameter)
|
void |
updateDefaultRoleActors(DefaultRoleActors defaultRoleActors)
|
void |
updateProjectRole(ProjectRole projectRole)
|
void |
updateProjectRoleActors(ProjectRoleActors projectRoleActors)
|
addProjectRole
ProjectRole addProjectRole(ProjectRole projectRole)
throws DataAccessException
- Throws:
DataAccessException
updateProjectRole
void updateProjectRole(ProjectRole projectRole)
throws DataAccessException
- Throws:
DataAccessException
getAllProjectRoles
Collection<ProjectRole> getAllProjectRoles()
throws DataAccessException
- Throws:
DataAccessException
getProjectRole
ProjectRole getProjectRole(Long id)
throws DataAccessException
- Throws:
DataAccessException
getProjectRoleByName
ProjectRole getProjectRoleByName(String name)
throws DataAccessException
- Throws:
DataAccessException
deleteProjectRole
void deleteProjectRole(ProjectRole projectRole)
throws DataAccessException
- Throws:
DataAccessException
getProjectRoleActors
ProjectRoleActors getProjectRoleActors(Long projectRoleId,
Long projectId)
throws DataAccessException
- Throws:
DataAccessException
updateProjectRoleActors
void updateProjectRoleActors(ProjectRoleActors projectRoleActors)
throws DataAccessException
- Throws:
DataAccessException
updateDefaultRoleActors
void updateDefaultRoleActors(DefaultRoleActors defaultRoleActors)
throws DataAccessException
- Throws:
DataAccessException
getDefaultRoleActors
DefaultRoleActors getDefaultRoleActors(Long projectRoleId)
throws DataAccessException
- Throws:
DataAccessException
applyDefaultsRolesToProject
void applyDefaultsRolesToProject(Project project)
throws DataAccessException
- Throws:
DataAccessException
removeAllRoleActorsByNameAndType
void removeAllRoleActorsByNameAndType(String name,
String type)
throws DataAccessException
- Throws:
DataAccessException
removeAllRoleActorsByProject
void removeAllRoleActorsByProject(Project project)
throws DataAccessException
- Throws:
DataAccessException
getProjectIdsContainingRoleActorByNameAndType
Collection<Long> getProjectIdsContainingRoleActorByNameAndType(String name,
String type)
throws DataAccessException
- Throws:
DataAccessException
roleActorOfTypeExistsForProjects
List<Long> roleActorOfTypeExistsForProjects(List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String projectRoleParameter)
throws DataAccessException
- Throws:
DataAccessException
getProjectIdsForUserInGroupsBecauseOfRole
Map<Long,List<String>> getProjectIdsForUserInGroupsBecauseOfRole(List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String userName)
throws DataAccessException
- Throws:
DataAccessException
Copyright © 2002-2012 Atlassian. All Rights Reserved.