com.atlassian.greenhopper.web
Class RedirectHelper

java.lang.Object
  extended by com.atlassian.greenhopper.web.RedirectHelper

@Service(value="gh-refreshHelper")
public class RedirectHelper
extends java.lang.Object


Field Summary
static java.lang.String SERVICE
           
 
Constructor Summary
RedirectHelper()
           
 
Method Summary
 java.lang.String getPlanningBoardRedirect(ErrorCollection errorCollection, com.opensymphony.user.User user, XProject xproject, com.atlassian.jira.issue.Issue issue, boolean committed)
           
 java.lang.String getRedirect(com.opensymphony.user.User user, XProject xproject, ViewDefinition viewDefinition, com.atlassian.jira.issue.Issue issue, boolean committed, boolean checkInput)
          Gets the redirect string for an issue and view definiton
 java.lang.String getRedirectByRequestParams(com.opensymphony.user.User user, ErrorCollection errorCollection)
          Creates a redirect url taking the information provided on the request parameters into account.
 java.lang.String getTaskBoardRedirect(ErrorCollection errorCollection, com.opensymphony.user.User user, XProject xproject, com.atlassian.jira.issue.Issue issue, boolean committed)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE

public static final java.lang.String SERVICE
See Also:
Constant Field Values
Constructor Detail

RedirectHelper

public RedirectHelper()
Method Detail

getRedirectByRequestParams

public java.lang.String getRedirectByRequestParams(com.opensymphony.user.User user,
                                                   ErrorCollection errorCollection)
Creates a redirect url taking the information provided on the request parameters into account. This basically expects the issueKey, the pageType and subType values, plus optimally committed


getPlanningBoardRedirect

public java.lang.String getPlanningBoardRedirect(ErrorCollection errorCollection,
                                                 com.opensymphony.user.User user,
                                                 XProject xproject,
                                                 com.atlassian.jira.issue.Issue issue,
                                                 boolean committed)

getTaskBoardRedirect

public java.lang.String getTaskBoardRedirect(ErrorCollection errorCollection,
                                             com.opensymphony.user.User user,
                                             XProject xproject,
                                             com.atlassian.jira.issue.Issue issue,
                                             boolean committed)

getRedirect

public java.lang.String getRedirect(com.opensymphony.user.User user,
                                    XProject xproject,
                                    ViewDefinition viewDefinition,
                                    com.atlassian.jira.issue.Issue issue,
                                    boolean committed,
                                    boolean checkInput)
Gets the redirect string for an issue and view definiton

Parameters:
checkInput - - if check input is true, then we look in the input parameters for the selected boardId


Copyright © 2007-2011 Atlassian. All Rights Reserved.