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> getProjectIdsContainingRoleActorByKeyAndType(String key, String type)
           
 Map<Long,List<String>> getProjectIdsForUserInGroupsBecauseOfRole(List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String userKey)
           
 ProjectRole getProjectRole(Long id)
           
 ProjectRoleActors getProjectRoleActors(Long projectRoleId, Long projectId)
           
 ProjectRole getProjectRoleByName(String name)
           
 void removeAllRoleActorsByKeyAndType(String key, 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)
           
 

Method Detail

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

removeAllRoleActorsByKeyAndType

void removeAllRoleActorsByKeyAndType(String key,
                                     String type)
                                     throws DataAccessException
Throws:
DataAccessException

removeAllRoleActorsByProject

void removeAllRoleActorsByProject(Project project)
                                  throws DataAccessException
Throws:
DataAccessException

getProjectIdsContainingRoleActorByKeyAndType

Collection<Long> getProjectIdsContainingRoleActorByKeyAndType(String key,
                                                              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 userKey)
                                                                 throws DataAccessException
Throws:
DataAccessException


Copyright © 2002-2013 Atlassian. All Rights Reserved.