We are doing a feature on a Hana web Application(on HCP) where it is required to prevent any viral file upload to ECM repository.
Regarding this I have the following Questions.
1. Is the below configuration sufficient to enable the ECM viral scanning on a repository created in run time ?
RepositoryOptions.setVirusScannerEnabled(true)
Suggested by - https://help.hana.ondemand.com/javadoc/com/sap/ecm/api/RepositoryOptions.html
Or do we need to do any other configuration, or apply any other settings to enable the viral scanning under my web application ?
2. What is the actual JAVA class name for Virus Scan Exception ? Which is JAR file having this class file ? How do I obtain such a jar ?
Basically I need to catch this particular exception in a try-catch block and take necessary action.
The link below just says if the virus scanning detects a malicious file the Repository file upload will fail and it will throw virus scan exception but does
not precisely take name of its java class and package.
https://help.hana.ondemand.com/help/frameset.htm?279edd108d4247d997bd932759f72b8d.html
3. Where do I find a simple viral file with which I can test the viral scanning feature ?
How do we define a file is a viral file in terms of Hana Virus scanner infrastructure ?
Any sample web application and some spec related to this will be of great Help!