public interface VersionableAmetysObject extends VersionAwareAmetysObject
AmetysObject with versioning capabilities.| Modifier and Type | Method and Description |
|---|---|
void |
addLabel(String label,
boolean moveIfPresent)
Add a label on this object.
|
void |
checkpoint()
Persists the current version of this
AmetysObject |
void |
removeLabel(String label)
Remove a label from this object.
If the label doesn't exist, it is silently ignored. |
void |
restoreFromLabel(String label)
Restore data from the specified label.
|
void |
restoreFromRevision(String revision)
Restore data from the specified revision.
|
getAllLabels, getAllRevisions, getLabels, getLabels, getRevision, getRevisionTimestamp, getRevisionTimestamp, switchToLabel, switchToRevisionequals, getId, getName, getParent, getParentPath, getPath, hashCodevoid checkpoint() throws AmetysRepositoryException
AmetysObjectAmetysRepositoryException - if a problem occursvoid restoreFromLabel(String label) throws UnknownAmetysObjectException, AmetysRepositoryException
label - the labelUnknownAmetysObjectException - if the label does not correspond to any revisionAmetysRepositoryException - if a problem occursvoid restoreFromRevision(String revision) throws UnknownAmetysObjectException, AmetysRepositoryException
revision - the revisionUnknownAmetysObjectException - if the revision does not existAmetysRepositoryException - if a problem occursvoid addLabel(String label, boolean moveIfPresent) throws AmetysRepositoryException
label - the label to add.moveIfPresent - what to do if the content already has this label : move it to the current revision if true, keep it unchanged if false.AmetysRepositoryException - if some problem arises.void removeLabel(String label) throws AmetysRepositoryException
label - the label to removeAmetysRepositoryException - if some problem arises.