diff --git a/opencga-core/src/main/java/org/opencb/opencga/core/models/file/FileCreateParamsOld.java b/opencga-core/src/main/java/org/opencb/opencga/core/models/file/FileCreateParamsOld.java deleted file mode 100644 index 5f5727eefb..0000000000 --- a/opencga-core/src/main/java/org/opencb/opencga/core/models/file/FileCreateParamsOld.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2015-2020 OpenCB - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.opencb.opencga.core.models.file; - -import com.fasterxml.jackson.annotation.JsonProperty; - -@Deprecated -public class FileCreateParamsOld { - - @JsonProperty(required = true) - private String path; - private String content; - private String description; - - @JsonProperty(defaultValue = "false") - private boolean parents; - - @JsonProperty(defaultValue = "false") - private boolean directory; - - public FileCreateParamsOld() { - } - - public FileCreateParamsOld(String path, String content, String description, boolean parents, boolean directory) { - this.path = path; - this.content = content; - this.description = description; - this.parents = parents; - this.directory = directory; - } - - @Override - public String toString() { - final StringBuilder sb = new StringBuilder("FileCreateParams{"); - sb.append("path='").append(path).append('\''); - sb.append(", content='").append(content).append('\''); - sb.append(", description='").append(description).append('\''); - sb.append(", parents=").append(parents); - sb.append(", directory=").append(directory); - sb.append('}'); - return sb.toString(); - } - - public String getPath() { - return path; - } - - public FileCreateParamsOld setPath(String path) { - this.path = path; - return this; - } - - public String getContent() { - return content; - } - - public FileCreateParamsOld setContent(String content) { - this.content = content; - return this; - } - - public String getDescription() { - return description; - } - - public FileCreateParamsOld setDescription(String description) { - this.description = description; - return this; - } - - public boolean isParents() { - return parents; - } - - public FileCreateParamsOld setParents(boolean parents) { - this.parents = parents; - return this; - } - - public boolean isDirectory() { - return directory; - } - - public FileCreateParamsOld setDirectory(boolean directory) { - this.directory = directory; - return this; - } -}