|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Deletable
This interface defines something that can be deleted. It is implemented by
EFile
and Directory
.
Method Summary | |
---|---|
void |
delete()
Delete the entity from the file system. |
boolean |
isDeleted()
Check if the entity has been deleted. |
Methods inherited from interface org.entityfs.lock.WriteLockable |
---|
getWriteLock, isWriteLockedByCurrentThread, lockForWriting |
Method Detail |
---|
boolean isDeleted() throws IllegalStateException, ReadLockRequiredException
EntityView.isValid()
, this method does not do any backend validation, so if the entity has
been deleted in the backend storage without going through the EntityFS
API, use that method instead.
true
if the entity object has been deleted.
IllegalStateException
- If the view is disconnected.
ReadLockRequiredException
- If the client does not have a read lock
for the viewed entity.void delete() throws IllegalStateException, WriteLockRequiredException, AccessDeniedException, DirectoryNotEmptyException
EntityView.isValid()
will return false
from now on).
IllegalStateException
- If the view is disconnected.
WriteLockRequiredException
- If the client does not have a write
lock for the viewed entity and a write lock for its parent.
AccessDeniedException
- If the client does not have write access to
the entity and to its parent.
DirectoryNotEmptyException
- If the entity is a non-empty
directory.EntityDeletedEvent
on this
., ChildEntityRemovedEvent
on
this
's parent.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |