com.centrasite.registry.versionmanagementservices
Interface VersionObjectListener

All Known Implementing Classes:
VersionObjectListenerImpl

public interface VersionObjectListener

Interface for the object listener during Versioning. The user may get control over objects to be versioned or purged.


Method Summary
 boolean grantPurgeObject(javax.xml.registry.infomodel.RegistryObject registryObject)
          Grant the object to be purged.
 boolean grantVersionedObject(javax.xml.registry.infomodel.RegistryObject registryObject)
          Grant the object to be versioned.
 VersionCopyMode handleExternalLink(javax.xml.registry.infomodel.RegistryObject registryObject, javax.xml.registry.infomodel.ExternalLink elink)
          Handle the external link of given object according copy mode.
 void objectCopied(javax.xml.registry.infomodel.RegistryObject registryObject)
          Handle the new copied object.
 void objectVersioned(javax.xml.registry.infomodel.RegistryObject registryObject)
          Handle the new versioned object.
 

Method Detail

grantVersionedObject

boolean grantVersionedObject(javax.xml.registry.infomodel.RegistryObject registryObject)
Grant the object to be versioned.

Parameters:
registryObject - the versionable registry object
Returns:
true: object can be versioned
false: versioning not permitted

grantPurgeObject

boolean grantPurgeObject(javax.xml.registry.infomodel.RegistryObject registryObject)
Grant the object to be purged.

Parameters:
registryObject - the versionable registry object
Returns:
true: object can be deleted
false: delete not permitted

objectVersioned

void objectVersioned(javax.xml.registry.infomodel.RegistryObject registryObject)
Handle the new versioned object. The object may be modified.

Parameters:
registryObject - the new created versionable registry object

objectCopied

void objectCopied(javax.xml.registry.infomodel.RegistryObject registryObject)
Handle the new copied object. The object may be modified.

Parameters:
registryObject - the newly created copied registry object

handleExternalLink

VersionCopyMode handleExternalLink(javax.xml.registry.infomodel.RegistryObject registryObject,
                                   javax.xml.registry.infomodel.ExternalLink elink)
Handle the external link of given object according copy mode. The user can overwrite the default handling defined by the object's copy mode.
Note: if several listeners return copy modes, then the result is not predictable

Parameters:
registryObject - the versioned registry object holding 'elink'
elink - the original external link of the registry object
Returns:
the version copy mode
null: not required