Java Interface Details
Interface
Interface IContentProcessor is invoked by Windchill services before the content is stored. The content that is uploaded to Windchill server is passed on to this interface in the form of InputStream and map. This map contains information about the vault file path, the vault file name, and the operation name (Upload/Copy). After scanning the content for virus, InputStream and the file length is returned via ProcessResult. You can customize the interface to display WTException with appropriate message if virus is found during the scan or if the interface is not able to communicate with the antivirus software. The message in WTException will be displayed as a user interface alert.
* 
Do not close the InputStream after you read it.
To avoid duplicate scanning during transferring of content file from vault to vault, check the operation value from the input map. If the operation value is COPY, do not scan the content and return the InputStream as-is back to Content Service via ProcessResult. If the content file is repaired by the antivirus software, it will fail to upload because of the modified file length.
The virus scanner prevents the transfer of virus corrupted content files between file vaults. However, it does not prevent the transfer between two cloud based vaults.
¿Fue esto útil?