com.atlassian.jira.plugin.issueview
Class IssueViewRequestParamsHelperImpl

java.lang.Object
  extended by com.atlassian.jira.plugin.issueview.IssueViewRequestParamsHelperImpl
All Implemented Interfaces:
IssueViewRequestParamsHelper

public class IssueViewRequestParamsHelperImpl
extends Object
implements IssueViewRequestParamsHelper

Purpose of this class is to encapsulate view field definition parsing. If no parameters are defined issue view is backward compatible. If parameters are defined and and no one parameter is valid class throws exception causing HTTP 400 error.


Constructor Summary
IssueViewRequestParamsHelperImpl(FieldManager fieldManager)
           
 
Method Summary
 IssueViewFieldParams getIssueViewFieldParams(Map requestParameters)
          Method checks defined field parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueViewRequestParamsHelperImpl

public IssueViewRequestParamsHelperImpl(FieldManager fieldManager)
Method Detail

getIssueViewFieldParams

public IssueViewFieldParams getIssueViewFieldParams(Map requestParameters)
Method checks defined field parameters. Fields are added to @{link IssueViewFieldParams} based on following rules: - field name in param matches to field id as defined in @{link IssueFieldConstants} - field name in param matches to field mapping as defined in #fieldNamesMapping - field name in param matches to #nonIssueFields - allcustom field param means no field ids will be added to @{link IssueViewFieldParams#getCustomFieldIds} but @{link IssueViewFieldParams#isAllCustomFields()} flag will be set - field is ignored if does not match to any of above criteria If no one of above criteria will pass method returns @{link IssueViewFieldParams} with empty fields collection and @{link IssueViewFieldParams#isCustomViewRequested()} flag set to true.

Specified by:
getIssueViewFieldParams in interface IssueViewRequestParamsHelper
Parameters:
requestParameters - HttpServletRequest parameters
Returns:
@{link IssueViewFieldParams} containing requested field set and or empty instance if not field parameters were defined


Copyright © 2002-2013 Atlassian. All Rights Reserved.