001/* 002 * (C) Copyright 2006-20011 Nuxeo SAS (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * Nuxeo - initial API and implementation 016 * 017 */ 018 019package org.nuxeo.ecm.platform.reporting.api; 020 021import java.io.IOException; 022import java.io.InputStream; 023import java.util.List; 024import java.util.Map; 025 026import org.nuxeo.ecm.core.api.DocumentModel; 027import org.nuxeo.ecm.platform.reporting.report.ReportParameter; 028 029public interface ReportModel { 030 031 String getId(); 032 033 InputStream getReportFileAsStream() throws IOException; 034 035 List<ReportParameter> getReportParameters() throws IOException; 036 037 Map<String, String> getStoredParameters(); 038 039 void setParameter(ReportParameter param) throws IOException; 040 041 void setParameter(String name, Object value) throws IOException; 042 043 String getReportName(); 044 045 void parseParametersDefinition() throws IOException; 046 047 void updateMetadata() throws IOException; 048 049 DocumentModel getDoc(); 050 051}