- All Superinterfaces:
AmetysObject, DataHolder, VersionAwareAmetysObject
- All Known Subinterfaces:
ModifiableDataAwareVersionableAmetysObject
- All Known Implementing Classes:
AbstractProgram, AbstractProgramPart, AbstractTraversableProgramPart, Cart, Container, Course, CourseList, CoursePart, DefaultAmetysObject, DefaultContent, DefaultIndexableAmetysObject, DefaultLockableAmetysObject, DefaultSharedContent, DefaultWebContent, DefaultWorkflowAwareContent, File, JCRCalendarResource, JCRProjectMember, JCRResource, JCRTask, JCRThread, ModifiableDefaultContent, ModifiableDefaultWebContent, OrgUnit, Person, Program, Query, SubProgram
-
Method Summary
void
Add a label on this object.
void
void
Remove a label from this object.
If the label doesn't exist, it is silently ignored.
void
Restore data from the specified label.
void
Restore data from the specified revision.
Methods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
copyTo, copyTo, dataToJSON, dataToJSON, dataToJSON, dataToJSON, dataToSAX, dataToSAX, dataToSAX, dataToSAX, getComposite, getDataNames, getModelItemTypeExtensionPoint, getParentDataHolder, getRepositoryData, getRootDataHolder, getType, getValue, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, hasDifferences, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultiple
-
Method Details
-
-
-
-
addLabel
Add a label on this object.
- Parameters:
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.
- Throws:
AmetysRepositoryException - if some problem arises.
-
removeLabel
Remove a label from this object.
If the label doesn't exist, it is silently ignored.
- Parameters:
label - the label to remove
- Throws:
AmetysRepositoryException - if some problem arises.