Update of /var/cvs/src/org/mmbase/datatypes/processors
In directory james.mmbase.org:/tmp/cvs-serv26523

Modified Files:
      Tag: MMBase-1_8
        LastModified.java LastModifier.java 
Log Message:
temporary rolled back last changed, because it gave some unexpected problems


See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/datatypes/processors


Index: LastModified.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/datatypes/processors/LastModified.java,v
retrieving revision 1.4.2.2
retrieving revision 1.4.2.3
diff -u -b -r1.4.2.2 -r1.4.2.3
--- LastModified.java   4 Nov 2008 16:48:24 -0000       1.4.2.2
+++ LastModified.java   18 Nov 2008 23:21:37 -0000      1.4.2.3
@@ -11,34 +11,23 @@
 
 import org.mmbase.bridge.*;
 import java.util.Date;
-import org.mmbase.util.logging.*;
 
 /**
  * This processor can be used as a 'commit' processor on a (datetime) field. 
The field will then be set
  * to the current time when the node is committed.
  *
  * @author Michiel Meeuwissen
- * @version $Id: LastModified.java,v 1.4.2.2 2008/11/04 16:48:24 michiel Exp $
+ * @version $Id: LastModified.java,v 1.4.2.3 2008/11/18 23:21:37 michiel Exp $
  * @since MMBase-1.8
  * @see   LastModifier
  */
 
 public class LastModified implements CommitProcessor {
 
-    private static final Logger log = 
Logging.getLoggerInstance(LastModified.class);
     private static final long serialVersionUID = 1L;
 
-    private boolean setIfNotChanged = false;
-
-    /**
-     * @since MMBase-1.9.1
-     */
-    public void setIfNotChanged(boolean b) {
-        setIfNotChanged = b;
-    }
-
     public void commit(Node node, Field field) {
-        if (node.mayWrite() && (setIfNotChanged || node.getChanged().size() > 
0)) {
+        if (node.mayWrite()) {
             node.setValueWithoutProcess(field.getName(), new Date());
         }
     }


Index: LastModifier.java
===================================================================
RCS file: /var/cvs/src/org/mmbase/datatypes/processors/LastModifier.java,v
retrieving revision 1.4.2.2
retrieving revision 1.4.2.3
diff -u -b -r1.4.2.2 -r1.4.2.3
--- LastModifier.java   4 Nov 2008 16:48:24 -0000       1.4.2.2
+++ LastModifier.java   18 Nov 2008 23:21:37 -0000      1.4.2.3
@@ -16,7 +16,7 @@
  * to the current user id when the node is committed.
  *
  * @author Michiel Meeuwissen
- * @version $Id: LastModifier.java,v 1.4.2.2 2008/11/04 16:48:24 michiel Exp $
+ * @version $Id: LastModifier.java,v 1.4.2.3 2008/11/18 23:21:37 michiel Exp $
  * @since MMBase-1.8
  * @see   LastModified
  * @see   Creator
@@ -27,20 +27,8 @@
 
     private static final long serialVersionUID = 1L;
 
-
-    private boolean setIfNotChanged = false;
-    /**
-     * 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
-     */
-    public void setIfNotChanged(boolean b) {
-        setIfNotChanged = b;
-    }
-
     public void commit(Node node, Field field) {
-        if (node.mayWrite() && (setIfNotChanged || node.getChanged().size() > 
0)) {
+        if (node.mayWrite()) {
             
node.setValueWithoutProcess(field.getName(),node.getCloud().getUser().getIdentifier());
         }
     }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to