1 package org.apache.archiva.redback.integration.reports;
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
22 import java.io.OutputStream;
27 * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a>
30 public interface Report
33 * The Name of the Report (for display to the user)
35 * @return the name of the report.
40 * The type of report (example: 'csv', 'xls', 'pdf')
41 * Used in the display of the report links to the user.
43 * @return the type of report.
48 * The mimetype of the report. (used to set download content type correctly)
50 * @return the mimetype.
55 * The ID for this report.
57 * @return the ID for this report.
62 * Write Report to provided outputstream.
64 * @param os the outputstream to write to.
65 * @throws ReportException if there was a problem in generating the report.
67 void writeReport( OutputStream os )
68 throws ReportException;