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 |
---|---|
Association |
createVersionAssociation(RegistryObject successor,
RegistryObject predecessor)
Creates the version assocation (a Supersedes with a specific classification)
|
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.
|
RegistryObject |
getSourceVersionObject(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(Association assoc)
Checks if the association is a Versioning association
|
public VersionAssociation(com.centrasite.jaxr.JAXRAccessor jaxr)
jaxr
- a jaxr accessor object.public Association createVersionAssociation(RegistryObject successor, RegistryObject predecessor) throws JAXRException
successor
- new version objectpredecessor
- old version objectJAXRException
- if an internal error occurs on creating the version assoiciationpublic boolean isVersionAssociation(Association assoc) throws JAXRException
assoc
- association objecttrue
a version association false
any other associationJAXRException
- if an internal error occurspublic Concept getAssociationConcept() throws JAXRException
JAXRException
- if an internal error occurs on retrieving the association conceptpublic RegistryObject getSourceVersionObject(RegistryObject regObj) throws JAXRException
Example:
supersedes +----------+ --------------> | regObj | +----------+
regObj
- the object which evtl. target of a version associationJAXRException
- 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...)