com.filenet.api.engine

Interface ContentValidator



  • public interface ContentValidator
    Defines the interface which must be implemented by a content validator.
    • Method Detail

      • validateContent

        java.lang.String validateContent(CmContentValidationAction action,
                                         java.lang.String retrievalName,
                                         java.lang.String contentType,
                                         java.io.InputStream content)
        Validates the acceptability of content being uploaded. The handler can accept or reject the content based on the retrieval name or content type or by examining the content itself.
        Parameters:
        action - The CmContentValidationAction object which configures the validator.
        retrievalName - The retrieval name specified by the client application creating the content element or null if no retrieval name was specified.
        contentType - The content type specified by the client application creating the content element or null if no content type was specified.
        content - An InputStream from which the validator can read the incoming content.
        Returns:
        Null if the content is acceptable or text giving the reason for unacceptibility.

© Copyright IBM Corporation 2006, 2019. All rights reserved.