|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.centrasite.registry.versionmanagementservices.VersionAdministrator
public class VersionAdministrator
Version Administrator.
Holds methods to perform conveniently version actions including saving the changes.
Constructor Summary | |
---|---|
VersionAdministrator(com.centrasite.jaxr.JAXRAccessor jaxr)
Constuct a Version Administrator. |
Method Summary | |
---|---|
void |
copy(javax.xml.registry.infomodel.RegistryObject registryObject)
Copy the specified registry object (RegistryEntry or RegistryObject). |
void |
copy(javax.xml.registry.infomodel.RegistryObject registryObject,
VersionCopyMode copyMode)
Copy the specified registry object (RegistryEntry or RegistryObject). |
void |
createServiceShallowVersion(javax.xml.registry.infomodel.Service jaxrService)
Create a new version (in shallow mode) of a service and update the registry with all the new objects and associations. |
void |
createServiceShallowVersion(javax.xml.registry.infomodel.Service jaxrService,
java.lang.String userVersion)
Create a new version (in shallow mode) of a service and update the registry with all the new objects and associations. |
void |
createServiceShallowVersion(javax.xml.registry.infomodel.Service jaxrService,
com.centrasite.jaxr.common.VersioningContext versionContext)
Create a new version (in shallow mode) of a service and update the registry with all the new objects and associations. |
void |
createServiceVersion(javax.xml.registry.infomodel.Service jaxrService)
Create a new version of a service and update the registry with all the new objects and associations. |
void |
createServiceVersion(javax.xml.registry.infomodel.Service jaxrService,
VersionCopyMode copyMode)
Create a new version of a service and update the registry with all the new objects and associations. |
void |
createServiceVersion(javax.xml.registry.infomodel.Service jaxrService,
VersionCopyMode copyMode,
java.util.Collection ignoreCopyObjects)
Create a new version of a service and update the registry with all the new objects and associations. |
void |
createServiceVersion(javax.xml.registry.infomodel.Service jaxrService,
VersionCopyMode copyMode,
java.util.Collection ignoreCopyObjects,
boolean propagateVersioning)
Create a new version of a service and update the registry with all the new objects and associations. |
void |
createServiceVersion(javax.xml.registry.infomodel.Service jaxrService,
VersionCopyMode copyMode,
java.util.Collection ignoreCopyObjects,
boolean propagateVersioning,
java.lang.String userVersion)
Create a new version of a service and update the registry with all the new objects and associations. |
void |
createServiceVersion(javax.xml.registry.infomodel.Service jaxrService,
VersionCopyMode copyMode,
java.util.Collection ignoreCopyObjects,
boolean propagateVersioning,
com.centrasite.jaxr.common.VersioningContext versionContext)
Create a new version of a service and update the registry with all the new objects and associations. |
void |
createServiceWithSchemasVersion(javax.xml.registry.infomodel.Service jaxrService)
Create a new version (in shallow mode) of a service and update the registry with all the new objects and associations. |
void |
createServiceWithSchemasVersion(javax.xml.registry.infomodel.Service jaxrService,
java.lang.String userVersion)
Create a new version (in shallow mode) of a service and update the registry with all the new objects and associations. |
void |
createShallowVersions(java.util.Collection registryObjects)
Create new versions in SHALLOW mode of objects given by 'registryEntries' and store them all in the registry. |
void |
createShallowVersions(java.util.Collection registryObjects,
java.lang.String userVersion)
Create new versions in SHALLOW mode of objects given by 'registryEntries' and store them all in the registry. |
void |
createShallowVersions(java.util.Collection registryObjects,
com.centrasite.jaxr.common.VersioningContext versionContext)
Create new versions in SHALLOW mode of objects given by 'registryEntries' and store them all in the registry. |
void |
createVersions(java.util.Collection registryObjects,
VersionCopyMode copyMode)
Create new versions of objects given by 'registryEntries' and store them all in the registry. |
void |
createVersions(java.util.Collection registryObjects,
VersionCopyMode copyMode,
java.lang.String userVersion)
Create new versions of objects given by 'registryEntries' and store them all in the registry. |
void |
createVersions(java.util.Collection registryObjects,
VersionCopyMode copyMode,
java.lang.String userVersion,
boolean propagateVersioning)
Create new versions of objects given by 'registryEntries' and store them all in the registry. |
void |
createVersions(java.util.Collection registryObjects,
VersionCopyMode copyMode,
com.centrasite.jaxr.common.VersioningContext versionContext,
boolean propagateVersioning)
Create new versions of objects given by 'registryEntries' and store them all in the registry. |
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> |
getAndCreateServiceShallowVersion(javax.xml.registry.infomodel.Service jaxrService,
java.lang.String userVersion)
Create a new version (in shallow mode) of a service and update the registry with all the new objects and associations. |
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> |
getAndCreateServiceVersion(javax.xml.registry.infomodel.Service jaxrService,
VersionCopyMode copyMode,
java.util.Collection ignoreCopyObjects,
boolean propagateVersioning,
java.lang.String userVersion)
Create a new version of a service and update the registry with all the new objects and associations. |
int |
getMajorVersion(javax.xml.registry.infomodel.RegistryObject regObj)
Returns the major version number of any registry object. |
int |
getMinorVersion(javax.xml.registry.infomodel.RegistryObject regObj)
Returns the minor version number of any registry object. |
java.lang.String |
getUserVersion(javax.xml.registry.infomodel.RegistryObject regObj)
Returns the user version of any registry object. |
javax.xml.registry.infomodel.RegistryObject |
getVersionObject(javax.xml.registry.infomodel.RegistryObject regObj,
int majorVersion)
Get the object with the desired version number of the specified registry object (which is assumed to be within a version chain) |
static void |
main(java.lang.String[] args)
For Versioning on command line. |
void |
purgeServiceVersion(javax.xml.registry.infomodel.Service jaxrService,
int keepCount)
Purge old versions of the given service. |
void |
purgeVersions(java.util.Collection registryObjects,
int keepCount)
Purge all registry entries given in the list. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VersionAdministrator(com.centrasite.jaxr.JAXRAccessor jaxr)
jaxr
- opened JAXR connectionMethod Detail |
---|
public void createServiceVersion(javax.xml.registry.infomodel.Service jaxrService) throws VersionException, javax.xml.registry.JAXRException
jaxrService
- an existing service (with the most recent version number)
VersionException
javax.xml.registry.JAXRException
public void createServiceVersion(javax.xml.registry.infomodel.Service jaxrService, VersionCopyMode copyMode) throws VersionException, javax.xml.registry.JAXRException
jaxrService
- an existing service (with the most recent version number)copyMode
- desired copy mode
VersionException
javax.xml.registry.JAXRException
public void createServiceVersion(javax.xml.registry.infomodel.Service jaxrService, VersionCopyMode copyMode, java.util.Collection ignoreCopyObjects) throws VersionException, javax.xml.registry.JAXRException
jaxrService
- an existing service (with the most recent version number)copyMode
- desired copy mode
¶m ignoreCopyObjects list of RegistryObject which shouldn't get a new version
VersionException
javax.xml.registry.JAXRException
public void createServiceVersion(javax.xml.registry.infomodel.Service jaxrService, VersionCopyMode copyMode, java.util.Collection ignoreCopyObjects, boolean propagateVersioning) throws VersionException, javax.xml.registry.JAXRException
jaxrService
- an existing service (with the most recent version number)copyMode
- desired copy modeignoreCopyObjects
- list of RegistryObject which shouldn't get a new versionpropagateVersioning
- true: also version related schemas; false: version only the service
VersionException
javax.xml.registry.JAXRException
public void createServiceVersion(javax.xml.registry.infomodel.Service jaxrService, VersionCopyMode copyMode, java.util.Collection ignoreCopyObjects, boolean propagateVersioning, java.lang.String userVersion) throws VersionException, javax.xml.registry.JAXRException
jaxrService
- an existing service (with the most recent version number)copyMode
- desired copy modeignoreCopyObjects
- list of RegistryObject which shouldn't get a new versionpropagateVersioning
- true: also version related schemas; false: version only the serviceuserVersion
- the user version (null: no user version)
VersionException
javax.xml.registry.JAXRException
public void createServiceVersion(javax.xml.registry.infomodel.Service jaxrService, VersionCopyMode copyMode, java.util.Collection ignoreCopyObjects, boolean propagateVersioning, com.centrasite.jaxr.common.VersioningContext versionContext) throws VersionException, javax.xml.registry.JAXRException
jaxrService
- an existing service (with the most recent version number)copyMode
- desired copy modeignoreCopyObjects
- list of RegistryObject which shouldn't get a new versionpropagateVersioning
- true: also version related schemas; false: version only the serviceversionContext
- context parameter for the versioning (receives the
VersionException
javax.xml.registry.JAXRException
public java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getAndCreateServiceVersion(javax.xml.registry.infomodel.Service jaxrService, VersionCopyMode copyMode, java.util.Collection ignoreCopyObjects, boolean propagateVersioning, java.lang.String userVersion) throws VersionException, javax.xml.registry.JAXRException
jaxrService
- an existing service (with the most recent version number)copyMode
- desired copy modeignoreCopyObjects
- list of RegistryObject which shouldn't get a new versionpropagateVersioning
- true: also version related schemas; false: version only the serviceuserVersion
- the user version (null: no user version)
VersionException
javax.xml.registry.JAXRException
public void createServiceShallowVersion(javax.xml.registry.infomodel.Service jaxrService) throws VersionException, javax.xml.registry.JAXRException
jaxrService
- an existing service (with the most recent version number)
VersionException
javax.xml.registry.JAXRException
public void createServiceShallowVersion(javax.xml.registry.infomodel.Service jaxrService, java.lang.String userVersion) throws VersionException, javax.xml.registry.JAXRException
jaxrService
- an existing service (with the most recent version number)userVersion
- the user version (null: no user version)
VersionException
javax.xml.registry.JAXRException
public void createServiceShallowVersion(javax.xml.registry.infomodel.Service jaxrService, com.centrasite.jaxr.common.VersioningContext versionContext) throws VersionException, javax.xml.registry.JAXRException
jaxrService
- an existing service (with the most recent version number)versionContext
- context parameter for the versioning
VersionException
javax.xml.registry.JAXRException
public java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getAndCreateServiceShallowVersion(javax.xml.registry.infomodel.Service jaxrService, java.lang.String userVersion) throws VersionException, javax.xml.registry.JAXRException
jaxrService
- an existing service (with the most recent version number)userVersion
- the user version (null: no user version)
VersionException
javax.xml.registry.JAXRException
public void createServiceWithSchemasVersion(javax.xml.registry.infomodel.Service jaxrService) throws VersionException, javax.xml.registry.JAXRException
jaxrService
- an existing service (with the most recent version number)
VersionException
javax.xml.registry.JAXRException
public void createServiceWithSchemasVersion(javax.xml.registry.infomodel.Service jaxrService, java.lang.String userVersion) throws VersionException, javax.xml.registry.JAXRException
jaxrService
- an existing service (with the most recent version number)userVersion
- the user version for the objects (null: not used)
VersionException
javax.xml.registry.JAXRException
public void createVersions(java.util.Collection registryObjects, VersionCopyMode copyMode, java.lang.String userVersion, boolean propagateVersioning) throws VersionException, javax.xml.registry.JAXRException
registryObjects
- list of versionable registry objects (RegistryObject)copyMode
- desired copy modeuserVersion
- the user version for the objects (null: not used)propagateVersioning
- true: version all objects, false: version only the components
VersionException
javax.xml.registry.JAXRException
public void createVersions(java.util.Collection registryObjects, VersionCopyMode copyMode, com.centrasite.jaxr.common.VersioningContext versionContext, boolean propagateVersioning) throws VersionException, javax.xml.registry.JAXRException
registryObjects
- list of versionable registry objects (RegistryObject)copyMode
- desired copy modeversionContext
- context parameter for the versioning (receives the new version objects)propagateVersioning
- true: all objects, false: only the components
VersionException
javax.xml.registry.JAXRException
public void createVersions(java.util.Collection registryObjects, VersionCopyMode copyMode, java.lang.String userVersion) throws VersionException, javax.xml.registry.JAXRException
registryObjects
- list of versionable registry objects (RegistryObject)copyMode
- desired copy modeuserVersion
- the user version for the objects (null: not used)
VersionException
javax.xml.registry.JAXRException
public void createVersions(java.util.Collection registryObjects, VersionCopyMode copyMode) throws VersionException, javax.xml.registry.JAXRException
registryObjects
- list of versionable registry objects (RegistryObject)copyMode
- desired copy mode
VersionException
javax.xml.registry.JAXRException
public void createShallowVersions(java.util.Collection registryObjects) throws VersionException, javax.xml.registry.JAXRException
registryObjects
- list of versionable registry objects (RegistryObject)
VersionException
javax.xml.registry.JAXRException
public void createShallowVersions(java.util.Collection registryObjects, java.lang.String userVersion) throws VersionException, javax.xml.registry.JAXRException
registryObjects
- list of versionable registry objects (RegistryObject)userVersion
- the user version for the objects (null: not used)
VersionException
javax.xml.registry.JAXRException
public void createShallowVersions(java.util.Collection registryObjects, com.centrasite.jaxr.common.VersioningContext versionContext) throws VersionException, javax.xml.registry.JAXRException
registryObjects
- list of versionable registry objects (RegistryObject)versionContext
- context parameter for the versioning
VersionException
javax.xml.registry.JAXRException
public void purgeServiceVersion(javax.xml.registry.infomodel.Service jaxrService, int keepCount) throws VersionException, javax.xml.registry.JAXRException
jaxrService
- an existing service (with the most recent version number)keepCount
- > 0 : number of version objects to keep;
< 0 : number of old object version to delete;
0 : delete all objects
VersionException
javax.xml.registry.JAXRException
public void purgeVersions(java.util.Collection registryObjects, int keepCount) throws VersionException, javax.xml.registry.JAXRException
registryObjects
- list of top-level versioned registry objectskeepCount
- > 0 : number of version objects to keep;
< 0 : number of old object version to delete;
0 : delete all objects
VersionException
javax.xml.registry.JAXRException
public void copy(javax.xml.registry.infomodel.RegistryObject registryObject) throws VersionException, javax.xml.registry.JAXRException
registryObject
- registry object to copy
VersionException
javax.xml.registry.JAXRException
public void copy(javax.xml.registry.infomodel.RegistryObject registryObject, VersionCopyMode copyMode) throws VersionException, javax.xml.registry.JAXRException
registryObject
- registry object to copycopyMode
- the copy mode (SHALLOW, DEEP, ...)
VersionException
javax.xml.registry.JAXRException
public int getMajorVersion(javax.xml.registry.infomodel.RegistryObject regObj) throws VersionException
regObj
- a registry object
VersionException
- JAXR errorpublic int getMinorVersion(javax.xml.registry.infomodel.RegistryObject regObj) throws VersionException
regObj
- a registry object
VersionException
- JAXR errorpublic java.lang.String getUserVersion(javax.xml.registry.infomodel.RegistryObject regObj) throws VersionException
regObj
- a registry object
VersionException
- JAXR errorpublic javax.xml.registry.infomodel.RegistryObject getVersionObject(javax.xml.registry.infomodel.RegistryObject regObj, int majorVersion) throws VersionException
regObj
- a registry objectmajorVersion
- the desired version number
VersionException
public static void main(java.lang.String[] args) throws java.lang.Exception
args
-
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |