Class DefaultProjectRoleService
java.lang.Object
com.atlassian.jira.bc.projectroles.DefaultProjectRoleService
- All Implemented Interfaces:
ProjectRoleService
Default implementation of the ProjectRoleService
-
Field Summary
Fields inherited from interface com.atlassian.jira.bc.projectroles.ProjectRoleService
PROJECTROLE_ISSUE_SECURITY_TYPE, PROJECTROLE_NOTIFICATION_TYPE, PROJECTROLE_PERMISSION_TYPE
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultProjectRoleService
(ProjectRoleManager projectRoleManager, PermissionManager permissionManager, JiraAuthenticationContext jiraAuthenticationContext, RoleActorFactory roleActorFactory, NotificationSchemeManager notificationSchemeManager, PermissionSchemeManager permissionSchemeManager, WorkflowManager workflowManager, ProjectManager projectManager, SchemeFactory schemeFactory, IssueSecurityLevelManager issueSecurityLevelManager, SharePermissionDeleteUtils sharePermissionDeleteUtils, IssueSecuritySchemeManager issueSecuritySchemeManager, com.atlassian.event.api.EventPublisher eventPublisher, WorklogManager worklogManager, CommentManager commentManager, ProjectRoleHandler projectRoleHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addActorsToProjectRole
(ApplicationUser currentUser, Collection<String> actors, ProjectRole projectRole, Project project, String actorType, ErrorCollection errorCollection) void
addActorsToProjectRole
(Collection<String> actors, ProjectRole projectRole, Project project, String actorType, ErrorCollection errorCollection) void
addDefaultActorsToProjectRole
(ApplicationUser currentUser, Collection<String> actors, ProjectRole projectRole, String type, ErrorCollection errorCollection) void
addDefaultActorsToProjectRole
(Collection<String> actors, ProjectRole projectRole, String type, ErrorCollection errorCollection) createProjectRole
(ProjectRole projectRole, ErrorCollection errorCollection) createProjectRole
(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) void
deleteProjectRole
(ProjectRole projectRole, ErrorCollection errorCollection) void
deleteProjectRole
(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) Collection<org.ofbiz.core.entity.GenericValue>
getAssociatedIssueSecuritySchemes
(ProjectRole projectRole, ErrorCollection errorCollection) getAssociatedIssueSecuritySchemes
(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) getAssociatedNotificationSchemes
(ProjectRole projectRole, ErrorCollection errorCollection) getAssociatedNotificationSchemes
(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) Collection<org.ofbiz.core.entity.GenericValue>
getAssociatedPermissionSchemes
(ProjectRole projectRole, ErrorCollection errorCollection) getAssociatedPermissionSchemes
(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) org.apache.commons.collections.MultiMap
getAssociatedWorkflows
(ProjectRole projectRole, ErrorCollection errorCollection) org.apache.commons.collections.MultiMap
getAssociatedWorkflows
(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) getDefaultRoleActors
(ProjectRole projectRole, ErrorCollection errorCollection) getDefaultRoleActors
(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) getProjectIdsForUserInGroupsBecauseOfRole
(ApplicationUser currentUser, List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String userName, ErrorCollection errorCollection) getProjectIdsForUserInGroupsBecauseOfRole
(List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String userName, ErrorCollection errorCollection) getProjectRole
(ApplicationUser currentUser, Long id, ErrorCollection errorCollection) getProjectRole
(Long id, ErrorCollection errorCollection) getProjectRoleActors
(ProjectRole projectRole, Project project, ErrorCollection errorCollection) getProjectRoleActors
(ApplicationUser currentUser, ProjectRole projectRole, Project project, ErrorCollection errorCollection) getProjectRoleByName
(ApplicationUser currentUser, String name, ErrorCollection errorCollection) getProjectRoleByName
(String name, ErrorCollection errorCollection) getProjectRoles
(ApplicationUser currentUser, ErrorCollection errorCollection) getProjectRoles
(ErrorCollection errorCollection) getProjectsContainingRoleActorByNameAndType
(ApplicationUser currentUser, String name, String type, ErrorCollection errorCollection) getProjectsContainingRoleActorByNameAndType
(String name, String type, ErrorCollection errorCollection) boolean
hasProjectRolePermission
(Project project) boolean
hasProjectRolePermission
(ApplicationUser currentUser, Project project) boolean
isProjectRoleNameUnique
(ApplicationUser currentUser, String name, ErrorCollection errorCollection) boolean
isProjectRoleNameUnique
(String name, ErrorCollection errorCollection) void
removeActorsFromProjectRole
(ApplicationUser currentUser, Collection<String> actors, ProjectRole projectRole, Project project, String actorType, ErrorCollection errorCollection) void
removeActorsFromProjectRole
(Collection<String> actors, ProjectRole projectRole, Project project, String actorType, ErrorCollection errorCollection) void
removeAllRoleActorsByNameAndType
(ApplicationUser currentUser, String name, String type, ErrorCollection errorCollection) void
removeAllRoleActorsByNameAndType
(String name, String type) void
removeAllRoleActorsByNameAndType
(String name, String type, ErrorCollection errorCollection) void
removeAllRoleActorsByProject
(Project project, ErrorCollection errorCollection) void
removeAllRoleActorsByProject
(ApplicationUser currentUser, Project project, ErrorCollection errorCollection) void
removeDefaultActorsFromProjectRole
(ApplicationUser currentUser, Collection<String> actors, ProjectRole projectRole, String actorType, ErrorCollection errorCollection) void
removeDefaultActorsFromProjectRole
(Collection<String> actors, ProjectRole projectRole, String actorType, ErrorCollection errorCollection) roleActorOfTypeExistsForProjects
(ApplicationUser currentUser, List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String projectRoleParameter, ErrorCollection errorCollection) roleActorOfTypeExistsForProjects
(List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String projectRoleParameter, ErrorCollection errorCollection) void
setActorsForProjectRole
(ApplicationUser currentUser, Map<String, Set<String>> newRoleActors, ProjectRole projectRole, Project project, ErrorCollection errorCollection) void
setActorsForProjectRole
(Map<String, Set<String>> newRoleActors, ProjectRole projectRole, Project project, ErrorCollection errorCollection) void
swapRole
(ProjectRole role, ProjectRole swapRole) Swaps a role in scheme entities, workflows, comments and worklogs for a replacement role.void
updateProjectRole
(ProjectRole projectRole, ErrorCollection errorCollection) void
updateProjectRole
(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) validateNoRoleUsage
(ProjectRole projectRole) Checks if the given role is not used.validateRemoveAllRoleActorsByNameAndType
(ApplicationUser currentUser, String name, String type) validateRemoveAllRoleActorsByNameAndType
(String name, String type)
-
Constructor Details
-
Method Details
-
getProjectRoles
public Collection<ProjectRole> getProjectRoles(ApplicationUser currentUser, ErrorCollection errorCollection) - Specified by:
getProjectRoles
in interfaceProjectRoleService
- Returns:
- The global list of project roles in JIRA
-
getProjectRole
public ProjectRole getProjectRole(ApplicationUser currentUser, Long id, ErrorCollection errorCollection) - Specified by:
getProjectRole
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callid
- the id of the ProjectRoleerrorCollection
- will contain any errors in calling the method- Returns:
- the ProjectRole for the given id, will return null if no role found
-
getProjectRoleByName
public ProjectRole getProjectRoleByName(ApplicationUser currentUser, String name, ErrorCollection errorCollection) - Specified by:
getProjectRoleByName
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callname
- the name of the project role to returnerrorCollection
- will contain any errors in calling the method- Returns:
- the ProjectRole for the given name, will return null if no role found
-
createProjectRole
public ProjectRole createProjectRole(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) - Specified by:
createProjectRole
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callprojectRole
- can not be null and will contain the name and description for the project role to createerrorCollection
- will contain any errors in calling the method- Returns:
- the ProjectRole object that was created
-
isProjectRoleNameUnique
public boolean isProjectRoleNameUnique(ApplicationUser currentUser, String name, ErrorCollection errorCollection) - Specified by:
isProjectRoleNameUnique
in interfaceProjectRoleService
name
- the name of the project role to check- Returns:
- true if unique, false if one already exists with that name
-
deleteProjectRole
public void deleteProjectRole(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) - Specified by:
deleteProjectRole
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callerrorCollection
- will contain any errors in calling the method
-
updateProjectRole
public void updateProjectRole(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) - Specified by:
updateProjectRole
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callerrorCollection
- will contain any errors in calling the method
-
getProjectRoleActors
public ProjectRoleActors getProjectRoleActors(ApplicationUser currentUser, ProjectRole projectRole, Project project, ErrorCollection errorCollection) - Specified by:
getProjectRoleActors
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callerrorCollection
- will contain any errors in calling the method- Returns:
- the ProjectRoleActor representing the projectRole and project
-
setActorsForProjectRole
public void setActorsForProjectRole(ApplicationUser currentUser, Map<String, Set<String>> newRoleActors, ProjectRole projectRole, Project project, ErrorCollection errorCollection) - Specified by:
setActorsForProjectRole
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callnewRoleActors
- is a mapping of actor types to actor parameters that will be set for the project roleprojectRole
- is the project role to associate withproject
- is the project to associate witherrorCollection
- will contain any errors in calling the method
-
getDefaultRoleActors
public DefaultRoleActors getDefaultRoleActors(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) - Specified by:
getDefaultRoleActors
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the call- Returns:
- the default role actors
-
removeAllRoleActorsByNameAndType
public void removeAllRoleActorsByNameAndType(ApplicationUser currentUser, String name, String type, ErrorCollection errorCollection) - Specified by:
removeAllRoleActorsByNameAndType
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callname
- this is the name that the role actor is stored under (ex. username of 'admin', group name of 'jira-users')type
- this is the role type parameter, (ex. GroupRoleActor.TYPE, UserRoleActor.TYPE)errorCollection
- will contain any errors in calling the method
-
validateRemoveAllRoleActorsByNameAndType
public ErrorCollection validateRemoveAllRoleActorsByNameAndType(ApplicationUser currentUser, String name, String type) - Specified by:
validateRemoveAllRoleActorsByNameAndType
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callname
- this is the name that the role actor is stored under (ex. username of 'admin', group name of 'jira-users')type
- this is the role type parameter, (ex. GroupRoleActor.TYPE, UserRoleActor.TYPE)- Returns:
- errorCollection will contain any errors in calling the method
-
removeAllRoleActorsByNameAndType
- Specified by:
removeAllRoleActorsByNameAndType
in interfaceProjectRoleService
- Parameters:
name
- this is the name that the role actor is stored under (ex. username of 'admin', group name of 'jira-users')type
- this is the role type parameter, (ex. GroupRoleActor.TYPE, UserRoleActor.TYPE)
-
removeAllRoleActorsByProject
public void removeAllRoleActorsByProject(ApplicationUser currentUser, Project project, ErrorCollection errorCollection) - Specified by:
removeAllRoleActorsByProject
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callerrorCollection
- will contain any errors in calling the method
-
getAssociatedNotificationSchemes
public Collection getAssociatedNotificationSchemes(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) - Specified by:
getAssociatedNotificationSchemes
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callerrorCollection
- will contain any errors in calling the method- Returns:
- a collection of schemes, if no schemes are found this will be an empty collection.
-
getAssociatedIssueSecuritySchemes
public Collection<org.ofbiz.core.entity.GenericValue> getAssociatedIssueSecuritySchemes(ProjectRole projectRole, ErrorCollection errorCollection) - Specified by:
getAssociatedIssueSecuritySchemes
in interfaceProjectRoleService
-
getAssociatedIssueSecuritySchemes
public Collection getAssociatedIssueSecuritySchemes(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) - Specified by:
getAssociatedIssueSecuritySchemes
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callerrorCollection
- will contain any errors in calling the method- Returns:
- a collection of schemes, if no schemes are found this will be an empty collection.
-
getAssociatedPermissionSchemes
public Collection getAssociatedPermissionSchemes(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) - Specified by:
getAssociatedPermissionSchemes
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callerrorCollection
- will contain any errors in calling the method- Returns:
- a collection of schemes, if no schemes are found this will be an empty collection.
-
getAssociatedWorkflows
public org.apache.commons.collections.MultiMap getAssociatedWorkflows(ApplicationUser currentUser, ProjectRole projectRole, ErrorCollection errorCollection) - Specified by:
getAssociatedWorkflows
in interfaceProjectRoleService
- Parameters:
currentUser
- the acting user.projectRole
- the project role.errorCollection
- will contain any errors in calling the method- Returns:
- a possibly empty MultiMap of Workflow objects to List of Actions.
-
getProjectsContainingRoleActorByNameAndType
public Collection<Project> getProjectsContainingRoleActorByNameAndType(ApplicationUser currentUser, String name, String type, ErrorCollection errorCollection) - Specified by:
getProjectsContainingRoleActorByNameAndType
in interfaceProjectRoleService
- Parameters:
currentUser
- the acting user.name
- this is the name that the role actor is stored under (ex. username of 'admin', group name of 'jira-users')type
- this is the role type parameter, (ex. GroupRoleActor.TYPE, UserRoleActor.TYPE)errorCollection
- will contain any errors in calling the method- Returns:
- a collection of
Project
's which have a role which contains the role actor with the specified name and type.
-
roleActorOfTypeExistsForProjects
public List<Long> roleActorOfTypeExistsForProjects(ApplicationUser currentUser, List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String projectRoleParameter, ErrorCollection errorCollection) - Specified by:
roleActorOfTypeExistsForProjects
in interfaceProjectRoleService
- Parameters:
currentUser
- the acting user.projectsToLimitBy
- this will limit the range of projects the method queries. This is a list of Long, project id's. The returned list will be either the same as this list or a subset.projectRole
- the project role to find out if an actor is a member of.projectRoleType
- the type of role actor you want to query for, in most cases this will be UserRoleActor.TYPE.projectRoleParameter
- the parameter describing the role actor, in the case of a UserRoleActor this will be the username.errorCollection
- will contain any errors in calling the method- Returns:
- A list of Long, project id's. If a projectId is in this list then the project contains has a role associated for the passed in actor and project role.
-
getProjectIdsForUserInGroupsBecauseOfRole
public Map<Long,List<String>> getProjectIdsForUserInGroupsBecauseOfRole(ApplicationUser currentUser, List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String userName, ErrorCollection errorCollection) - Specified by:
getProjectIdsForUserInGroupsBecauseOfRole
in interfaceProjectRoleService
- Parameters:
currentUser
- the acting user.projectsToLimitBy
- this will limit the range of projects the method queries. This is a list of Long, project id's. The returned list will be either the same as this list or a subset.projectRole
- the project role to find out if an actor is a member of.projectRoleType
- the type of role actor you want to query for, in most cases this will be UserRoleActor.TYPE.userName
- the username to find out if the user is in the role because of a grouperrorCollection
- will contain any errors in calling the method- Returns:
- Returns a Map of Lists. The key of the map is a Long, project id and the value of the map is a list of group names that the user is a member of for the project.
-
hasProjectRolePermission
- Specified by:
hasProjectRolePermission
in interfaceProjectRoleService
- Parameters:
currentUser
- the acting user.project
- is the project to check permissions against- Returns:
- true if you have permission, false otherwise.
-
validateNoRoleUsage
Description copied from interface:ProjectRoleService
Checks if the given role is not used. Looks in all schemes, workflows, comments and worklogs.- Specified by:
validateNoRoleUsage
in interfaceProjectRoleService
- Parameters:
projectRole
- the project role to check.- Returns:
- ServiceResult containing any errors in validation
-
swapRole
Description copied from interface:ProjectRoleService
Swaps a role in scheme entities, workflows, comments and worklogs for a replacement role.- Specified by:
swapRole
in interfaceProjectRoleService
- Parameters:
role
- the project role that will be replaced.swapRole
- project role that will replace the old role.
-
getProjectRoles
- Specified by:
getProjectRoles
in interfaceProjectRoleService
-
getProjectRole
- Specified by:
getProjectRole
in interfaceProjectRoleService
-
getProjectRoleByName
- Specified by:
getProjectRoleByName
in interfaceProjectRoleService
-
createProjectRole
- Specified by:
createProjectRole
in interfaceProjectRoleService
-
isProjectRoleNameUnique
- Specified by:
isProjectRoleNameUnique
in interfaceProjectRoleService
-
deleteProjectRole
- Specified by:
deleteProjectRole
in interfaceProjectRoleService
-
updateProjectRole
- Specified by:
updateProjectRole
in interfaceProjectRoleService
-
getProjectRoleActors
public ProjectRoleActors getProjectRoleActors(ProjectRole projectRole, Project project, ErrorCollection errorCollection) - Specified by:
getProjectRoleActors
in interfaceProjectRoleService
-
getDefaultRoleActors
public DefaultRoleActors getDefaultRoleActors(ProjectRole projectRole, ErrorCollection errorCollection) - Specified by:
getDefaultRoleActors
in interfaceProjectRoleService
-
addActorsToProjectRole
public void addActorsToProjectRole(Collection<String> actors, ProjectRole projectRole, Project project, String actorType, ErrorCollection errorCollection) - Specified by:
addActorsToProjectRole
in interfaceProjectRoleService
-
addActorsToProjectRole
public void addActorsToProjectRole(ApplicationUser currentUser, Collection<String> actors, ProjectRole projectRole, Project project, String actorType, ErrorCollection errorCollection) - Specified by:
addActorsToProjectRole
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callactors
- is a list of strings (e.g. user keys or group names) that the RoleActor impl should be able to handleprojectRole
- is the project role to associate withproject
- is the project to associate withactorType
- is a type that defines the type of role actor to instantiate (ex./ UserRoleActor.TYPE, GroupRoleActor.TYPE)errorCollection
- will contain any errors in calling the method
-
removeActorsFromProjectRole
public void removeActorsFromProjectRole(Collection<String> actors, ProjectRole projectRole, Project project, String actorType, ErrorCollection errorCollection) - Specified by:
removeActorsFromProjectRole
in interfaceProjectRoleService
-
removeActorsFromProjectRole
public void removeActorsFromProjectRole(ApplicationUser currentUser, Collection<String> actors, ProjectRole projectRole, Project project, String actorType, ErrorCollection errorCollection) - Specified by:
removeActorsFromProjectRole
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callactors
- is a list of strings (e.g. user keys or group names) that the RoleActor impl should be able to handleprojectRole
- is the project role to associate withproject
- is the project to associate withactorType
- is a type that defines the type of role actor to instantiate (ex./ UserRoleActor.TYPE, GroupRoleActor.TYPE)errorCollection
- will contain any errors in calling the method
-
setActorsForProjectRole
public void setActorsForProjectRole(Map<String, Set<String>> newRoleActors, ProjectRole projectRole, Project project, ErrorCollection errorCollection) - Specified by:
setActorsForProjectRole
in interfaceProjectRoleService
-
addDefaultActorsToProjectRole
public void addDefaultActorsToProjectRole(Collection<String> actors, ProjectRole projectRole, String type, ErrorCollection errorCollection) - Specified by:
addDefaultActorsToProjectRole
in interfaceProjectRoleService
-
addDefaultActorsToProjectRole
public void addDefaultActorsToProjectRole(ApplicationUser currentUser, Collection<String> actors, ProjectRole projectRole, String type, ErrorCollection errorCollection) - Specified by:
addDefaultActorsToProjectRole
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callactors
- is a list of strings (e.g. user keys or group names) that the RoleActor impl should be able to handleprojectRole
- is the project role to associate withtype
- is a type that defines the type of role actor to instantiate (ex./ UserRoleActor.TYPE, GroupRoleActor.TYPE)errorCollection
- will contain any errors in calling the method
-
removeDefaultActorsFromProjectRole
public void removeDefaultActorsFromProjectRole(Collection<String> actors, ProjectRole projectRole, String actorType, ErrorCollection errorCollection) - Specified by:
removeDefaultActorsFromProjectRole
in interfaceProjectRoleService
-
removeDefaultActorsFromProjectRole
public void removeDefaultActorsFromProjectRole(ApplicationUser currentUser, Collection<String> actors, ProjectRole projectRole, String actorType, ErrorCollection errorCollection) - Specified by:
removeDefaultActorsFromProjectRole
in interfaceProjectRoleService
- Parameters:
currentUser
- the user performing the callactors
- is a list of strings (e.g. user keys or group names) that the RoleActor impl should be able to handleprojectRole
- is the project role to associate withactorType
- is a type that defines the type of role actor to instantiate (ex./ UserRoleActor.TYPE, GroupRoleActor.TYPE)errorCollection
- will contain any errors in calling the method
-
validateRemoveAllRoleActorsByNameAndType
- Specified by:
validateRemoveAllRoleActorsByNameAndType
in interfaceProjectRoleService
-
removeAllRoleActorsByNameAndType
public void removeAllRoleActorsByNameAndType(String name, String type, ErrorCollection errorCollection) - Specified by:
removeAllRoleActorsByNameAndType
in interfaceProjectRoleService
-
removeAllRoleActorsByProject
- Specified by:
removeAllRoleActorsByProject
in interfaceProjectRoleService
-
getAssociatedNotificationSchemes
public Collection getAssociatedNotificationSchemes(ProjectRole projectRole, ErrorCollection errorCollection) - Specified by:
getAssociatedNotificationSchemes
in interfaceProjectRoleService
-
getAssociatedPermissionSchemes
public Collection<org.ofbiz.core.entity.GenericValue> getAssociatedPermissionSchemes(ProjectRole projectRole, ErrorCollection errorCollection) - Specified by:
getAssociatedPermissionSchemes
in interfaceProjectRoleService
-
getAssociatedWorkflows
public org.apache.commons.collections.MultiMap getAssociatedWorkflows(ProjectRole projectRole, ErrorCollection errorCollection) - Specified by:
getAssociatedWorkflows
in interfaceProjectRoleService
-
getProjectsContainingRoleActorByNameAndType
public Collection<Project> getProjectsContainingRoleActorByNameAndType(String name, String type, ErrorCollection errorCollection) - Specified by:
getProjectsContainingRoleActorByNameAndType
in interfaceProjectRoleService
-
roleActorOfTypeExistsForProjects
public List<Long> roleActorOfTypeExistsForProjects(List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String projectRoleParameter, ErrorCollection errorCollection) - Specified by:
roleActorOfTypeExistsForProjects
in interfaceProjectRoleService
-
getProjectIdsForUserInGroupsBecauseOfRole
public Map<Long,List<String>> getProjectIdsForUserInGroupsBecauseOfRole(List<Long> projectsToLimitBy, ProjectRole projectRole, String projectRoleType, String userName, ErrorCollection errorCollection) - Specified by:
getProjectIdsForUserInGroupsBecauseOfRole
in interfaceProjectRoleService
-
hasProjectRolePermission
- Specified by:
hasProjectRolePermission
in interfaceProjectRoleService
-