com.ibm.tivoli.maximo.doclink

Class AbstractFileVerification

  • java.lang.Object
    • com.ibm.tivoli.maximo.doclink.AbstractFileVerification


  • public abstract class AbstractFileVerification
    extends java.lang.Object
    Abstract class to use to implement any additional file validation that are necessary. Extend this class and specify it with the mxe.doclink.FileValidationClass system property
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      abstract void scanFile(java.lang.String filename, byte[] file)
      Method to implement for file scanning.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractFileVerification

        public AbstractFileVerification()
    • Method Detail

      • scanFile

        public abstract void scanFile(java.lang.String filename,
                                      byte[] file)
                               throws MXApplicationException
        Method to implement for file scanning. If the file is valid, simply return, otherwise, to reject the file throw an MXApplication exception with the message you would like the user to see.
        Parameters:
        filename -
        file -
        Throws:
        MXApplicationException