change
Class ChangeFactory
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChangeFactory
public ChangeFactory()
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.