com.synopsys.integration.jira.common.model.JiraQueryParam Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of int-jira-common Show documentation
Show all versions of int-jira-common Show documentation
A library for using various capabilities of Jira.
/*
* int-jira-common
*
* Copyright (c) 2023 Synopsys, Inc.
*
* Use subject to the terms and conditions of the Synopsys End User Software License and Maintenance Agreement. All rights reserved worldwide.
*/
package com.synopsys.integration.jira.common.model;
import com.synopsys.integration.jira.common.enumeration.JiraSortOrder;
public class JiraQueryParam {
private String key;
private String value;
private JiraSortOrder jiraSortOrder;
public JiraQueryParam(String key, String value) {
this.key = key;
this.value = value;
}
public JiraQueryParam(String key, String value, JiraSortOrder jiraSortOrder) {
this.key = key;
this.value = value;
this.jiraSortOrder = jiraSortOrder;
}
public String createQueryString() {
if (null != jiraSortOrder) {
return key + "=" + jiraSortOrder.getQueryValuePrefix() + value;
}
return key + "=" + value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy