filesystem
Class FilesystemService

java.lang.Object
  extended by filesystem.FilesystemService

public abstract class FilesystemService
extends Object

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

syncService

protected SynchronizationService syncService
Reference to the SynchronizationService acting as interface to the synchronization mechanisms.


changeService

protected ChangeService changeService
Reference to the ChangeService, that the FilesystemService uses for logging Change objects.


changeFactory

protected ChangeFactory changeFactory
Reference to the ChangeFactory, that the FilesystemService uses for creating Change objects.

Constructor Detail

FilesystemService

public FilesystemService()
Method Detail

receiveChange

public abstract void receiveChange(Change change)
Is informed by the SynchronizationService about a new change.

Parameters:
change - - a change that was applied during synchronization

receiveChanges

public abstract void receiveChanges(List<Change> changes)
Is informed by the SynchronizationService about new changes.

Parameters:
changes - - the changes that were applied during synchronization

informSyncChange

protected abstract void informSyncChange(Change change)
Informs the SynchronizationService about a filesystem Change that needs to be synchronized.

Parameters:
change -

informLogChange

protected abstract void informLogChange(Change change)
Informs the ChangeService about a filesystem Change that needs to be logged in the history of changes.

Parameters:
change -

newChange

public abstract void newChange(File file)
Informs the FilesystemService about a file change that occurred.

Parameters:
file - - the file that was changed (created/modified/removed)

newChange

public abstract void newChange(Folder folder)
Informs the FilesystemService about a folder change that occurred.

Parameters:
folder - - the folder that was changed (created/removed)