Interface LockableAmetysObject
- All Superinterfaces:
AmetysObject,DataHolder,LockAwareAmetysObject
- All Known Subinterfaces:
ModifiableResource
- All Known Implementing Classes:
AbstractProgram,AbstractProgramPart,AbstractTraversableProgramPart,Container,Course,CourseList,CoursePart,DefaultLockableAmetysObject,File,JCRResource,ModifiableDefaultContent,ModifiableDefaultWebContent,OrgUnit,Person,Program,SubProgram
AmetysObject that can be locked.-
Method Summary
Modifier and TypeMethodDescriptionvoidlock()Locks thisAmetysObjectvoidSets a lock info on the current context for this objectvoidunlock()Unlocks thisAmetysObjectMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods 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, isMultipleMethods inherited from interface org.ametys.plugins.repository.lock.LockAwareAmetysObject
getLockOwner, isLocked
-
Method Details
-
lock
Locks thisAmetysObject- Throws:
AmetysRepositoryException- if a problem occurs
-
unlock
Unlocks thisAmetysObject- Throws:
AmetysRepositoryException- if a problem occurs
-
setLockInfoOnCurrentContext
Sets a lock info on the current context for this object- Throws:
AmetysRepositoryException- if an error occurs
-