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)
           
 java.util.Collection<ProjectRole> getAllProjectRoles()
           
 DefaultRoleActors getDefaultRoleActors(java.lang.Long projectRoleId)
           
 java.util.Collection<java.lang.Long> getProjectIdsContainingRoleActorByNameAndType(java.lang.String name, java.lang.String type)
           
 java.util.Map<java.lang.Long,java.util.List<java.lang.String>> getProjectIdsForUserInGroupsBecauseOfRole(java.util.List<java.lang.Long> projectsToLimitBy, ProjectRole projectRole, java.lang.String projectRoleType, java.lang.String userName)
           
 ProjectRole getProjectRole(java.lang.Long id)
           
 ProjectRoleActors getProjectRoleActors(java.lang.Long projectRoleId, java.lang.Long projectId)
           
 ProjectRole getProjectRoleByName(java.lang.String name)
           
 void removeAllRoleActorsByNameAndType(java.lang.String name, java.lang.String type)
           
 void removeAllRoleActorsByProject(Project project)
           
 java.util.List<java.lang.Long> roleActorOfTypeExistsForProjects(java.util.List<java.lang.Long> projectsToLimitBy, ProjectRole projectRole, java.lang.String projectRoleType, java.lang.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

java.util.Collection<ProjectRole> getAllProjectRoles()
                                                     throws DataAccessException
Throws:
DataAccessException

getProjectRole

ProjectRole getProjectRole(java.lang.Long id)
                           throws DataAccessException
Throws:
DataAccessException

getProjectRoleByName

ProjectRole getProjectRoleByName(java.lang.String name)
                                 throws DataAccessException
Throws:
DataAccessException

deleteProjectRole

void deleteProjectRole(ProjectRole projectRole)
                       throws DataAccessException
Throws:
DataAccessException

getProjectRoleActors

ProjectRoleActors getProjectRoleActors(java.lang.Long projectRoleId,
                                       java.lang.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(java.lang.Long projectRoleId)
                                       throws DataAccessException
Throws:
DataAccessException

applyDefaultsRolesToProject

void applyDefaultsRolesToProject(Project project)
                                 throws DataAccessException
Throws:
DataAccessException

removeAllRoleActorsByNameAndType

void removeAllRoleActorsByNameAndType(java.lang.String name,
                                      java.lang.String type)
                                      throws DataAccessException
Throws:
DataAccessException

removeAllRoleActorsByProject

void removeAllRoleActorsByProject(Project project)
                                  throws DataAccessException
Throws:
DataAccessException

getProjectIdsContainingRoleActorByNameAndType

java.util.Collection<java.lang.Long> getProjectIdsContainingRoleActorByNameAndType(java.lang.String name,
                                                                                   java.lang.String type)
                                                                                   throws DataAccessException
Throws:
DataAccessException

roleActorOfTypeExistsForProjects

java.util.List<java.lang.Long> roleActorOfTypeExistsForProjects(java.util.List<java.lang.Long> projectsToLimitBy,
                                                                ProjectRole projectRole,
                                                                java.lang.String projectRoleType,
                                                                java.lang.String projectRoleParameter)
                                                                throws DataAccessException
Throws:
DataAccessException

getProjectIdsForUserInGroupsBecauseOfRole

java.util.Map<java.lang.Long,java.util.List<java.lang.String>> getProjectIdsForUserInGroupsBecauseOfRole(java.util.List<java.lang.Long> projectsToLimitBy,
                                                                                                         ProjectRole projectRole,
                                                                                                         java.lang.String projectRoleType,
                                                                                                         java.lang.String userName)
                                                                                                         throws DataAccessException
Throws:
DataAccessException


Copyright © 2002-2010 Atlassian. All Rights Reserved.