public interface CentraSiteRevisionManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTO_VERSION_CONTROL |
static java.lang.String |
REVISION_COLLECTION |
Modifier and Type | Method and Description |
---|---|
void |
commitUpdates()
Commit updates.
|
java.lang.String |
getCheckpointName(javax.xml.registry.infomodel.RegistryObject regObj)
Gets the checkpoint name of the specified registry object.
|
javax.xml.namespace.QName |
getDoctypeName(java.lang.String objectType)
Get the doctype name (for xquery) from object type.
|
int |
getMajorVersion(javax.xml.registry.infomodel.RegistryObject regObj)
Gets the major version from the specified registry object.
|
int |
getMaximumVersionNumber(javax.xml.registry.infomodel.RegistryObject regObj)
Gets the maximum version (minor version) based on the given registry object.
|
int |
getMaximumVersionNumber(java.lang.String objectType,
java.lang.String objectId)
Gets the maximum version (minor version) based on the given registry object.
|
int |
getMinorVersion(javax.xml.registry.infomodel.RegistryObject regObj)
Gets the minor version from the specified registry object.
|
java.util.Collection |
getObjectsFromQuery(java.lang.String xquery)
Executes xquery and return resulting objects.
|
java.lang.String |
getObjectTypeName(javax.xml.registry.infomodel.RegistryObject regObj)
Get the object type name from a registry object.
|
javax.xml.namespace.QName |
getObjectTypeQName(javax.xml.registry.infomodel.RegistryObject regObj)
Gets the object type name from a registry object.
|
boolean |
getRevisionStatus()
Determines if revision is enabled by checking the schema of the version-collection.
|
void |
handleUpdates(java.util.Collection updateObjects)
Handles updates of objects.
|
boolean |
isEnabled()
Checks if revision is enabled.
|
void |
restoreObjects(java.util.Collection objects)
Restores revision objects to the active part.
|
void |
rollbackUpdates()
Rollback updates.
|
void |
setCheckpointLabel(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> objects)
Sets checkpoint label from user version.
|
void |
setMinorVersion(javax.xml.registry.infomodel.RegistryObject regObj,
int minorVersion)
Sets the minor version to any registry object.
|
static final java.lang.String REVISION_COLLECTION
static final java.lang.String AUTO_VERSION_CONTROL
boolean isEnabled()
boolean getRevisionStatus() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs on getting the revision status.int getMajorVersion(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException
regObj
- a registry objectjavax.xml.registry.JAXRException
- if an internal error occurs on getting the major version.int getMinorVersion(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException
regObj
- a registry objectjavax.xml.registry.JAXRException
- if an internal error occurs on getting the minor version.void setMinorVersion(javax.xml.registry.infomodel.RegistryObject regObj, int minorVersion) throws javax.xml.registry.JAXRException
regObj
- a registry objectminorVersion
- a minor version numberjavax.xml.registry.JAXRException
- if an internal error occurs.int getMaximumVersionNumber(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException
regObj
- a registry objectjavax.xml.registry.JAXRException
- if an internal error occurs on getting the version number.int getMaximumVersionNumber(java.lang.String objectType, java.lang.String objectId) throws javax.xml.registry.JAXRException
objectType
- object type (e.g.: "{http://...}service")objectId
- uddi-id of the objectjavax.xml.registry.JAXRException
- if an internal error occurs on getting the version number.java.lang.String getCheckpointName(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException
regObj
- a registry objectjavax.xml.registry.JAXRException
- if an internal error occurs on getting the check point name.java.util.Collection getObjectsFromQuery(java.lang.String xquery) throws javax.xml.registry.JAXRException
xquery
- the xqueryjavax.xml.registry.JAXRException
- if an internal error occurs on getting the objects from query.void restoreObjects(java.util.Collection objects) throws javax.xml.registry.JAXRException
objects
- collection of revision objectsjavax.xml.registry.JAXRException
- if an internal error occurs on restoring the objects.void handleUpdates(java.util.Collection updateObjects) throws javax.xml.registry.JAXRException
updateObjects
- the collection of JAXR objects being updated.javax.xml.registry.JAXRException
- if an internal error occurs.javax.xml.namespace.QName getObjectTypeQName(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException
regObj
- a registry objectjavax.xml.registry.JAXRException
- if an internal error occurs on getting the object type.java.lang.String getObjectTypeName(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException
regObj
- a registry objectjavax.xml.registry.JAXRException
- if an internal error occurs on getting the object type name.javax.xml.namespace.QName getDoctypeName(java.lang.String objectType) throws javax.xml.registry.JAXRException
objectType
- object type (e.g.: "{http://...}service")javax.xml.registry.JAXRException
- if an internal error occurs on getting the doc type name.void commitUpdates() throws java.lang.Exception
java.lang.Exception
- if an internal error occurs.void rollbackUpdates()
void setCheckpointLabel(java.util.Collection<javax.xml.registry.infomodel.RegistryObject> objects) throws javax.xml.registry.JAXRException
objects
- list of registry objects with modified user versionjavax.xml.registry.JAXRException
- if an internal error occurs.