|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.centrasite.registry.revision.RevisionManagerImpl
public class RevisionManagerImpl
The implementation of the revision manager.
Note that the revision feature must be switched on before using this interface.
Refer to the 'RevisionAdministrator' for the way how to activate.
The following environment is established to perform the revisions and checkpoints:
Collection CentraSite Collection v.CentraSite doctype1 -----------> v.doctype1 doctype2 -----------> v.doctype2 ...Updates and inserts to any of the doctypes in the CentraSite collection creates a version into the corresponding doctype of the v.CentraSite collection. Deletes of objects from the usual CentraSite collection has no effect on the versioning collection.
All of the get() and find() methods return objects from the v.CentraSite collection. The restore() plays back objects from v.CentraSite to CentraSite. The purge() methods delete old versions from the versioning part v.CentraSite.
Field Summary | |
---|---|
static java.lang.String |
CS_TYPE_NAMESPACE
|
Method Summary | |
---|---|
int |
deleteCheckpointLabels(java.lang.String checkpointLabel)
Delete 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)
Find all revision objects based on the given object type and with find qualifiers. |
java.lang.String |
getCheckpointLabel(javax.xml.registry.infomodel.RegistryObject regObj)
Get the checkpoint label name of a registry object from the revision part. |
java.util.Collection<java.lang.String> |
getCheckpointLabels()
Get 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)
Get the revision objects, based on the objects specified and having a checkpoint label in one of their revisions. |
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> |
getCheckpointObjects(java.lang.String checkpointLabel)
Get all revision objects which were created with the given checkpoint label name. |
int |
getMinorVersion(javax.xml.registry.infomodel.RegistryObject regObj)
Get the minor version number of a registry object. |
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> |
getObjects(javax.xml.registry.infomodel.RegistryObject regObj)
Get 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)
Get all present revision objects based on a specific jaxr object. |
void |
printRevisions(javax.xml.registry.infomodel.RegistryObject regObj)
Prints all the revisions of an object to the console. |
int |
purge(java.util.Collection<java.lang.String> objectTypes,
int keepCount)
Purge old versions of objects in the registry. |
int |
purge(javax.xml.registry.infomodel.RegistryObject regObj,
int keepCount)
Purge old versions based on the given registry object. |
void |
restoreObjects(java.util.Collection objects)
Restore 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)
Set a checkpoint label name to the objects specified. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CS_TYPE_NAMESPACE
Method Detail |
---|
public java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getObjects(java.lang.String objectType, java.lang.String objectId) throws RevisionException
getObjects
in interface RevisionManager
objectType
- the object type of the object (in the shape: "{namespace}typename")objectId
- the uddi-id of the object
RevisionException
RevisionManager.getObjects(java.lang.String, java.lang.String)
public java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getObjects(javax.xml.registry.infomodel.RegistryObject regObj) throws RevisionException
getObjects
in interface RevisionManager
regObj
- a registry object
RevisionException
RevisionManager.getObjects(javax.xml.registry.infomodel.RegistryObject)
public java.util.Collection<javax.xml.registry.infomodel.RegistryObject> findObjects(java.util.Collection findQualifiers, javax.xml.registry.infomodel.RegistryObject regObj) throws RevisionException
findObjects
in interface RevisionManager
findQualifiers
- qualifiers from RevisionFindQualifiers (null: no qualifiers supplied)regObj
- a registry object
RevisionException
public 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) throws RevisionException
findObjects
in interface RevisionManager
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
public void restoreObjects(java.util.Collection objects) throws RevisionException
restoreObjects
in interface RevisionManager
objects
- collection of RegistryObject from the revision part
RevisionException
- revision feature not enabled
object list contains non-revisioned objectsRevisionManager.restoreObjects(java.util.Collection)
public void setCheckpointLabel(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> objects, java.lang.String checkpointLabel) throws RevisionException
setCheckpointLabel
in interface RevisionManager
objects
- collection of RegistryObjectcheckpointLabel
- name of the checkpoint label
RevisionException
- revision feature not enabledRevisionManager.setCheckpointLabel(java.util.Collection, java.lang.String)
public java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getCheckpointObjects(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> objects, java.lang.String checkpointLabel) throws RevisionException
getCheckpointObjects
in interface RevisionManager
objects
- collection of RegistryObjectcheckpointLabel
- name of the checkpoint label
RevisionException
RevisionManager.getCheckpointObjects(java.util.Collection, java.lang.String)
public java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getCheckpointObjects(java.lang.String checkpointLabel) throws RevisionException
getCheckpointObjects
in interface RevisionManager
checkpointLabel
- name of the checkpoint label
RevisionException
RevisionManager.getCheckpointObjects(java.lang.String)
public java.util.Collection<java.lang.String> getCheckpointLabels() throws RevisionException
getCheckpointLabels
in interface RevisionManager
RevisionException
RevisionManager.getCheckpointLabels()
public int deleteCheckpointLabels(java.lang.String checkpointLabel) throws RevisionException
deleteCheckpointLabels
in interface RevisionManager
checkpointLabel
- name of the checkpoint label
RevisionException
- revision feature not enabledRevisionManager.deleteCheckpointLabels(java.lang.String)
public int getMinorVersion(javax.xml.registry.infomodel.RegistryObject regObj) throws RevisionException
getMinorVersion
in interface RevisionManager
regObj
- any registry object
RevisionException
public java.lang.String getCheckpointLabel(javax.xml.registry.infomodel.RegistryObject regObj) throws RevisionException
getCheckpointLabel
in interface RevisionManager
regObj
- a registry object (original or from revision part)
RevisionException
public int purge(javax.xml.registry.infomodel.RegistryObject regObj, int keepCount) throws RevisionException
purge
in interface RevisionManager
regObj
- a registry objectkeepCount
- number of objects to keep (the value must be > 0)
RevisionException
- revision feature not enabled
java.lang.IllegalArgumentException
- invalid parameter detectedpublic int purge(java.util.Collection<java.lang.String> objectTypes, int keepCount) throws RevisionException
purge
in interface RevisionManager
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
- revision feature not enabled
java.lang.IllegalArgumentException
- invalid parameter detectedpublic void printRevisions(javax.xml.registry.infomodel.RegistryObject regObj) throws RevisionException
regObj
- a registry object
RevisionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |