Class ResourceContentFileTypeValidator

java.lang.Object
ch.tocco.nice2.persist.core.api.validation.AbstractEntitiesValidator
ch.tocco.nice2.dms.impl.validate.ResourceContentFileTypeValidator
All Implemented Interfaces:
EntitiesValidator

@ConditionalOnProperty(value="nice2.dms.validateFileTypes", havingValue="true", matchIfMissing=true) public class ResourceContentFileTypeValidator extends AbstractEntitiesValidator
checks files uploaded to dms that they match allowed file types as contributed through DmsAllowedFileTypeContribution if no allowed file types are contributed, any file is accepted