01: package org.pentaho.plugin.jfreereport.repository;
02:
03: import org.jfree.repository.Repository;
04: import org.jfree.repository.ContentLocation;
05: import org.jfree.repository.ContentIOException;
06: import org.jfree.repository.MimeRegistry;
07: import org.jfree.repository.DefaultMimeRegistry;
08: import org.pentaho.core.repository.IContentLocation;
09:
10: /**
11: * Creation-Date: 05.07.2007, 14:43:40
12: *
13: * @author Thomas Morgner
14: */
15: public class ReportContentRepository implements Repository {
16: private DefaultMimeRegistry mimeRegistry;
17:
18: private ReportContentLocation root;
19:
20: public ReportContentRepository(final IContentLocation root,
21: final String actionName) {
22: this .root = new ReportContentLocation(root, this , actionName);
23: this .mimeRegistry = new DefaultMimeRegistry();
24: }
25:
26: public ContentLocation getRoot() throws ContentIOException {
27: return root;
28: }
29:
30: public MimeRegistry getMimeRegistry() {
31: return mimeRegistry;
32: }
33: }
|