com.atlassian.jira.security.roles
Class OfBizProjectRoleAndActorStore

java.lang.Object
  extended by com.atlassian.jira.security.roles.OfBizProjectRoleAndActorStore
All Implemented Interfaces:
ProjectRoleAndActorStore

public class OfBizProjectRoleAndActorStore
extends Object
implements ProjectRoleAndActorStore

OfBiz persistent implementation.


Constructor Summary
OfBizProjectRoleAndActorStore(OfBizDelegator genericDelegator, RoleActorFactory roleActorFactory)
           
 
Method Summary
 ProjectRole addProjectRole(ProjectRole projectRole)
           
 void applyDefaultsRolesToProject(Project project)
           
 void deleteProjectRole(ProjectRole projectRole)
           
 Collection getAllProjectRoles()
           
 DefaultRoleActors getDefaultRoleActors(Long projectRoleId)
           
 Collection getProjectIdsContainingRoleActorByNameAndType(String name, String type)
           
 Map getProjectIdsForUserInGroupsBecauseOfRole(List 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 roleActorOfTypeExistsForProjects(List projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String projectRoleParameter)
           
 void updateDefaultRoleActors(DefaultRoleActors defaultRoleActors)
           
 void updateProjectRole(ProjectRole projectRole)
           
 void updateProjectRoleActors(ProjectRoleActors projectRoleActors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfBizProjectRoleAndActorStore

public OfBizProjectRoleAndActorStore(OfBizDelegator genericDelegator,
                                     RoleActorFactory roleActorFactory)
Method Detail

addProjectRole

public ProjectRole addProjectRole(ProjectRole projectRole)
                           throws DataAccessException
Specified by:
addProjectRole in interface ProjectRoleAndActorStore
Throws:
DataAccessException

updateProjectRole

public void updateProjectRole(ProjectRole projectRole)
                       throws DataAccessException
Specified by:
updateProjectRole in interface ProjectRoleAndActorStore
Throws:
DataAccessException

getAllProjectRoles

public Collection getAllProjectRoles()
                              throws DataAccessException
Specified by:
getAllProjectRoles in interface ProjectRoleAndActorStore
Throws:
DataAccessException

getProjectRole

public ProjectRole getProjectRole(Long id)
                           throws DataAccessException
Specified by:
getProjectRole in interface ProjectRoleAndActorStore
Throws:
DataAccessException

getProjectRoleByName

public ProjectRole getProjectRoleByName(String name)
                                 throws DataAccessException
Specified by:
getProjectRoleByName in interface ProjectRoleAndActorStore
Throws:
DataAccessException

deleteProjectRole

public void deleteProjectRole(ProjectRole projectRole)
                       throws DataAccessException
Specified by:
deleteProjectRole in interface ProjectRoleAndActorStore
Throws:
DataAccessException

getProjectRoleActors

public ProjectRoleActors getProjectRoleActors(Long projectRoleId,
                                              Long projectId)
                                       throws DataAccessException
Specified by:
getProjectRoleActors in interface ProjectRoleAndActorStore
Throws:
DataAccessException

updateProjectRoleActors

public void updateProjectRoleActors(ProjectRoleActors projectRoleActors)
                             throws DataAccessException
Specified by:
updateProjectRoleActors in interface ProjectRoleAndActorStore
Throws:
DataAccessException

updateDefaultRoleActors

public void updateDefaultRoleActors(DefaultRoleActors defaultRoleActors)
                             throws DataAccessException
Specified by:
updateDefaultRoleActors in interface ProjectRoleAndActorStore
Throws:
DataAccessException

getDefaultRoleActors

public DefaultRoleActors getDefaultRoleActors(Long projectRoleId)
                                       throws DataAccessException
Specified by:
getDefaultRoleActors in interface ProjectRoleAndActorStore
Throws:
DataAccessException

applyDefaultsRolesToProject

public void applyDefaultsRolesToProject(Project project)
                                 throws DataAccessException
Specified by:
applyDefaultsRolesToProject in interface ProjectRoleAndActorStore
Throws:
DataAccessException

removeAllRoleActorsByNameAndType

public void removeAllRoleActorsByNameAndType(String name,
                                             String type)
                                      throws DataAccessException
Specified by:
removeAllRoleActorsByNameAndType in interface ProjectRoleAndActorStore
Throws:
DataAccessException

removeAllRoleActorsByProject

public void removeAllRoleActorsByProject(Project project)
                                  throws DataAccessException
Specified by:
removeAllRoleActorsByProject in interface ProjectRoleAndActorStore
Throws:
DataAccessException

getProjectIdsContainingRoleActorByNameAndType

public Collection getProjectIdsContainingRoleActorByNameAndType(String name,
                                                                String type)
                                                         throws DataAccessException
Specified by:
getProjectIdsContainingRoleActorByNameAndType in interface ProjectRoleAndActorStore
Throws:
DataAccessException

roleActorOfTypeExistsForProjects

public List roleActorOfTypeExistsForProjects(List projectsToLimitBy,
                                             ProjectRole projectRole,
                                             String projectRoleType,
                                             String projectRoleParameter)
                                      throws DataAccessException
Specified by:
roleActorOfTypeExistsForProjects in interface ProjectRoleAndActorStore
Throws:
DataAccessException

getProjectIdsForUserInGroupsBecauseOfRole

public Map getProjectIdsForUserInGroupsBecauseOfRole(List projectsToLimitBy,
                                                     ProjectRole projectRole,
                                                     String projectRoleType,
                                                     String userName)
                                              throws DataAccessException
Specified by:
getProjectIdsForUserInGroupsBecauseOfRole in interface ProjectRoleAndActorStore
Throws:
DataAccessException


Copyright © 2002-2008 Atlassian. All Rights Reserved.