public class UploadSequenceValidator extends UploadFileValidator implements org.springframework.validation.Validator
UploadSequenceValidator class.
| Constructor and Description |
|---|
UploadSequenceValidator()
Constructor for UploadSequenceValidator.
|
| Modifier and Type | Method and Description |
|---|---|
FileService |
getFileService()
Getter for the field
fileService. |
FileTypeService |
getFileTypeService()
Getter for the field
fileTypeService. |
void |
setFileService(FileService fileService)
Setter for the field
fileService. |
void |
setFileTypeService(FileTypeService fileTypeService)
Setter for the field
fileTypeService. |
boolean |
supports(Class clazz) |
void |
validate(Object obj,
org.springframework.validation.Errors errors)
Validates the specified Object.
|
void |
validateExtension(org.springframework.web.multipart.MultipartFile fileOne,
org.springframework.web.multipart.MultipartFile fileTwo,
Integer fileTypeId,
org.springframework.validation.Errors errors) |
getExtension, validateExists, validateExtension, validateProtocolpublic UploadSequenceValidator()
Constructor for UploadSequenceValidator.
public boolean supports(Class clazz)
supports in interface org.springframework.validation.Validatorsupports in class UploadFileValidatorclazz - public void validate(Object obj, org.springframework.validation.Errors errors)
validate in interface org.springframework.validation.Validatorvalidate in class UploadFileValidatorobj - errors - public void validateExtension(org.springframework.web.multipart.MultipartFile fileOne,
org.springframework.web.multipart.MultipartFile fileTwo,
Integer fileTypeId,
org.springframework.validation.Errors errors)
errors - fileTypeId - public FileService getFileService()
Getter for the field fileService.
getFileService in class UploadFileValidatorFileService object.public void setFileService(FileService fileService)
Setter for the field fileService.
setFileService in class UploadFileValidatorfileService - a FileService object.public FileTypeService getFileTypeService()
Getter for the field fileTypeService.
getFileTypeService in class UploadFileValidatorFileTypeService object.public void setFileTypeService(FileTypeService fileTypeService)
Setter for the field fileTypeService.
setFileTypeService in class UploadFileValidatorfileTypeService - a FileTypeService object.Copyright © 2015 SeqWare. All rights reserved.