|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LogicFacade
The interface for facades of all backends.
All backends must have a facade, that implements this interface. All frontends will access their backends only by this facade.
Method Summary | |
---|---|
void |
addEntityChangeListener(EntityChangedListener listener)
Adds listener for changed entites. |
void |
copy(EntityInterface entity)
Copies an entity. |
void |
delete(EntityInterface entity)
Deletes an entity. |
java.util.Collection |
getAllChildren(EntityInterface entity)
Returns sub-entities of folderish entity. |
EntityInterface |
getClipboardEntity()
Returns entity to be pasted. |
java.util.Comparator |
getComparator()
Returns a comparator for entity interfaces. |
boolean |
getDeleteAfterPaste()
|
java.lang.String |
getEntityLastModified(EntityInterface entity)
Returns date of last modification of entity. |
java.lang.String |
getEntityName(EntityInterface entity)
Returns name of entity. |
java.lang.String |
getEntitySize(EntityInterface entity)
Returns size of entity. |
EntityInterface |
getRootEntity()
Returns root entity. |
boolean |
isEntityReadable(EntityInterface entity)
Returns if file is readable. |
boolean |
isEntityWriteable(EntityInterface entity)
Returns if file is writable. |
boolean |
isFolderish(EntityInterface entity)
Returns whether entity is folderish. |
void |
paste(EntityInterface destinationEntity)
Pastes to an entity. |
void |
removeEntityChangeListener(EntityChangedListener listener)
Removes listener for changed entities. |
void |
rename(EntityInterface entity,
java.lang.String newName)
Renames an entity. |
void |
setDeleteAfterPaste(boolean shouldBeDeleted)
|
Method Detail |
---|
EntityInterface getRootEntity()
All entities must be within a tree like hierarchy. This method returns the root of this hierarchy.
java.lang.String getEntityName(EntityInterface entity)
All entities must have name. This method returns the name of the given entity.
entity
- the entity
EntityInterface getClipboardEntity()
java.lang.String getEntitySize(EntityInterface entity)
All entities must have size. This method returns the size of the given entity.
entity
- the entity
java.lang.String getEntityLastModified(EntityInterface entity)
All entities must have date of last modification. This method returns the date of last modification of the given entity.
entity
- the entity
boolean isEntityReadable(EntityInterface entity)
entity
- the entity
boolean isEntityWriteable(EntityInterface entity)
entity
- the entity
boolean isFolderish(EntityInterface entity)
Folderish entities may contain other entities. These may be accessed with method getAllChildren.
entity
- the entity
getAllChildren(EntityInterface)
java.util.Collection getAllChildren(EntityInterface entity) throws EntityNotFolderishException
entity
- the entity
EntityNotFolderishException
void rename(EntityInterface entity, java.lang.String newName) throws EntityRenameFailedException
entity
- the entitynewName
- new name for the entity
EntityRenameFailedException
- if an error occuredvoid delete(EntityInterface entity) throws EntityDeletionFailedException
entity
- the entity
EntityDeletionFailedException
- if an error occuredvoid setDeleteAfterPaste(boolean shouldBeDeleted)
boolean getDeleteAfterPaste()
void copy(EntityInterface entity) throws EntityCopyCutFailedException
entity
- the entity
EntityCopyCutFailedException
- if an error occuredvoid paste(EntityInterface destinationEntity) throws EntityPasteFailedException
entity
- the entity
EntityPasteFailedException
- if an error occuredjava.util.Comparator getComparator()
void addEntityChangeListener(EntityChangedListener listener)
listener
- the listener to addvoid removeEntityChangeListener(EntityChangedListener listener)
listener
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |