Class ScanResult

java.lang.Object
com.xwiki.antivirus.ScanResult

public class ScanResult extends Object
The result of a virus scan performed on an attachment.
Version:
$Id$
  • Constructor Details

    • ScanResult

      public ScanResult(org.xwiki.model.reference.AttachmentReference attachmentReference, boolean clean, Collection<String> foundViruses)
      Parameters:
      attachmentReference - the scanned attachment's reference
      clean - true if no virus was found
      foundViruses - 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:
      true if no virus was found
    • getfoundViruses

      public Collection<String> getfoundViruses()
      Returns:
      a collection of detected virus names inside the scanned attachment