Version 9.6
 —  CentraSite API for JAXR  —

Delete Operation

Deleting an object means deleting it from the persistent store. Optionally, the delete operation can be called with an objectType parameter, which is one of the pre-defined LifeCycleManager interface names. If this parameter is specified, only objects of that type are accepted for delete. The interface names shown in the following list are allowed for a deletion; all others are rejected with an InvalidRequestException.

LifeCycleManager.ASSOCIATION
LifeCycleManager.CLASSIFICATION
LifeCycleManager.CLASSIFICATION_SCHEME
LifeCycleManager.CONCEPT
LifeCycleManager.EXTERNAL_IDENTIFIER
LifeCycleManager.EXTERNAL_LINK
LifeCycleManager.ORGANIZATION
LifeCycleManager.REGISTRY_ENTRY
LifeCycleManager.REGISTRY_PACKAGE
LifeCycleManager.SERVICE
LifeCycleManager.SERVICE_BINDING
LifeCycleManager.SPECIFICATION_LINK
LifeCycleManager.USER

Objects have relationships to each other: some relationships prohibit object deletion, while other relationships are automatically cleaned up during deletion. The following sections describe for each object type how it is treated during deletion.


RegistryObject

In general, an attempt to delete a registry object is rejected if:

Deleting a registry object has the following side-effects:

  1. Remove the object from all its packages; update the packages.

  2. Delink the object from all its external links; update the external links.

  3. Delete all associations whose source object is the object to be deleted.

  4. Delete all classifications whose classified object is the object to be deleted.

  5. Delete all external identifiers whose registry object is the object to be deleted.

Top of page

Association

  1. Remove the association from its source object.

  2. Update the source object. This automatically deletes the association.

Top of page

AuditableEvent

It is not possible to delete an auditable event explicitly.

Top of page

Classification

  1. Remove the classification from its classified object.

  2. Update the classified object. This automatically deletes the classification.

Top of page

ClassificationScheme

  1. Reject deletion if there are child concepts; otherwise:

  2. Delete the classification scheme.

Top of page

Concept

  1. Reject deletion if there are child concepts; otherwise:

  2. Remove the concept from its parent object.

  3. Update the parent object.

  4. Delete the concept.

Top of page

ExternalIdentifier

  1. Remove the external identifier from its registry object.

  2. Update the registry object. This automatically deletes the external identifier.

Top of page

ExternalLink

  1. Reject deletion if there are linked objects; otherwise:

  2. Delete the external link.

Top of page

Organization

  1. Reject deletion if there are child organizations, services, or users; otherwise:

  2. Remove the organization from its parent organization.

  3. Update the parent organization.

  4. Delete the organization.

Top of page

RegistryEntry

  1. Delete the registry entry.

Top of page

RegistryPackage

  1. Reject deletion if there are member objects; otherwise:

  2. Delete the registry package.

Top of page

Service

  1. Remove the service from its organization.

  2. Update the organization.

  3. Delete all service bindings whose service is the service to be deleted.

  4. Delete the service.

Top of page

ServiceBinding

  1. Remove the service binding from its service.

  2. Delete all specification links whose service binding is the service binding to be deleted.

  3. Update the service. This automatically deletes the service binding.

Top of page

SpecificationLink

  1. Remove the specification link from its service binding.

  2. Update the service binding's enclosing service. This automatically deletes the specification link.

Top of page

User

  1. Remove the user from its organization.

  2. Update the organization.

  3. Delete the user.

Top of page