CentraSite 10.7 | CentraSite Developer's Guide | API for JAXR | CentraSite API for JAXR Reference Information | Delete Operation
 
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.
RegistryObject
In general, an attempt to delete a registry object is rejected if:
*it is a new object, that is, it has not yet been saved, or
*it is the target of an association.
Deleting a registry object has the following side-effects:
*Removes the object from all its packages; update the packages.
*De-links the object from all its external links; update the external links.
*Deletes all associations whose source object is the object to be deleted.
*Deletes all classifications whose classified object is the object to be deleted.
*Deletes all external identifiers whose registry object is the object to be deleted.
Association
1. Remove the association from its source object.
2. Update the source object. This automatically deletes the association.
AuditableEvent
It is not possible to delete an auditable event explicitly.
Classification
1. Remove the classification from its classified object.
2. Update the classified object. This automatically deletes the classification.
ClassificationScheme
1. Reject deletion if there are child concepts; else
2. Delete the classification scheme.
Concept
1. Reject deletion if there are child concepts; else,
2. Remove the concept from its parent object.
3. Update the parent object.
4. Delete the concept.
ExternalIdentifier
1. Remove the external identifier from its registry object.
2. Update the registry object. This automatically deletes the external identifier.
ExternalLink
1. Reject deletion if there are linked objects; else,
2. Delete the external link.
Organization
1. Reject deletion if there are child organizations, services, or users; else,
2. Remove the organization from its parent organization.
3. Update the parent organization.
4. Delete the organization.
RegistryEntry
1. Delete the registry entry.
RegistryPackage
1. Reject deletion if there are member objects; else,
2. Delete the registry package.
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.
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.
SpecificationLink
1. Remove the specification link from its service binding.
2. Update the service binding's enclosing service. This automatically deletes the specification link.
User
1. Remove the user from its organization.
2. Update the organization.
3. Delete the user.