org.summerb.microservices.articles.mvc.vm.ArticleAttachmentVm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of summerb Show documentation
Show all versions of summerb Show documentation
summerb - is a set of building blocks for real-world java-based web apps
package org.summerb.microservices.articles.mvc.vm;
import org.springframework.web.multipart.commons.CommonsMultipartFile;
import org.summerb.microservices.articles.api.dto.Attachment;
public class ArticleAttachmentVm {
private final Attachment articleAttachment;
private CommonsMultipartFile file;
public ArticleAttachmentVm(Attachment articleAttachment) {
this.articleAttachment = articleAttachment;
}
public ArticleAttachmentVm() {
this.articleAttachment = new Attachment();
}
public String getName() {
return articleAttachment.getName();
}
public void setName(String fileName) {
articleAttachment.setName(fileName);
}
public CommonsMultipartFile getFile() {
return file;
}
public void setFile(CommonsMultipartFile file) {
this.file = file;
}
public Attachment getAttachment() {
return articleAttachment;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy