public static class FileEntryResults.FileInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getContentType() |
java.io.File |
getFile() |
java.lang.String |
getFileName() |
long |
getSize() |
FileEntryStatus |
getStatus() |
int |
hashCode() |
boolean |
isSaved() |
java.lang.String |
toString() |
void |
updateStatus(FileEntryStatus newStatus,
boolean invalidate)
In the callback, applications may override the uploaded
files' statuses, if the files fail the application's custom
validation, by using this method.
|
void |
updateStatus(FileEntryStatus newStatus,
boolean invalidate,
boolean deleteFile)
In the fileEntryListener, applications may override the uploaded
files' statuses, if the files fail the application's custom
validation, by using this method.
|
public void updateStatus(FileEntryStatus newStatus, boolean invalidate, boolean deleteFile)
newStatus - The new status for the uploaded fileinvalidate - If should invalidate the component, and the form.
This will only have an effect if this method is called before
UpdateModel phase, such as when called from the fileEntryListener
when the fileEntry has immediate=true.deleteFile - If should delete the file from the file-systempublic void updateStatus(FileEntryStatus newStatus, boolean invalidate)
newStatus - The new status for the uploaded fileinvalidate - If should invalidate the component, and the form.public java.lang.String getFileName()
public java.lang.String getContentType()
public java.io.File getFile()
public long getSize()
public FileEntryStatus getStatus()
public boolean isSaved()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright 2017 ICEsoft Technologies Canada Corp., All Rights Reserved.