com.ibm.tivoli.maximo.antivirus.impl.icap.result

Class ICAPViolation

  • java.lang.Object
    • com.ibm.tivoli.maximo.antivirus.impl.icap.result.ICAPViolation
  • All Implemented Interfaces:
    Violation


    public class ICAPViolation
    extends java.lang.Object
    implements Violation
    • Constructor Detail

      • ICAPViolation

        public ICAPViolation()
    • Method Detail

      • getFileName

        public java.lang.String getFileName()
        Specified by:
        getFileName in interface Violation
        Returns:
        The name of the file in which the violation occurred; returned from the scanner
      • setFileName

        public void setFileName(java.lang.String fileName)
                         throws ParsingException
        Stores the File name as returned from the scanner
        Parameters:
        fileName - The filename returned from the scanner
        Throws:
        ParsingException - This is thrown with an invalid string
      • getViolationType

        public java.lang.String getViolationType()
        Specified by:
        getViolationType in interface Violation
        Returns:
        Human-readable threat description
      • setViolationType

        public void setViolationType(java.lang.String violationType)
                              throws ParsingException
        The type of violation in human readable form from the scanner
        Parameters:
        violationType - The type of violation from the scanner
        Throws:
        ParsingException - Thrown for invalid string
      • getProblemID

        public int getProblemID()
        Specified by:
        getProblemID in interface Violation
        Returns:
        Integer identify of policy violation, set by the scanner
      • setProblemID

        public void setProblemID(int problemID)
        The integer identification of the violation, from the scanner
        Parameters:
        problemID - The integer identification of the violation
      • setResolutionID

        public void setResolutionID(int resolutionID)
                             throws ParsingException
        This function takes care of the mapping from an integer to an actual enumeration for the "resolution_id" type...
        Parameters:
        resolutionID - An integer representing the resolution_id from the scanner
        Throws:
        ParsingException - This is thrown when the integer does not map to a resolution_ID type
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object