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

org.summerb.microservices.articles.mvc.vm.ArticleAttachmentVm Maven / Gradle / Ivy

There is a newer version: 4.1.1
Show newest version
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