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, validateProtocol
public UploadSequenceValidator()
Constructor for UploadSequenceValidator.
public boolean supports(Class clazz)
supports
in interface org.springframework.validation.Validator
supports
in class UploadFileValidator
clazz
- public void validate(Object obj, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
validate
in class UploadFileValidator
obj
- 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 UploadFileValidator
FileService
object.public void setFileService(FileService fileService)
Setter for the field fileService
.
setFileService
in class UploadFileValidator
fileService
- a FileService
object.public FileTypeService getFileTypeService()
Getter for the field fileTypeService
.
getFileTypeService
in class UploadFileValidator
FileTypeService
object.public void setFileTypeService(FileTypeService fileTypeService)
Setter for the field fileTypeService
.
setFileTypeService
in class UploadFileValidator
fileTypeService
- a FileTypeService
object.Copyright © 2015 SeqWare. All rights reserved.