java.lang.Object |
↳ |
com.atlassian.jira.plugin.issueview.IssueViewRequestParamsHelperImpl |
Class Overview
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.
Public Constructors
public
IssueViewRequestParamsHelperImpl
(FieldManager fieldManager)
Public Methods
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.
Parameters
requestParameters
| HttpServletRequest parameters |