org.mmbase.datatypes.processors
Class LastModifier

Package class diagram package LastModifier
java.lang.Object
  extended by org.mmbase.datatypes.processors.LastModifier
All Implemented Interfaces:
Serializable, CommitProcessor

public class LastModifier
extends Object
implements CommitProcessor

This processor can be used as a 'commit' processor on a string field. The field will then be set to the current user id when the node is committed.

Since:
MMBase-1.8
Version:
$Id: LastModifier.java 41987 2010-04-20 16:14:35Z michiel $
Author:
Michiel Meeuwissen
See Also:
LastModified, Creator, Serialized Form

Constructor Summary
LastModifier()
           
 
Method Summary
 void commit(Node node, Field field)
          Will be called on commit of the node.
 void setIfNotChanged(boolean b)
          On default the field is not changed if no other fields were changed.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LastModifier

public LastModifier()
Method Detail

setIfNotChanged

public void setIfNotChanged(boolean b)
On default the field is not changed if no other fields were changed. You can override this using this property.

Since:
MMBase-1.9.1

commit

public void commit(Node node,
                   Field field)
Description copied from interface: CommitProcessor
Will be called on commit of the node.

Specified by:
commit in interface CommitProcessor

toString

public String toString()
Overrides:
toString in class Object


MMBase2 Bridge 2.0-SNAPSHOT - 2013-05-29T22:05