All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.gs4tr.gcc.restclient.request.SubmissionsListRequest Maven / Gradle / Ivy

Go to download

GlobalLink Connect Cloud java is a library to connect your system to GlobalLink Connect Cloud REST API.

There is a newer version: 3.1.3
Show newest version
package org.gs4tr.gcc.restclient.request;

import java.util.List;

import org.gs4tr.gcc.restclient.model.SubmissionStatus;

import com.fasterxml.jackson.annotation.JsonProperty;

public class SubmissionsListRequest extends PageableRequest {

    @JsonProperty("state")
    private String[] submissionStatuses;
    @JsonProperty("submission_id")
    private Long submissionId;
    @JsonProperty("submitter")
    private String submitter;
    @JsonProperty("is_cancelled")
    private Integer isCancelled;
    @JsonProperty("is_error")
    private Integer isError;
    @JsonProperty("is_overdue")
    private Integer isOverdue;
    @JsonProperty("submission_name")
    private String submissionName;
    @JsonProperty("tags")
    private List tags;

    public SubmissionsListRequest() {

    }

    public SubmissionsListRequest(Long pageNumber, Long pageSize, SubmissionStatus[] submissionStatuses,
	    Long submissionId, String submitter) {
	super(pageNumber, pageSize);
	setSubmissionStatuses(submissionStatuses);
	this.submissionId = submissionId;
	this.submitter = submitter;
    }

    public void setSubmissionStatuses(SubmissionStatus[] submissionStatuses) {
	if (submissionStatuses != null && submissionStatuses.length > 0) {
	    this.submissionStatuses = new String[submissionStatuses.length];
	    int i = 0;
	    for (SubmissionStatus submissionStatus : submissionStatuses) {
		this.submissionStatuses[i++] = submissionStatus.text();
	    }
	} else {
	    this.submissionStatuses = null;
	}
    }

    public String getSubmitter() {
	return submitter;
    }

    public void setSubmitter(String submitter) {
	this.submitter = submitter;
    }

    public String[] getSubmissionStatuses() {
	return submissionStatuses;
    }

    public void setSubmissionStatuses(String[] submissionStatuses) {
	this.submissionStatuses = submissionStatuses;
    }

    public Long getSubmissionId() {
	return submissionId;
    }

    public void setSubmissionId(Long submissionId) {
	this.submissionId = submissionId;
    }

    public String getSubmissionName() {
	return submissionName;
    }

    public void setSubmissionName(String submissionName) {
	this.submissionName = submissionName;
    }

    public Integer getIsCancelled() {
	return isCancelled;
    }

    public void setIsCancelled(Integer isCancelled) {
	this.isCancelled = isCancelled;
    }

    public Integer getIsError() {
	return isError;
    }

    public void setIsError(Integer isError) {
	this.isError = isError;
    }

    public Integer getIsOverdue() {
	return isOverdue;
    }

    public void setIsOverdue(Integer isOverdue) {
	this.isOverdue = isOverdue;
    }

    public List getTags() {
	return tags;
    }

    public void setTags(List tags) {
	this.tags = tags;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy