public interface RevisionManager
Note that the revision feature must be switched on before using this interface.
Modifier and Type | Method and Description |
---|---|
int |
deleteCheckpointLabels(java.lang.String checkpointLabel)
Deletes all label names from all flagged revision objects.
|
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> |
findObjects(java.util.Collection findQualifiers,
javax.xml.registry.infomodel.RegistryObject regObj)
Find all revision objects based on the given registry object and with find qualifiers.
|
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> |
findObjects(java.util.Collection findQualifiers,
java.lang.String objectType,
java.util.Collection checkpointLabels,
java.util.Collection classifications)
Finds all revision objects based on the given object type and with find qualifiers.
|
java.lang.String |
getCheckpointLabel(javax.xml.registry.infomodel.RegistryObject regObj)
Gets the checkpoint label name of a registry object from the revision part.
|
java.util.Collection<java.lang.String> |
getCheckpointLabels()
Gets a list of all checkpoint label names active in the system.
|
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> |
getCheckpointObjects(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> objects,
java.lang.String checkpointLabel)
Gets the revision objects, based on the objects specified and having a checkpoint label.
|
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> |
getCheckpointObjects(java.lang.String checkpointLabel)
Gets all revision objects which were created with the given checkpoint label name.
|
int |
getMinorVersion(javax.xml.registry.infomodel.RegistryObject regObj)
Gets the minor version number of a registry object.
|
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> |
getObjects(javax.xml.registry.infomodel.RegistryObject regObj)
Gets all present revision objects based on a specific jaxr object.
|
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> |
getObjects(java.lang.String objectType,
java.lang.String objectId)
Gets all present revision objects based on a specific jaxr object.
|
int |
purge(java.util.Collection<java.lang.String> objectTypes,
int keepCount)
Purges old versions of objects in the registry.
|
int |
purge(javax.xml.registry.infomodel.RegistryObject regObj,
int keepCount)
Purges old versions based on the given registry object.
|
void |
restoreObjects(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> objects)
Restores the specified revision objects that they will become the actual object.
|
void |
setCheckpointLabel(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> objects,
java.lang.String checkpointLabel)
Sets a checkpoint label name to the objects specified.
|
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getObjects(java.lang.String objectType, java.lang.String objectId) throws RevisionException
objectType
- the object type of the object (in the shape: "{namespace}typename")objectId
- the uddi-id of the objectRevisionException
- if an internal error occurs on retrieving the objectsjava.util.Collection<javax.xml.registry.infomodel.RegistryObject> getObjects(javax.xml.registry.infomodel.RegistryObject regObj) throws RevisionException
regObj
- a registry objectRevisionException
- if an internal error occurs on retrieving the objectsjava.util.Collection<javax.xml.registry.infomodel.RegistryObject> findObjects(java.util.Collection findQualifiers, javax.xml.registry.infomodel.RegistryObject regObj) throws RevisionException
findQualifiers
- qualifiers from RevisionFindQualifiersregObj
- a registry objectRevisionException
- if an internal error occurs on finding the objectsjava.util.Collection<javax.xml.registry.infomodel.RegistryObject> findObjects(java.util.Collection findQualifiers, java.lang.String objectType, java.util.Collection checkpointLabels, java.util.Collection classifications) throws RevisionException
findQualifiers
- qualifiers from RevisionFindQualifiers (null: not required)objectType
- the object type (in the shape: "{namespace}typename")checkpointLabels
- collection of matching label names (null: not required)classifications
- collection of classifications which should match (null: not required)RevisionException
- if an internal error occurs on finding the objectsvoid restoreObjects(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> objects) throws RevisionException
objects
- collection of RegistryObject from the revision partRevisionException
- if an internal error occurs on restoring the objectsvoid setCheckpointLabel(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> objects, java.lang.String checkpointLabel) throws RevisionException
objects
- collection of RegistryObjectcheckpointLabel
- name of the checkpoint labelRevisionException
- if an internal error occurs on updating the check point labeljava.util.Collection<javax.xml.registry.infomodel.RegistryObject> getCheckpointObjects(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> objects, java.lang.String checkpointLabel) throws RevisionException
objects
- collection of RegistryObjectcheckpointLabel
- name of the checkpoint labelRevisionException
- if an internal error occurs on retrieving the check point objectsjava.util.Collection<javax.xml.registry.infomodel.RegistryObject> getCheckpointObjects(java.lang.String checkpointLabel) throws RevisionException
checkpointLabel
- name of the checkpoint labelRevisionException
- if an internal error occurs on retrieving the check point objectsjava.util.Collection<java.lang.String> getCheckpointLabels() throws RevisionException
RevisionException
- if an internal error occurs on retrieving the check point labelsint deleteCheckpointLabels(java.lang.String checkpointLabel) throws RevisionException
checkpointLabel
- name of the checkpoint labelRevisionException
- if an internal error occurs on deleting the check point labelsint purge(javax.xml.registry.infomodel.RegistryObject regObj, int keepCount) throws RevisionException
regObj
- a registry objectkeepCount
- number of objects to keep (the value must be > 0)RevisionException
- if an internal error occursint purge(java.util.Collection<java.lang.String> objectTypes, int keepCount) throws RevisionException
objectTypes
- collection of object types to purge (shape: {namespace}type)
null or empty list: purge all objects in the registrykeepCount
- number of objects to keep (the value must be > 0)RevisionException
- if an internal error occursint getMinorVersion(javax.xml.registry.infomodel.RegistryObject regObj) throws RevisionException
regObj
- any registry objectRevisionException
- if an internal error occurs on retrieving the minor versionjava.lang.String getCheckpointLabel(javax.xml.registry.infomodel.RegistryObject regObj) throws RevisionException
regObj
- a registry object (original or from revision part)RevisionException
- if an internal error occurs on retrieving the check point label