com.atlassian.greenhopper.manager.issuelink
Class EpicLinkManagerImpl

java.lang.Object
  extended by com.atlassian.greenhopper.manager.issuelink.EpicLinkManagerImpl
All Implemented Interfaces:
EpicLinkManager

@Service
public class EpicLinkManagerImpl
extends java.lang.Object
implements EpicLinkManager


Field Summary
 
Fields inherited from interface com.atlassian.greenhopper.manager.issuelink.EpicLinkManager
EPIC_CHILD_FIELD_NAME
 
Constructor Summary
EpicLinkManagerImpl()
           
 
Method Summary
 ServiceOutcome<java.lang.Void> associateIssuesWithEpic(com.atlassian.crowd.embedded.api.User user, com.atlassian.fugue.Option<com.atlassian.jira.issue.Issue> epic, java.util.Set<com.atlassian.jira.issue.Issue> issues)
          Associate the given issues with the epic specified.
 ServiceOutcome<java.lang.Void> disassociateEpicFromIssues(com.atlassian.crowd.embedded.api.User user, java.util.Set<com.atlassian.jira.issue.Issue> issues)
          Disassociate epics associated to the given issues
 ServiceOutcome<java.lang.Void> disassociateIssuesFromEpic(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.issue.Issue epic)
          Disassociate issues associated to the given epic
 com.atlassian.fugue.Option<com.atlassian.jira.issue.Issue> getEpic(com.atlassian.jira.issue.Issue child)
          Get the Epic of an issue, if one exists, by performing a database lookup of an issue's links.
 java.util.List<com.atlassian.jira.issue.Issue> getIssuesInEpic(com.atlassian.jira.issue.Issue epic)
          Get a list of all of the child epics if there are any by looking up the issue's links.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EpicLinkManagerImpl

public EpicLinkManagerImpl()
Method Detail

getEpic

@Nonnull
public com.atlassian.fugue.Option<com.atlassian.jira.issue.Issue> getEpic(com.atlassian.jira.issue.Issue child)
Description copied from interface: EpicLinkManager
Get the Epic of an issue, if one exists, by performing a database lookup of an issue's links.

Specified by:
getEpic in interface EpicLinkManager
Parameters:
child - the issue
Returns:
the epic issue if the child has one

getIssuesInEpic

public java.util.List<com.atlassian.jira.issue.Issue> getIssuesInEpic(com.atlassian.jira.issue.Issue epic)
Description copied from interface: EpicLinkManager
Get a list of all of the child epics if there are any by looking up the issue's links.

Specified by:
getIssuesInEpic in interface EpicLinkManager
Returns:
outcome containing a list of issues

disassociateIssuesFromEpic

@Nonnull
public ServiceOutcome<java.lang.Void> disassociateIssuesFromEpic(com.atlassian.crowd.embedded.api.User user,
                                                                         @Nonnull
                                                                         com.atlassian.jira.issue.Issue epic)
Description copied from interface: EpicLinkManager
Disassociate issues associated to the given epic

Specified by:
disassociateIssuesFromEpic in interface EpicLinkManager

disassociateEpicFromIssues

@Nonnull
public ServiceOutcome<java.lang.Void> disassociateEpicFromIssues(com.atlassian.crowd.embedded.api.User user,
                                                                         @Nonnull
                                                                         java.util.Set<com.atlassian.jira.issue.Issue> issues)
Description copied from interface: EpicLinkManager
Disassociate epics associated to the given issues

Specified by:
disassociateEpicFromIssues in interface EpicLinkManager

associateIssuesWithEpic

@Nonnull
public ServiceOutcome<java.lang.Void> associateIssuesWithEpic(com.atlassian.crowd.embedded.api.User user,
                                                                      @Nonnull
                                                                      com.atlassian.fugue.Option<com.atlassian.jira.issue.Issue> epic,
                                                                      @Nonnull
                                                                      java.util.Set<com.atlassian.jira.issue.Issue> issues)
Description copied from interface: EpicLinkManager
Associate the given issues with the epic specified. If the epic is not specified, it will disassociate the issues from their current epics.

Specified by:
associateIssuesWithEpic in interface EpicLinkManager
Parameters:
user - the user performing the operation
epic - the epic; specify Option.none() to disassociate
issues - the issues
Returns:
the result


Copyright © 2007-2014 Atlassian. All Rights Reserved.