Performs a batch of content validation requests, where the characteristics
of the validation process include:
Namespace:
FileNet.Api.Admin- Validates documents and annotations.
- Cannot validate content in a database storage area.
- Only verifies that federated content exists (doesn't verify its size).
- Requires VIEW_CONTENT access to the Document or Annotation object.
There isn't a limit on the number of content validation requests that can be performed in a single operation. However, all validations must complete within the time limit of a single request to the server. Therefore, if too many validations are requested, a request timeout exception is likely to occur.
Assembly: FileNet.Api (in FileNet.Api.dll)
Syntax
Visual Basic (Declaration) |
---|
Function ValidateContent ( _ validations As ContentValidationRequest() _ ) As EngineRuntimeException() |
C# |
---|
EngineRuntimeException[] ValidateContent( ContentValidationRequest[] validations ) |
Visual C++ |
---|
array<EngineRuntimeException^>^ ValidateContent( array<ContentValidationRequest^>^ validations ) |
JavaScript |
---|
function validateContent(validations); |
Parameters
- validations
- Type: array<
FileNet.Api.Admin..::.ContentValidationRequest
>[]()[]
An array of ContentValidationRequest objects.
Return Value
An array of EngineRuntimeException objects.
Exceptions
Exception | Condition |
---|---|
FileNet.Api.Exception..::.EngineRuntimeException | thrown after an unsuccessful validation. (The exception message contains enough information to manually restore the invalid content.). |
ExceptionCode..::.CONTENT_CA_VALIDATION_FAILED_NOT_FOUND | thrown when the storage area cannot be found, or the content does not exist, or is inaccessible in the storage area. |
ExceptionCode..::.CONTENT_CA_VALIDATION_FAILED_PENDING_FINALIZATION | thrown when the content is in the process of being moved to a final storage area location. It might succeed if tried again at a later time. |
ExceptionCode..::.CONTENT_CA_VALIDATION_FAILED_SIZE | thrown if the recorded size does not match the actual size in the storage area. |
ExceptionCode..::.CONTENT_GC_CANNOT_FIND_INDEX_NUMBER | thrown when the position argument is incorrect. |
ExceptionCode..::.E_ACCESS_DENIED | thrown if the permissions are insufficient to access the file. |
ExceptionCode..::.E_OBJECT_NOT_FOUND | thrown if the document was not found. |