|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.centrasite.registry.versionmanagementservices.VersionRegistryObject
public class VersionRegistryObject
This class maintains version numbers on non-versionable Registry Objects. They are in principle all objects which are not derived from RegistryEntry.
For those objects the version numbers are maintained in Slots of the object with the following names:
Constructor Summary | |
---|---|
VersionRegistryObject(com.centrasite.jaxr.JAXRAccessor jaxr)
Constructor |
Method Summary | |
---|---|
int |
getMajorVersion(javax.xml.registry.infomodel.RegistryObject regObj)
Returns the major version of a RegistryObject by inspecting the appropriate slot. |
int |
getMinorVersion(javax.xml.registry.infomodel.RegistryObject regObj)
Returns the minor version of a RegistryObject by inspecting the appropriate slot. |
java.lang.String |
getUserVersion(javax.xml.registry.infomodel.RegistryObject regObj)
Returns the user version of a RegistryObject by inspecting the appropriate slot. |
void |
setUserVersion(javax.xml.registry.infomodel.RegistryObject regObj,
int versionNumber)
Sets the given user version into the registry object by appending/reusing the appropriate slot. |
void |
setUserVersion(javax.xml.registry.infomodel.RegistryObject regObj,
java.lang.String userVersion)
Sets the given user version into the registry object by appending/reusing the appropriate slot. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VersionRegistryObject(com.centrasite.jaxr.JAXRAccessor jaxr)
jaxr
- opened JAXR sessionMethod Detail |
---|
public void setUserVersion(javax.xml.registry.infomodel.RegistryObject regObj, int versionNumber) throws javax.xml.registry.JAXRException
regObj
- a registry objectversionNumber
- a version number for the user version
javax.xml.registry.JAXRException
public void setUserVersion(javax.xml.registry.infomodel.RegistryObject regObj, java.lang.String userVersion) throws javax.xml.registry.JAXRException
regObj
- a registry objectuserVersion
- a user supplied version (null: remove slot)
javax.xml.registry.JAXRException
public int getMajorVersion(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException
regObj
- a registry object
javax.xml.registry.JAXRException
public int getMinorVersion(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException
regObj
- a registry object
javax.xml.registry.JAXRException
public java.lang.String getUserVersion(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException
regObj
- a registry object
javax.xml.registry.JAXRException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |