public class OfBizProjectRoleAndActorStore extends Object implements ProjectRoleAndActorStore
ProjectRoleAndActorStore.RoleTypeMapping
Constructor and Description |
---|
OfBizProjectRoleAndActorStore(OfBizDelegator genericDelegator,
RoleActorFactory roleActorFactory,
GroupManager groupManager) |
public OfBizProjectRoleAndActorStore(OfBizDelegator genericDelegator, RoleActorFactory roleActorFactory, GroupManager groupManager)
public ProjectRole addProjectRole(ProjectRole projectRole)
addProjectRole
in interface ProjectRoleAndActorStore
public void updateProjectRole(ProjectRole projectRole)
updateProjectRole
in interface ProjectRoleAndActorStore
public Collection<ProjectRole> getAllProjectRoles()
getAllProjectRoles
in interface ProjectRoleAndActorStore
public ProjectRole getProjectRole(Long id)
getProjectRole
in interface ProjectRoleAndActorStore
public ProjectRole getProjectRoleByName(String name)
getProjectRoleByName
in interface ProjectRoleAndActorStore
public void deleteProjectRole(ProjectRole projectRole)
deleteProjectRole
in interface ProjectRoleAndActorStore
public ProjectRoleActors getProjectRoleActors(Long projectRoleId, Long projectId)
ProjectRoleAndActorStore
ProjectRoleActors
for a given project role ID and project ID.getProjectRoleActors
in interface ProjectRoleAndActorStore
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.public void updateProjectRoleActors(ProjectRoleActors projectRoleActors)
updateProjectRoleActors
in interface ProjectRoleAndActorStore
public void updateDefaultRoleActors(DefaultRoleActors defaultRoleActors)
updateDefaultRoleActors
in interface ProjectRoleAndActorStore
public DefaultRoleActors getDefaultRoleActors(Long projectRoleId)
ProjectRoleAndActorStore
ProjectRoleActors
for a given project role ID.getDefaultRoleActors
in interface ProjectRoleAndActorStore
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.public void applyDefaultsRolesToProject(Project project)
applyDefaultsRolesToProject
in interface ProjectRoleAndActorStore
public void removeAllRoleActorsByKeyAndType(String key, String type)
removeAllRoleActorsByKeyAndType
in interface ProjectRoleAndActorStore
public void removeAllRoleActorsByProject(Project project)
removeAllRoleActorsByProject
in interface ProjectRoleAndActorStore
public Collection<Long> getProjectIdsContainingRoleActorByKeyAndType(String key, String type)
getProjectIdsContainingRoleActorByKeyAndType
in interface ProjectRoleAndActorStore
public List<Long> roleActorOfTypeExistsForProjects(List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String projectRoleParameter)
roleActorOfTypeExistsForProjects
in interface ProjectRoleAndActorStore
public Map<Long,List<String>> getProjectIdsForUserInGroupsBecauseOfRole(List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String userKey)
getProjectIdsForUserInGroupsBecauseOfRole
in interface ProjectRoleAndActorStore
public ProjectRoleManager.ProjectIdToProjectRoleIdsMap getProjectIdToRoleIds(@Nonnull String roleTypeParameter, @Nonnull String roleType)
getProjectIdToRoleIds
in interface ProjectRoleAndActorStore
public List<ProjectRoleAndActorStore.RoleTypeMapping> getRoleActorsParametersAndTypeByProjectId(@Nonnull Long projectId)
getRoleActorsParametersAndTypeByProjectId
in interface ProjectRoleAndActorStore
public List<ProjectRoleAndActorStore.RoleTypeMapping> getRoleActorsParametersAndTypeByProjectRoleId(@Nonnull Long projectRoleId)
getRoleActorsParametersAndTypeByProjectRoleId
in interface ProjectRoleAndActorStore
public boolean isGroupUsed(@Nonnull String group)
isGroupUsed
in interface ProjectRoleAndActorStore
Copyright © 2002-2024 Atlassian. All Rights Reserved.