Interface LockAwareAmetysObject
-
- All Superinterfaces:
AmetysObject
- All Known Subinterfaces:
LockableAmetysObject,ModifiableResource
- All Known Implementing Classes:
AbstractProgram,AbstractProgramPart,AbstractTraversableProgramPart,Container,Course,CourseList,CoursePart,DefaultLockableAmetysObject,JCRResource,ModifiableDefaultContent,ModifiableDefaultWebContent,OrgUnit,Person,Program,SubProgram
public interface LockAwareAmetysObject extends AmetysObject
AmetysObjectthat knows about its lock status.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserIdentitygetLockOwner()Returns the owner of the lock, or null if nonebooleanisLocked()Returns true if thisAmetysObjectis locked-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
-
-
-
Method Detail
-
isLocked
boolean isLocked() throws AmetysRepositoryException
Returns true if thisAmetysObjectis locked- Returns:
- true if this
AmetysObjectis locked - Throws:
AmetysRepositoryException- if a problem occurs
-
getLockOwner
UserIdentity getLockOwner() throws AmetysRepositoryException
Returns the owner of the lock, or null if none- Returns:
- the owner of the lock, or null if none
- Throws:
AmetysRepositoryException- if a problem occurs
-
-