com.atlassian.greenhopper.web.rapid.entity.sprint
Class SprintLinkedPagesModelFactory

java.lang.Object
  extended by com.atlassian.greenhopper.web.rapid.entity.common.AbstractLinkedPagesModelFactory
      extended by com.atlassian.greenhopper.web.rapid.entity.sprint.SprintLinkedPagesModelFactory

@Service
public class SprintLinkedPagesModelFactory
extends AbstractLinkedPagesModelFactory


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.web.rapid.entity.common.AbstractLinkedPagesModelFactory
applicationLinkService, CONFLUENCE_APP_ID, CONFLUENCE_APP_LINK_EXISTS, CONFLUENCE_APP_LINK_ID, CONFLUENCE_APP_NAME, CONFLUENCE_APP_URL, CONFLUENCE_AUTHENTICATION_REQUIRED, CONFLUENCE_AUTHENTICATION_URL, CONFLUENCE_JIRA_AGILE_SRC, CONFLUENCE_NO_APPLINK_AUTH_CONFIGURED, CONFLUENCE_PAGE_DELETED, CONFLUENCE_PAGE_ID, CONFLUENCE_PERMISSION_DENIED, CONFLUENCE_RELATIONSHIP_NAME, CONFLUENCE_SERVER_UNAVAILABLE, CONFLUENCE_SRC, CONFLUENCE_TITLE, CREATE_CONTENT_JIRA_REMOTE_LINK_CALLBACK, CREATE_CONTENT_WITH_INIT_CONTEXT, KEYS, log
 
Constructor Summary
SprintLinkedPagesModelFactory()
           
 
Method Summary
 int getCountOfLinkedPages(com.atlassian.crowd.embedded.api.User user, Sprint sprint)
          Returns the number of pages linked to a sprint
 java.util.List<RemoteEntityLinkModel> getPagesForSprint(com.atlassian.crowd.embedded.api.User user, Sprint sprint, java.util.List<LinkedPagesModel.ApplicationLinkModel> applicationLinks)
          Returns a list of RemoteEntityLinkModel objects that represent the pages linked to a sprint
 ServiceOutcome<RemoteEntityLinkModel> linkPageToSprint(com.atlassian.crowd.embedded.api.User user, Sprint sprint, java.lang.String pageId, java.lang.String pageTitle)
          Links a page to a sprint.
 
Methods inherited from class com.atlassian.greenhopper.web.rapid.entity.common.AbstractLinkedPagesModelFactory
buildPageUrl, buildPageUrlWithSrc, extractPageIdFromGlobalId, extractPageIdFromUrl, findSupportedConfluenceApplicationLinks, hasPagesSupport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SprintLinkedPagesModelFactory

public SprintLinkedPagesModelFactory()
Method Detail

getCountOfLinkedPages

public int getCountOfLinkedPages(com.atlassian.crowd.embedded.api.User user,
                                 Sprint sprint)
Returns the number of pages linked to a sprint

Parameters:
user -
sprint -
Returns:

getPagesForSprint

public java.util.List<RemoteEntityLinkModel> getPagesForSprint(com.atlassian.crowd.embedded.api.User user,
                                                               Sprint sprint,
                                                               java.util.List<LinkedPagesModel.ApplicationLinkModel> applicationLinks)
Returns a list of RemoteEntityLinkModel objects that represent the pages linked to a sprint

Parameters:
sprint -
applicationLinks -
Returns:

linkPageToSprint

public ServiceOutcome<RemoteEntityLinkModel> linkPageToSprint(com.atlassian.crowd.embedded.api.User user,
                                                              Sprint sprint,
                                                              java.lang.String pageId,
                                                              java.lang.String pageTitle)
Links a page to a sprint.

Parameters:
user -
sprint -
pageId -
Returns:


Copyright © 2007-2014 Atlassian. All Rights Reserved.