public interface VersionObjectListener
Modifier and Type | Method and Description |
---|---|
boolean |
grantPurgeObject(RegistryBean registryBean)
Grant the object to be purged.
|
boolean |
grantVersionedObject(RegistryBean registryBean)
Grant the object to be versioned.
|
VersionCopyMode |
handleExternalLink(RegistryBean registryBean,
ExternalLink elink)
Handle the external link of given object according copy mode.
|
void |
objectCopied(RegistryBean registryBean)
Handle the new copied object.
|
void |
objectVersioned(RegistryBean registryBean)
Handle the new versioned object.
|
boolean grantVersionedObject(RegistryBean registryBean) throws CSAppFrameworkException
registryBean
- the versionable RegistryBean
objecttrue
: object can be versionedfalse
: versioning not permittedCSAppFrameworkException
- If an error occurs while checking for grant for the versioned objectboolean grantPurgeObject(RegistryBean registryBean) throws CSAppFrameworkException
registryBean
- the versionable RegistryBean
objecttrue
: object can be deletedfalse
: delete not permittedCSAppFrameworkException
- If an error occurs while trying to check if the object can be purgedvoid objectVersioned(RegistryBean registryBean) throws CSAppFrameworkException
registryBean
- the new created versionable RegistryBean
objectCSAppFrameworkException
- If an error occurs while trying to version the objectvoid objectCopied(RegistryBean registryBean) throws CSAppFrameworkException
registryBean
- the newly created copied registry objectCSAppFrameworkException
- If an error occurs while trying to copy the objectsVersionCopyMode handleExternalLink(RegistryBean registryBean, ExternalLink elink) throws CSAppFrameworkException
registryBean
- the versioned RegistryBean
object holding 'elink'elink
- the original ExternalLink
of the registry objectnull
: not requiredCSAppFrameworkException
- If an error occurs in handling external links