com.atlassian.greenhopper.service.issuelink
Class EpicServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.service.issuelink.EpicServiceImpl
All Implemented Interfaces:
EpicService

@Service
public class EpicServiceImpl
extends java.lang.Object
implements EpicService


Constructor Summary
EpicServiceImpl()
           
 
Method Summary
 ServiceOutcome<java.lang.Void> associateIssuesWithEpic(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.issue.Issue epic, java.util.Set<com.atlassian.jira.issue.Issue> issues)
          Associate one or more issues with an epic.
 ServiceOutcome<java.lang.Void> disassociateEpicFromIssues(com.atlassian.crowd.embedded.api.User user, java.util.Set<com.atlassian.jira.issue.Issue> issues)
          Disassociates the issues from the epic(s) they are associated with.
 ServiceOutcome<EpicNamesResult> listEpicNames(com.atlassian.crowd.embedded.api.User user, java.lang.String searchTerm, int maxResults, com.atlassian.jira.project.Project prioritizedProject)
          Returns a result object containing the matching epic names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EpicServiceImpl

public EpicServiceImpl()
Method Detail

associateIssuesWithEpic

@Nonnull
public ServiceOutcome<java.lang.Void> associateIssuesWithEpic(com.atlassian.crowd.embedded.api.User user,
                                                                      @Nonnull
                                                                      com.atlassian.jira.issue.Issue epic,
                                                                      @Nonnull
                                                                      java.util.Set<com.atlassian.jira.issue.Issue> issues)
Description copied from interface: EpicService
Associate one or more issues with an epic.

Specified by:
associateIssuesWithEpic in interface EpicService
Parameters:
user - the user performing the operation
epic - the epic
issues - the issues
Returns:
the outcome

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: EpicService
Disassociates the issues from the epic(s) they are associated with.

Specified by:
disassociateEpicFromIssues in interface EpicService
Parameters:
user - the user performing the operation
issues - the issues
Returns:
the outcome

listEpicNames

@Nonnull
public ServiceOutcome<EpicNamesResult> listEpicNames(com.atlassian.crowd.embedded.api.User user,
                                                             java.lang.String searchTerm,
                                                             int maxResults,
                                                             com.atlassian.jira.project.Project prioritizedProject)
Description copied from interface: EpicService
Returns a result object containing the matching epic names.

Specified by:
listEpicNames in interface EpicService
searchTerm - The search term to be used to find matching epic names. Matching will occur agains the epic's key and name
maxResults - The maximum amount of matching epic names to be returned.
prioritizedProject - Optional. If search term is blank, the returned epic names will be selected if they belong to the prioritized project
Returns:


Copyright © 2007-2014 Atlassian. All Rights Reserved.