change
Class ChangeFactory

java.lang.Object
  extended by change.ChangeFactory

public abstract class ChangeFactory
extends Object

A Factory-type component for creating Change objects, either filesystem or group changes. Components from other modules (filesystem and group modules) can access it directly for creating change entities.


Constructor Summary
ChangeFactory()
           
 
Method Summary
abstract  Change createChange(ChangeType type, Object changeTarget, String changeDetails, Date timestamp)
          Creates change objects of all supported types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeFactory

public ChangeFactory()
Method Detail

createChange

public abstract Change createChange(ChangeType type,
                                    Object changeTarget,
                                    String changeDetails,
                                    Date timestamp)
Creates change objects of all supported types.

Parameters:
type - - the change's type (file, folder, group).
changeTarget - - the entity to which this change is related: a specific file or folder, a specific group. The Change's attributes are filled based on this object's type.
changeDetails - - details about what was performed that lead to this change (modified, added or removed).
timestamp - - the time when this change occurred.
Returns:
the Change object representing the change.