001package org.nuxeo.template.api.context;
002
003import java.util.List;
004
005import org.nuxeo.ecm.core.api.DocumentModel;
006import org.nuxeo.ecm.platform.audit.api.LogEntry;
007
008/**
009 * Wrapper interface used to wrap the Object that will be put inside the rendering context.
010 * <p>
011 * Because the rederning context wrapping requirements can depends on the actual rendering engine implementation, this
012 * is just an interface so that several implemenations can be provided
013 * </p>
014 *
015 * @author <a href="mailto:tdelprat@nuxeo.com">Tiry</a>
016 */
017public interface DocumentWrapper {
018
019    Object wrap(DocumentModel doc);
020
021    Object wrap(List<LogEntry> auditEntries);
022}