org.mmbase.versioning
Class IdRelVersioningCommitProcessor

java.lang.Object
  extended by org.mmbase.versioning.IdRelVersioningCommitProcessor
All Implemented Interfaces:
Serializable, CommitProcessor

public class IdRelVersioningCommitProcessor
extends Object
implements CommitProcessor

Since:
Version:
$Id: IdRelVersioningCommitProcessor.java 35335 2009-05-21 08:14:41Z michiel $
Author:
Michiel Meeuwissen
See Also:
Serialized Form

Constructor Summary
IdRelVersioningCommitProcessor()
           
 
Method Summary
 void commit(Node node, Field field)
          Will be called on commit of the node.
(package private)  void fillFromAndToFields(Node node, Field field)
          Fills 'version_from', 'version_to' of all idrels of this node for which they are empty.
(package private) static NodeList getIdRels(Node node)
           
(package private)  boolean hasId(Document doc, String id)
           
(package private) static boolean hasVersionFields(NodeManager idrel)
           
(package private)  boolean isRelevant(Node idrel, Node node)
           
(package private) static boolean isVersionFieldsFilled(Node idrel)
           
 void setFields(String f)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdRelVersioningCommitProcessor

public IdRelVersioningCommitProcessor()
Method Detail

setFields

public void setFields(String f)

getIdRels

static NodeList getIdRels(Node node)

hasId

boolean hasId(Document doc,
              String id)

isRelevant

boolean isRelevant(Node idrel,
                   Node node)

hasVersionFields

static boolean hasVersionFields(NodeManager idrel)

isVersionFieldsFilled

static boolean isVersionFieldsFilled(Node idrel)

fillFromAndToFields

void fillFromAndToFields(Node node,
                         Field field)
Fills 'version_from', 'version_to' of all idrels of this node for which they are empty.


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


MMBase 2.0-SNAPSHOT - null