001/*
002 * Copyright (c) 2006-2013 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the Eclipse Public License v1.0
006 * which accompanies this distribution, and is available at
007 * http://www.eclipse.org/legal/epl-v10.html
008 *
009 * Contributors:
010 *     Vladimir Pasquier <vpasquier@nuxeo.com>
011 *     Antoine Taillefer <ataillefer@nuxeo.com>
012 *
013 */
014package org.nuxeo.ecm.core.api.thumbnail;
015
016import org.nuxeo.ecm.core.api.Blob;
017import org.nuxeo.ecm.core.api.CoreSession;
018import org.nuxeo.ecm.core.api.DocumentModel;
019
020/**
021 * @since 5.7
022 */
023public interface ThumbnailService {
024
025    /**
026     * Get the document thumbnail (related to the doc type/facet)
027     */
028    public Blob getThumbnail(DocumentModel doc, CoreSession session);
029
030    /**
031     * Compute the thumbnail (related to the document type/facet)
032     */
033    public Blob computeThumbnail(DocumentModel doc, CoreSession session);
034
035}