com.synopsys.integration.jira.common.server.model.IssueSearchResponseModel 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) 2024 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.server.model;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.synopsys.integration.jira.common.model.JiraPageResponseModel;
public class IssueSearchResponseModel extends JiraPageResponseModel {
private String expand;
private List issues;
public IssueSearchResponseModel() {
}
public IssueSearchResponseModel(String expand, List issues) {
this.expand = expand;
this.issues = issues;
}
public String getExpand() {
return expand;
}
public List getExpandAsList() {
if (StringUtils.isNotBlank(expand)) {
String[] expandedArray = expand.split(",");
return Arrays.asList(expandedArray);
}
return Collections.emptyList();
}
public List getIssues() {
return issues;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy