Tree PREV CLASS NEXT CLASS SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD com.ibm.workplace.wcm.api.extensions.validation
Interface FileUploadValidationContext
public interface FileUploadValidationContextPassed to the validation plugin as part of the validate method. This is used to pass meta informaiton about the stream to be validated and any additional information WCM may wish to pass to the plugin.
- Since:
- 6.1.5
Method Summary DocumentType getDocumentType()
Return a DocuemntType indicating the type of Component that will hold the File bytes being validated.java.lang.String getFileName()
File name of the uploaded file,long getFileSize()
Size of the File/Stream to be validatejava.lang.String getMimeType()
MimeType for the file.
Method Detail getMimeType
java.lang.String getMimeType()
- MimeType for the file. This has either been set explicitly or derived from the fileType of the file.
- Returns:
- mimeType for the stream, may be null.
getFileName
java.lang.String getFileName()
- File name of the uploaded file,
- Returns:
- name of the file, may be null
getFileSize
long getFileSize()
- Size of the File/Stream to be validate
- Returns:
- size of the stream, will be -1 if size is not known
getDocumentType
DocumentType getDocumentType()
- Return a DocuemntType indicating the type of Component that will hold the File bytes being validated.
May return null if the document type is not known,
- Returns:
- DocumentType to contain the File/Stream, if known, null otherwise.
Tree PREV CLASS NEXT CLASS SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD