Table of Contents

R101839-2 ObjectFile - Clear Embedded Contents

Code R101839-2
Entity Systems.Core.ObjectFiles
Name ClearEmbeddedContents
Attribute EmbeddedFileContents, EmbeddedThumbnailContents
Layer Back-End
Events Commit
Record State Inserted, Updated
Priority Normal
Modify YES
Applicable Legislations ALL // no condition needed
Action If ContentLocation is not Embedded, and the file was embedded when it was loaded or embedded contents or a thumbnail have been set in the current save, then:

EmbeddedFileContents = empty value
EmbeddedThumbnailContents = empty value
Description

A file whose contents are kept outside the database - a file system link or an internet url

  • must not keep contents in it. The rule erases the contents of a file which stops being embedded, and prevents contents supplied together with a non-embedded location from being stored.

    An empty value is written instead of NULL, because both attributes are delay loaded. Such a column is written only when a value is supplied - NULL means that the value has not been loaded and would leave the stored file in the database.

    Related: R33762 creates the thumbnail of an embedded image file.
Message -
Version Introduced: v.27.1
Revocable NO

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.