Search in sources :

Example 1 with JournalPropertyBuilder

use of org.apache.jackrabbit.oak.plugins.document.spi.JournalPropertyBuilder in project jackrabbit-oak by apache.

the class JournalPropertyHandler method readFrom.

public void readFrom(CommitInfo info) {
    CommitContext commitContext = (CommitContext) info.getInfo().get(CommitContext.NAME);
    //that it may miss out on some data collection
    if (commitContext == null) {
        for (JournalPropertyBuilder<?> builder : builders.values()) {
            builder.addProperty(null);
        }
        return;
    }
    for (Map.Entry<String, JournalPropertyBuilder<JournalProperty>> e : builders.entrySet()) {
        JournalPropertyBuilder<JournalProperty> builder = e.getValue();
        builder.addProperty(getEntry(commitContext, e.getKey()));
    }
}
Also used : JournalPropertyBuilder(org.apache.jackrabbit.oak.plugins.document.spi.JournalPropertyBuilder) CommitContext(org.apache.jackrabbit.oak.spi.commit.CommitContext) JournalProperty(org.apache.jackrabbit.oak.plugins.document.spi.JournalProperty) Map(java.util.Map)

Aggregations

Map (java.util.Map)1 JournalProperty (org.apache.jackrabbit.oak.plugins.document.spi.JournalProperty)1 JournalPropertyBuilder (org.apache.jackrabbit.oak.plugins.document.spi.JournalPropertyBuilder)1 CommitContext (org.apache.jackrabbit.oak.spi.commit.CommitContext)1