com.atlassian.jira.bc.projectroles
Class DefaultProjectRoleService
java.lang.Object
com.atlassian.jira.bc.projectroles.DefaultProjectRoleService
- All Implemented Interfaces:
- ProjectRoleService
public class DefaultProjectRoleService
- extends Object
- implements ProjectRoleService
Default implementation of the ProjectRoleService
Constructor Summary |
DefaultProjectRoleService(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)
|
Method Summary |
void |
addActorsToProjectRole(Collection<String> actors,
ProjectRole projectRole,
Project project,
String actorType,
ErrorCollection errorCollection)
|
void |
addActorsToProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Collection<String> actors,
ProjectRole projectRole,
Project project,
String actorType,
ErrorCollection errorCollection)
|
void |
addDefaultActorsToProjectRole(Collection<String> actors,
ProjectRole projectRole,
String type,
ErrorCollection errorCollection)
|
void |
addDefaultActorsToProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Collection<String> actors,
ProjectRole projectRole,
String type,
ErrorCollection errorCollection)
|
ProjectRole |
createProjectRole(ProjectRole projectRole,
ErrorCollection errorCollection)
|
ProjectRole |
createProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
|
void |
deleteProjectRole(ProjectRole projectRole,
ErrorCollection errorCollection)
|
void |
deleteProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
|
Collection<org.ofbiz.core.entity.GenericValue> |
getAssociatedIssueSecuritySchemes(ProjectRole projectRole,
ErrorCollection errorCollection)
|
Collection |
getAssociatedIssueSecuritySchemes(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
|
Collection |
getAssociatedNotificationSchemes(ProjectRole projectRole,
ErrorCollection errorCollection)
|
Collection |
getAssociatedNotificationSchemes(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
|
Collection<org.ofbiz.core.entity.GenericValue> |
getAssociatedPermissionSchemes(ProjectRole projectRole,
ErrorCollection errorCollection)
|
Collection |
getAssociatedPermissionSchemes(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
|
org.apache.commons.collections.MultiMap |
getAssociatedWorkflows(ProjectRole projectRole,
ErrorCollection errorCollection)
|
org.apache.commons.collections.MultiMap |
getAssociatedWorkflows(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
|
DefaultRoleActors |
getDefaultRoleActors(ProjectRole projectRole,
ErrorCollection errorCollection)
|
DefaultRoleActors |
getDefaultRoleActors(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
|
Map<Long,List<String>> |
getProjectIdsForUserInGroupsBecauseOfRole(List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String userName,
ErrorCollection errorCollection)
|
Map<Long,List<String>> |
getProjectIdsForUserInGroupsBecauseOfRole(com.atlassian.crowd.embedded.api.User currentUser,
List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String userName,
ErrorCollection errorCollection)
|
ProjectRole |
getProjectRole(Long id,
ErrorCollection errorCollection)
|
ProjectRole |
getProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Long id,
ErrorCollection errorCollection)
|
ProjectRoleActors |
getProjectRoleActors(ProjectRole projectRole,
Project project,
ErrorCollection errorCollection)
|
ProjectRoleActors |
getProjectRoleActors(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
Project project,
ErrorCollection errorCollection)
|
ProjectRole |
getProjectRoleByName(String name,
ErrorCollection errorCollection)
|
ProjectRole |
getProjectRoleByName(com.atlassian.crowd.embedded.api.User currentUser,
String name,
ErrorCollection errorCollection)
|
Collection<ProjectRole> |
getProjectRoles(ErrorCollection errorCollection)
|
Collection<ProjectRole> |
getProjectRoles(com.atlassian.crowd.embedded.api.User currentUser,
ErrorCollection errorCollection)
|
Collection<Project> |
getProjectsContainingRoleActorByNameAndType(String name,
String type,
ErrorCollection errorCollection)
|
Collection<Project> |
getProjectsContainingRoleActorByNameAndType(com.atlassian.crowd.embedded.api.User currentUser,
String name,
String type,
ErrorCollection errorCollection)
|
boolean |
hasProjectRolePermission(Project project)
|
boolean |
hasProjectRolePermission(com.atlassian.crowd.embedded.api.User currentUser,
Project project)
|
boolean |
isProjectRoleNameUnique(String name,
ErrorCollection errorCollection)
|
boolean |
isProjectRoleNameUnique(com.atlassian.crowd.embedded.api.User currentUser,
String name,
ErrorCollection errorCollection)
|
void |
removeActorsFromProjectRole(Collection<String> actors,
ProjectRole projectRole,
Project project,
String actorType,
ErrorCollection errorCollection)
|
void |
removeActorsFromProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Collection<String> actors,
ProjectRole projectRole,
Project project,
String actorType,
ErrorCollection errorCollection)
|
void |
removeAllRoleActorsByNameAndType(String name,
String type)
|
void |
removeAllRoleActorsByNameAndType(String name,
String type,
ErrorCollection errorCollection)
|
void |
removeAllRoleActorsByNameAndType(com.atlassian.crowd.embedded.api.User currentUser,
String name,
String type,
ErrorCollection errorCollection)
|
void |
removeAllRoleActorsByProject(Project project,
ErrorCollection errorCollection)
|
void |
removeAllRoleActorsByProject(com.atlassian.crowd.embedded.api.User currentUser,
Project project,
ErrorCollection errorCollection)
|
void |
removeDefaultActorsFromProjectRole(Collection<String> actors,
ProjectRole projectRole,
String actorType,
ErrorCollection errorCollection)
|
void |
removeDefaultActorsFromProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Collection<String> actors,
ProjectRole projectRole,
String actorType,
ErrorCollection errorCollection)
|
List<Long> |
roleActorOfTypeExistsForProjects(List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String projectRoleParameter,
ErrorCollection errorCollection)
|
List<Long> |
roleActorOfTypeExistsForProjects(com.atlassian.crowd.embedded.api.User currentUser,
List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String projectRoleParameter,
ErrorCollection errorCollection)
|
void |
setActorsForProjectRole(Map<String,Set<String>> newRoleActors,
ProjectRole projectRole,
Project project,
ErrorCollection errorCollection)
|
void |
setActorsForProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Map<String,Set<String>> newRoleActors,
ProjectRole projectRole,
Project project,
ErrorCollection errorCollection)
|
void |
updateProjectRole(ProjectRole projectRole,
ErrorCollection errorCollection)
|
void |
updateProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
|
ErrorCollection |
validateRemoveAllRoleActorsByNameAndType(String name,
String type)
|
ErrorCollection |
validateRemoveAllRoleActorsByNameAndType(com.atlassian.crowd.embedded.api.User currentUser,
String name,
String type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultProjectRoleService
public DefaultProjectRoleService(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)
getProjectRoles
public Collection<ProjectRole> getProjectRoles(com.atlassian.crowd.embedded.api.User currentUser,
ErrorCollection errorCollection)
- Specified by:
getProjectRoles
in interface ProjectRoleService
- Returns:
- The global list of project roles in JIRA
getProjectRole
public ProjectRole getProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Long id,
ErrorCollection errorCollection)
- Specified by:
getProjectRole
in interface ProjectRoleService
- 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(com.atlassian.crowd.embedded.api.User currentUser,
String name,
ErrorCollection errorCollection)
- Specified by:
getProjectRoleByName
in interface ProjectRoleService
- 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(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
createProjectRole
in interface ProjectRoleService
- 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(com.atlassian.crowd.embedded.api.User currentUser,
String name,
ErrorCollection errorCollection)
- Specified by:
isProjectRoleNameUnique
in interface ProjectRoleService
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(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
deleteProjectRole
in interface ProjectRoleService
- Parameters:
currentUser
- the user performing the callerrorCollection
- will contain any errors in calling the method
updateProjectRole
public void updateProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
updateProjectRole
in interface ProjectRoleService
- Parameters:
currentUser
- the user performing the callerrorCollection
- will contain any errors in calling the method
getProjectRoleActors
public ProjectRoleActors getProjectRoleActors(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
Project project,
ErrorCollection errorCollection)
- Specified by:
getProjectRoleActors
in interface ProjectRoleService
- Parameters:
currentUser
- the user performing the callerrorCollection
- will contain any errors in calling the method
- Returns:
- the ProjectRoleActor representing the projectRole and project
addActorsToProjectRole
public void addActorsToProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Collection<String> actors,
ProjectRole projectRole,
Project project,
String actorType,
ErrorCollection errorCollection)
- Specified by:
addActorsToProjectRole
in interface ProjectRoleService
- 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(com.atlassian.crowd.embedded.api.User currentUser,
Collection<String> actors,
ProjectRole projectRole,
Project project,
String actorType,
ErrorCollection errorCollection)
- Specified by:
removeActorsFromProjectRole
in interface ProjectRoleService
- 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(com.atlassian.crowd.embedded.api.User currentUser,
Map<String,Set<String>> newRoleActors,
ProjectRole projectRole,
Project project,
ErrorCollection errorCollection)
- Specified by:
setActorsForProjectRole
in interface ProjectRoleService
- 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(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
getDefaultRoleActors
in interface ProjectRoleService
- Parameters:
currentUser
- the user performing the call
- Returns:
- the default role actors
addDefaultActorsToProjectRole
public void addDefaultActorsToProjectRole(com.atlassian.crowd.embedded.api.User currentUser,
Collection<String> actors,
ProjectRole projectRole,
String type,
ErrorCollection errorCollection)
- Specified by:
addDefaultActorsToProjectRole
in interface ProjectRoleService
- 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(com.atlassian.crowd.embedded.api.User currentUser,
Collection<String> actors,
ProjectRole projectRole,
String actorType,
ErrorCollection errorCollection)
- Specified by:
removeDefaultActorsFromProjectRole
in interface ProjectRoleService
- 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
removeAllRoleActorsByNameAndType
public void removeAllRoleActorsByNameAndType(com.atlassian.crowd.embedded.api.User currentUser,
String name,
String type,
ErrorCollection errorCollection)
- Specified by:
removeAllRoleActorsByNameAndType
in interface ProjectRoleService
- 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(com.atlassian.crowd.embedded.api.User currentUser,
String name,
String type)
- Specified by:
validateRemoveAllRoleActorsByNameAndType
in interface ProjectRoleService
- 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
public void removeAllRoleActorsByNameAndType(String name,
String type)
- Specified by:
removeAllRoleActorsByNameAndType
in interface ProjectRoleService
- 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(com.atlassian.crowd.embedded.api.User currentUser,
Project project,
ErrorCollection errorCollection)
- Specified by:
removeAllRoleActorsByProject
in interface ProjectRoleService
- Parameters:
currentUser
- the user performing the callerrorCollection
- will contain any errors in calling the method
getAssociatedNotificationSchemes
public Collection getAssociatedNotificationSchemes(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
getAssociatedNotificationSchemes
in interface ProjectRoleService
- 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 interface ProjectRoleService
getAssociatedIssueSecuritySchemes
public Collection getAssociatedIssueSecuritySchemes(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
getAssociatedIssueSecuritySchemes
in interface ProjectRoleService
- 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(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
getAssociatedPermissionSchemes
in interface ProjectRoleService
- 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(com.atlassian.crowd.embedded.api.User currentUser,
ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
getAssociatedWorkflows
in interface ProjectRoleService
- 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(com.atlassian.crowd.embedded.api.User currentUser,
String name,
String type,
ErrorCollection errorCollection)
- Specified by:
getProjectsContainingRoleActorByNameAndType
in interface ProjectRoleService
- 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(com.atlassian.crowd.embedded.api.User currentUser,
List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String projectRoleParameter,
ErrorCollection errorCollection)
- Specified by:
roleActorOfTypeExistsForProjects
in interface ProjectRoleService
- 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(com.atlassian.crowd.embedded.api.User currentUser,
List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String userName,
ErrorCollection errorCollection)
- Specified by:
getProjectIdsForUserInGroupsBecauseOfRole
in interface ProjectRoleService
- 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
public boolean hasProjectRolePermission(com.atlassian.crowd.embedded.api.User currentUser,
Project project)
- Specified by:
hasProjectRolePermission
in interface ProjectRoleService
- Parameters:
currentUser
- the acting user.project
- is the project to check permissions against
- Returns:
- true if you have permission, false otherwise.
getProjectRoles
public Collection<ProjectRole> getProjectRoles(ErrorCollection errorCollection)
- Specified by:
getProjectRoles
in interface ProjectRoleService
getProjectRole
public ProjectRole getProjectRole(Long id,
ErrorCollection errorCollection)
- Specified by:
getProjectRole
in interface ProjectRoleService
getProjectRoleByName
public ProjectRole getProjectRoleByName(String name,
ErrorCollection errorCollection)
- Specified by:
getProjectRoleByName
in interface ProjectRoleService
createProjectRole
public ProjectRole createProjectRole(ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
createProjectRole
in interface ProjectRoleService
isProjectRoleNameUnique
public boolean isProjectRoleNameUnique(String name,
ErrorCollection errorCollection)
- Specified by:
isProjectRoleNameUnique
in interface ProjectRoleService
deleteProjectRole
public void deleteProjectRole(ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
deleteProjectRole
in interface ProjectRoleService
updateProjectRole
public void updateProjectRole(ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
updateProjectRole
in interface ProjectRoleService
getProjectRoleActors
public ProjectRoleActors getProjectRoleActors(ProjectRole projectRole,
Project project,
ErrorCollection errorCollection)
- Specified by:
getProjectRoleActors
in interface ProjectRoleService
getDefaultRoleActors
public DefaultRoleActors getDefaultRoleActors(ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
getDefaultRoleActors
in interface ProjectRoleService
addActorsToProjectRole
public void addActorsToProjectRole(Collection<String> actors,
ProjectRole projectRole,
Project project,
String actorType,
ErrorCollection errorCollection)
- Specified by:
addActorsToProjectRole
in interface ProjectRoleService
removeActorsFromProjectRole
public void removeActorsFromProjectRole(Collection<String> actors,
ProjectRole projectRole,
Project project,
String actorType,
ErrorCollection errorCollection)
- Specified by:
removeActorsFromProjectRole
in interface ProjectRoleService
setActorsForProjectRole
public void setActorsForProjectRole(Map<String,Set<String>> newRoleActors,
ProjectRole projectRole,
Project project,
ErrorCollection errorCollection)
- Specified by:
setActorsForProjectRole
in interface ProjectRoleService
addDefaultActorsToProjectRole
public void addDefaultActorsToProjectRole(Collection<String> actors,
ProjectRole projectRole,
String type,
ErrorCollection errorCollection)
- Specified by:
addDefaultActorsToProjectRole
in interface ProjectRoleService
removeDefaultActorsFromProjectRole
public void removeDefaultActorsFromProjectRole(Collection<String> actors,
ProjectRole projectRole,
String actorType,
ErrorCollection errorCollection)
- Specified by:
removeDefaultActorsFromProjectRole
in interface ProjectRoleService
validateRemoveAllRoleActorsByNameAndType
public ErrorCollection validateRemoveAllRoleActorsByNameAndType(String name,
String type)
- Specified by:
validateRemoveAllRoleActorsByNameAndType
in interface ProjectRoleService
removeAllRoleActorsByNameAndType
public void removeAllRoleActorsByNameAndType(String name,
String type,
ErrorCollection errorCollection)
- Specified by:
removeAllRoleActorsByNameAndType
in interface ProjectRoleService
removeAllRoleActorsByProject
public void removeAllRoleActorsByProject(Project project,
ErrorCollection errorCollection)
- Specified by:
removeAllRoleActorsByProject
in interface ProjectRoleService
getAssociatedNotificationSchemes
public Collection getAssociatedNotificationSchemes(ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
getAssociatedNotificationSchemes
in interface ProjectRoleService
getAssociatedPermissionSchemes
public Collection<org.ofbiz.core.entity.GenericValue> getAssociatedPermissionSchemes(ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
getAssociatedPermissionSchemes
in interface ProjectRoleService
getAssociatedWorkflows
public org.apache.commons.collections.MultiMap getAssociatedWorkflows(ProjectRole projectRole,
ErrorCollection errorCollection)
- Specified by:
getAssociatedWorkflows
in interface ProjectRoleService
getProjectsContainingRoleActorByNameAndType
public Collection<Project> getProjectsContainingRoleActorByNameAndType(String name,
String type,
ErrorCollection errorCollection)
- Specified by:
getProjectsContainingRoleActorByNameAndType
in interface ProjectRoleService
roleActorOfTypeExistsForProjects
public List<Long> roleActorOfTypeExistsForProjects(List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String projectRoleParameter,
ErrorCollection errorCollection)
- Specified by:
roleActorOfTypeExistsForProjects
in interface ProjectRoleService
getProjectIdsForUserInGroupsBecauseOfRole
public Map<Long,List<String>> getProjectIdsForUserInGroupsBecauseOfRole(List<Long> projectsToLimitBy,
ProjectRole projectRole,
String projectRoleType,
String userName,
ErrorCollection errorCollection)
- Specified by:
getProjectIdsForUserInGroupsBecauseOfRole
in interface ProjectRoleService
hasProjectRolePermission
public boolean hasProjectRolePermission(Project project)
- Specified by:
hasProjectRolePermission
in interface ProjectRoleService
Copyright © 2002-2014 Atlassian. All Rights Reserved.