|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfilesystem.FilesystemService
public abstract class FilesystemService
Implements the Filesystem Service component. Its roles are to be the entry-point to the filesystem
module functionalities for
components from other modules and to inform other components about filesystem changes.
Field Summary | |
---|---|
protected ChangeFactory |
changeFactory
Reference to the ChangeFactory , that the FilesystemService uses for creating Change objects. |
protected ChangeService |
changeService
Reference to the ChangeService , that the FilesystemService uses for logging Change objects. |
protected SynchronizationService |
syncService
Reference to the SynchronizationService acting as interface to the synchronization mechanisms. |
Constructor Summary | |
---|---|
FilesystemService()
|
Method Summary | |
---|---|
protected abstract void |
informLogChange(Change change)
Informs the ChangeService about a filesystem Change that needs to be logged in the history of changes. |
protected abstract void |
informSyncChange(Change change)
Informs the SynchronizationService about a filesystem Change that needs to be synchronized. |
abstract void |
newChange(File file)
Informs the FilesystemService about a file change that occurred. |
abstract void |
newChange(Folder folder)
Informs the FilesystemService about a folder change that occurred. |
abstract void |
receiveChange(Change change)
Is informed by the SynchronizationService about a new change. |
abstract void |
receiveChanges(List<Change> changes)
Is informed by the SynchronizationService about new changes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SynchronizationService syncService
SynchronizationService
acting as interface to the synchronization mechanisms.
protected ChangeService changeService
ChangeService
, that the FilesystemService uses for logging Change objects.
protected ChangeFactory changeFactory
ChangeFactory
, that the FilesystemService uses for creating Change objects.
Constructor Detail |
---|
public FilesystemService()
Method Detail |
---|
public abstract void receiveChange(Change change)
SynchronizationService
about a new change.
change
- - a change that was applied during synchronizationpublic abstract void receiveChanges(List<Change> changes)
SynchronizationService
about new changes.
changes
- - the changes that were applied during synchronizationprotected abstract void informSyncChange(Change change)
SynchronizationService
about a filesystem Change that needs to be synchronized.
change
- protected abstract void informLogChange(Change change)
ChangeService
about a filesystem Change that needs to be logged in the history of changes.
change
- public abstract void newChange(File file)
file
- - the file that was changed (created/modified/removed)public abstract void newChange(Folder folder)
folder
- - the folder that was changed (created/removed)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |