Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

When (un)deleting an object apply the following rules and validation. Multiple cascade options can be active for a record type.

Cascade Options Delete

Cascade Option

Describe

Technical Type

Record Types

None

No rules

NONE

Record

Cannot have non-deleted children

  • Delete is rejected if there are non deleted children

  • Prevents unwanted deletion of important records

REQUIRE_NO_CHILDREN

Classification, Series

Adopt children by grandparent

  • The children are adopted by their grandparent

  • If there is no grandparent the delete is rejected

ADOPT_CHILDREN_TO_PARENT

Mh2Collection

Cascade to all (grand)children

  • (Grand)children are asynchronously deleted

  • Delete cascade options from the children themselves are ignored

CASCADE

Media

Under The Hood

The asynchronous deletion is done using a new batch action.

Cascade Options Undelete

Cascade Option

Describe

Technical Type

Record Types

None

No rules

NONE, REQUIRE_NO_CHILDREN,

ADOPT_CHILDREN_TO_PARENT

Record, Classification, Series, Mh2Collection

Cascade to all (grand)children

Cascade to all (grand)parents up to classification level (excluded)

  • All logically deleted (grand)children are asynchronously restored

  • All logically deleted (grand)parents are synchronously restored. If one of the parents to be restored is permanently deleted, the restore fails with a validation error and no records will be deleted

  • Delete cascade options from the children/parents themselves are ignored

CASCADE

Media

Under The Hood

The asynchronous restore of (grand)children is done using a new batch action.