net.kindeditor.bean.FileItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of filemanager Show documentation
Show all versions of filemanager Show documentation
KindEditor(http://kindeditor.org/) is a lightweight, Open Source(LGPL), cross browser, web based WYSIWYG HTML editor.
kind-file-manager is the upload manager and file manager for kindeditor,
it use Servlet 3.0 technology, and can be deployed as a single web fragment jar.
The newest version!
package net.kindeditor.bean;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
/**
* Represent file or directory in kind editor. This class is used to generate json response to kind editor.
* @author luyanfei
*
*/
@JsonAutoDetect(fieldVisibility=Visibility.NONE,getterVisibility=Visibility.NONE,
setterVisibility=Visibility.NONE,creatorVisibility=Visibility.NONE,isGetterVisibility=Visibility.NONE)
public class FileItem {
@JsonProperty("filename")
private String fileName;
@JsonProperty("filesize")
private long fileSize;
@JsonProperty("filetype")
private String fileType;
@JsonProperty("has_file")
private boolean hasFile;
@JsonProperty("is_dir")
private boolean isDir;
@JsonProperty("is_photo")
private boolean isPhoto;
@JsonProperty("datetime")
private Date dateTime;
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public long getFileSize() {
return fileSize;
}
public void setFileSize(long fileSize) {
this.fileSize = fileSize;
}
public String getFileType() {
return fileType;
}
public void setFileType(String fileType) {
this.fileType = fileType;
}
public boolean isHasFile() {
return hasFile;
}
public void setHasFile(boolean hasFile) {
this.hasFile = hasFile;
}
public boolean isDir() {
return isDir;
}
public void setDir(boolean isDir) {
this.isDir = isDir;
}
public boolean isPhoto() {
return isPhoto;
}
public void setPhoto(boolean isPhoto) {
this.isPhoto = isPhoto;
}
public Date getDateTime() {
return dateTime;
}
public void setDateTime(Date dateTime) {
this.dateTime = dateTime;
}
}