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
AmetysObject
that knows about its lock status.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UserIdentity
getLockOwner()
Returns the owner of the lock, or null if noneboolean
isLocked()
Returns true if thisAmetysObject
is 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 thisAmetysObject
is locked- Returns:
- true if this
AmetysObject
is 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
-
-