Package com.xwiki.antivirus
Class ScanResult
java.lang.Object
com.xwiki.antivirus.ScanResult
The result of a virus scan performed on an attachment.
- Version:
- $Id$
-
Constructor Summary
ConstructorsConstructorDescriptionScanResult(org.xwiki.model.reference.AttachmentReference attachmentReference, boolean clean, Collection<String> foundViruses) -
Method Summary
Modifier and TypeMethodDescriptionorg.xwiki.model.reference.AttachmentReferencebooleanisClean()
-
Constructor Details
-
ScanResult
public ScanResult(org.xwiki.model.reference.AttachmentReference attachmentReference, boolean clean, Collection<String> foundViruses) - Parameters:
attachmentReference- the scanned attachment's referenceclean-trueif no virus was foundfoundViruses- a collection of detected virus names inside the scanned attachment
-
-
Method Details
-
getAttachmentReference
public org.xwiki.model.reference.AttachmentReference getAttachmentReference()- Returns:
- the scanned attachment's reference
-
isClean
public boolean isClean()- Returns:
trueif no virus was found
-
getfoundViruses
- Returns:
- a collection of detected virus names inside the scanned attachment
-