com.centrasite.registry.versionmanagementservices
Interface ICollectorVersioning


public interface ICollectorVersioning

Interface of collect and version of a composite object. For example the Service which collects all its related objects (such as Operations ...)


Method Summary
 void createVersion(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> newObjects, VersionCopyMode copyMode)
          Create versions of all related objects.
 java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getPurgeTopObjects()
          Get the top object(s) of the object to be purged.
 java.util.Collection<javax.xml.registry.infomodel.Key> purge(int keepCount)
          Purge objects of all related objects.
 

Method Detail

createVersion

void createVersion(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> newObjects,
                   VersionCopyMode copyMode)
                   throws javax.xml.registry.JAXRException,
                          VersionException
Create versions of all related objects.

Parameters:
newObjects - list of new duplicates objects
copyMode - the copy mode
Throws:
javax.xml.registry.JAXRException
VersionException

purge

java.util.Collection<javax.xml.registry.infomodel.Key> purge(int keepCount)
                                                             throws javax.xml.registry.JAXRException
Purge objects of all related objects.

Parameters:
keepCount - the keep count of the purge
Returns:
collection of keys to be deleted
Throws:
javax.xml.registry.JAXRException

getPurgeTopObjects

java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getPurgeTopObjects()
                                                                                     throws javax.xml.registry.JAXRException
Get the top object(s) of the object to be purged. This is e.g. for removing the version associations.

Returns:
collection of top objects
Throws:
javax.xml.registry.JAXRException