com.atlassian.greenhopper.service.sprint
Class SprintPermissionServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.service.sprint.SprintPermissionServiceImpl
All Implemented Interfaces:
SprintPermissionService

@Service
public class SprintPermissionServiceImpl
extends java.lang.Object
implements SprintPermissionService

Implementation of SprintPermissionService


Constructor Summary
SprintPermissionServiceImpl()
           
 
Method Summary
 ServiceOutcome<java.lang.Void> canAddRemoveIssuesToSprint(com.atlassian.crowd.embedded.api.User user, java.util.Collection<com.atlassian.jira.issue.Issue> issues)
          Can the user edit the sprint assignment for a set of issues? In order to add/remove issues from a sprint, the user must have schedule permission for all issues
 ServiceOutcome<java.lang.Void> canCreateSprint(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.Set<com.atlassian.jira.issue.Issue> issues)
          Can the user create a sprint given the set of issues? This method checks whether the user has the PROJECT_ADMIN permission for all projects the issues are of.
 boolean canMostLikelyManageSprints(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.Set<java.lang.Long> projectIds)
          Can the user manage sprints of the given board? Note: The method is called that way because the value is either derived from the rapid view filter query or the passed project ids.
 ServiceOutcome<java.lang.Void> canUpdateSprint(com.atlassian.crowd.embedded.api.User user, Sprint sprint)
          Can the user update a sprint, that is, update, delete, etc.
 ServiceOutcome<java.util.Map<Sprint,java.lang.Boolean>> canUpdateSprints(com.atlassian.crowd.embedded.api.User user, java.util.List<Sprint> sprints)
          Can the user update the given sprints, that is, update, delete, etc.
 ServiceOutcome<java.lang.Boolean> canViewSprint(com.atlassian.crowd.embedded.api.User user, Sprint sprint)
          Can the user view a given sprint?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SprintPermissionServiceImpl

public SprintPermissionServiceImpl()
Method Detail

canViewSprint

@NotNull
public ServiceOutcome<java.lang.Boolean> canViewSprint(com.atlassian.crowd.embedded.api.User user,
                                                               Sprint sprint)
Description copied from interface: SprintPermissionService
Can the user view a given sprint?

Specified by:
canViewSprint in interface SprintPermissionService

canCreateSprint

@NotNull
public ServiceOutcome<java.lang.Void> canCreateSprint(com.atlassian.crowd.embedded.api.User user,
                                                              RapidView rapidView,
                                                              java.util.Set<com.atlassian.jira.issue.Issue> issues)
Description copied from interface: SprintPermissionService
Can the user create a sprint given the set of issues? This method checks whether the user has the PROJECT_ADMIN permission for all projects the issues are of.

Specified by:
canCreateSprint in interface SprintPermissionService

canUpdateSprint

@NotNull
public ServiceOutcome<java.lang.Void> canUpdateSprint(com.atlassian.crowd.embedded.api.User user,
                                                              Sprint sprint)
Description copied from interface: SprintPermissionService
Can the user update a sprint, that is, update, delete, etc.

Specified by:
canUpdateSprint in interface SprintPermissionService

canUpdateSprints

@NotNull
public ServiceOutcome<java.util.Map<Sprint,java.lang.Boolean>> canUpdateSprints(com.atlassian.crowd.embedded.api.User user,
                                                                                        java.util.List<Sprint> sprints)
Description copied from interface: SprintPermissionService
Can the user update the given sprints, that is, update, delete, etc.

Specified by:
canUpdateSprints in interface SprintPermissionService

canAddRemoveIssuesToSprint

public ServiceOutcome<java.lang.Void> canAddRemoveIssuesToSprint(com.atlassian.crowd.embedded.api.User user,
                                                                 java.util.Collection<com.atlassian.jira.issue.Issue> issues)
Description copied from interface: SprintPermissionService
Can the user edit the sprint assignment for a set of issues? In order to add/remove issues from a sprint, the user must have schedule permission for all issues

Specified by:
canAddRemoveIssuesToSprint in interface SprintPermissionService

canMostLikelyManageSprints

public boolean canMostLikelyManageSprints(com.atlassian.crowd.embedded.api.User user,
                                          RapidView rapidView,
                                          java.util.Set<java.lang.Long> projectIds)
Description copied from interface: SprintPermissionService
Can the user manage sprints of the given board? Note: The method is called that way because the value is either derived from the rapid view filter query or the passed project ids. The project ids are normally obtained during fetching of the board issues, which *includes* security checking.

Specified by:
canMostLikelyManageSprints in interface SprintPermissionService


Copyright © 2007-2014 Atlassian. All Rights Reserved.