public class VersionAssociation
extends java.lang.Object
It expects this taxonomy with concepts in the registry:
For the versioning association: + CentraSiteVersioning + Versioning For the DEEP association handling: + CentraSiteVersioning + SourceXXX + TargetXXX
Constructor and Description |
---|
VersionAssociation(com.centrasite.jaxr.JAXRAccessor jaxr)
Constructor: create Version association instance.
|
Modifier and Type | Method and Description |
---|---|
javax.xml.registry.infomodel.Association |
createVersionAssociation(javax.xml.registry.infomodel.RegistryObject successor,
javax.xml.registry.infomodel.RegistryObject predecessor)
Creates the version assocation (a Supersedes with a specific classification)
|
javax.xml.registry.infomodel.Concept |
getAssociationConcept()
Gets the concept of the Versioning association.
|
VersionCopyMode |
getSourceCopyMode(java.lang.String assocID)
Gets the source association copy mode by inspecting the association's Concept
if its classified with version-specific entries; see sourceClassifications.
|
javax.xml.registry.infomodel.RegistryObject |
getSourceVersionObject(javax.xml.registry.infomodel.RegistryObject regObj)
Returns object pointing to regObj with a Version association ('Supersedes').
|
VersionCopyMode |
getTargetCopyMode(java.lang.String assocID)
Gets the target association copy mode by inspecting the association's Concept
if its classified with version-specific entries; see targetClassifications.
|
boolean |
isVersionAssociation(javax.xml.registry.infomodel.Association assoc)
Checks if the association is a Versioning association
|
public VersionAssociation(com.centrasite.jaxr.JAXRAccessor jaxr)
jaxr
- a jaxr accessor object.public javax.xml.registry.infomodel.Association createVersionAssociation(javax.xml.registry.infomodel.RegistryObject successor, javax.xml.registry.infomodel.RegistryObject predecessor) throws javax.xml.registry.JAXRException
successor
- new version objectpredecessor
- old version objectjavax.xml.registry.JAXRException
- if an internal error occurs on creating the version assoiciationpublic boolean isVersionAssociation(javax.xml.registry.infomodel.Association assoc) throws javax.xml.registry.JAXRException
assoc
- association objecttrue
a version association false
any other associationjavax.xml.registry.JAXRException
- if an internal error occurspublic javax.xml.registry.infomodel.Concept getAssociationConcept() throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
- if an internal error occurs on retrieving the association conceptpublic javax.xml.registry.infomodel.RegistryObject getSourceVersionObject(javax.xml.registry.infomodel.RegistryObject regObj) throws javax.xml.registry.JAXRException
Example:
supersedes +----------+ --------------> | regObj | +----------+
regObj
- the object which evtl. target of a version associationjavax.xml.registry.JAXRException
- if an internal error occurs on creating the version assoiciationpublic VersionCopyMode getSourceCopyMode(java.lang.String assocID)
assocID
- association ID (Constants.ASSOC...)public VersionCopyMode getTargetCopyMode(java.lang.String assocID)
assocID
- association ID (Constants.ASSOC...)