change
Class ChangeLogger

java.lang.Object
  extended by change.ChangeLogger

public abstract class ChangeLogger
extends Object

Repository for Change objects. It offers an interface to other modules and components for adding and retrieving group and filesystem changes.


Constructor Summary
ChangeLogger()
           
 
Method Summary
abstract  List<Change> getChanges(ChangeQueryCriteria criteria)
          Returns the changes that match the given criteria, such that it can return all the changes in a given period of time for a group or a list of files.
abstract  void logChange(Change change)
          Adds a change to the history of changes;
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeLogger

public ChangeLogger()
Method Detail

logChange

public abstract void logChange(Change change)
Adds a change to the history of changes;

Parameters:
change - - the Change that will be logged

getChanges

public abstract List<Change> getChanges(ChangeQueryCriteria criteria)
Returns the changes that match the given criteria, such that it can return all the changes in a given period of time for a group or a list of files. If the period is not given in the criteria it will return all the changes for that given group or files. If the change's type is not given the query will return changes of all types.

Parameters:
criteria - - the value object that describes the restrictions (if any) for querying the history of changes.
Returns:
a list of chronologically ordered changes.