com.filenet.api.engine
Interface ContentValidator
-
public interface ContentValidatorDefines the interface which must be implemented by a content validator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.StringvalidateContent(CmContentValidationAction action, java.lang.String retrievalName, java.lang.String contentType, java.io.InputStream content)Validates the acceptability of content being uploaded.
-
-
-
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- TheCmContentValidationActionobject 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- AnInputStreamfrom which the validator can read the incoming content.- Returns:
- Null if the content is acceptable or text giving the reason for unacceptibility.
-
-