Interface LockableAmetysObject
- All Superinterfaces:
AmetysObject,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.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
-