View Javadoc
1   /*
2    * Copyright 2008 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.ole.sys.report;
17  
18  import java.util.Locale;
19  import java.util.Map;
20  import java.util.ResourceBundle;
21  
22  public class ReportInfoHolder implements ReportInfo {
23      private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger.getLogger(ReportInfoHolder.class);
24  
25      private String reportFileName;
26      private String reportsDirectory;
27      private String reportTemplateClassPath;
28      private String reportTemplateName;
29      private String reportTitle;
30      private String resourceBundleBaseName;
31      private Map<String, String> subReports;
32      private String subReportTemplateClassPath;
33  
34      /**
35       * @see org.kuali.ole.sys.report.ReportInfo#getReportFileName()
36       */
37      public String getReportFileName() {
38          return reportFileName;
39      }
40  
41      /**
42       * @see org.kuali.ole.sys.report.ReportInfo#getReportsDirectory()
43       */
44      public String getReportsDirectory() {
45          return reportsDirectory;
46      }
47  
48      /**
49       * @see org.kuali.ole.sys.report.ReportInfo#getReportTemplateClassPath()
50       */
51      public String getReportTemplateClassPath() {
52          return reportTemplateClassPath;
53      }
54  
55      /**
56       * @see org.kuali.ole.sys.report.ReportInfo#getReportTemplateName()
57       */
58      public String getReportTemplateName() {
59          return reportTemplateName;
60      }
61  
62      /**
63       * @see org.kuali.ole.sys.report.ReportInfo#getReportTitle()
64       */
65      public String getReportTitle() {
66          return reportTitle;
67      }
68  
69      /**
70       * @see org.kuali.ole.sys.report.ReportInfo#getResourceBundle()
71       */
72      public ResourceBundle getResourceBundle() {
73          return ResourceBundle.getBundle(resourceBundleBaseName, Locale.getDefault());
74      }
75  
76      /**
77       * @see org.kuali.ole.sys.report.ReportInfo#getResourceBundleBaseName()
78       */
79      public String getResourceBundleBaseName() {
80          return resourceBundleBaseName;
81      }
82  
83      /**
84       * @see org.kuali.ole.sys.report.ReportInfo#getSubReports()
85       */
86      public Map<String, String> getSubReports() {
87          return subReports;
88      }
89  
90      /**
91       * @see org.kuali.ole.sys.report.ReportInfo#getSubReportTemplateClassPath()
92       */
93      public String getSubReportTemplateClassPath() {
94          return subReportTemplateClassPath;
95      }
96  
97      /**
98       * Sets the reportFilename attribute value.
99       * 
100      * @param reportFilename The reportFilename to set.
101      */
102     public void setReportFileName(String reportFileName) {
103         this.reportFileName = reportFileName;
104     }
105 
106     /**
107      * Sets the reportsDirectory attribute value.
108      * 
109      * @param reportsDirectory The reportsDirectory to set.
110      */
111     public void setReportsDirectory(String reportsDirectory) {
112         this.reportsDirectory = reportsDirectory;
113     }
114 
115     /**
116      * Sets the reportTemplateClassPath attribute value.
117      * 
118      * @param reportTemplateClassPath The reportTemplateClassPath to set.
119      */
120     public void setReportTemplateClassPath(String reportTemplateClassPath) {
121         this.reportTemplateClassPath = reportTemplateClassPath;
122     }
123 
124     /**
125      * Sets the reportTemplateName attribute value.
126      * 
127      * @param reportTemplateName The reportTemplateName to set.
128      */
129     public void setReportTemplateName(String reportTemplateName) {
130         this.reportTemplateName = reportTemplateName;
131     }
132 
133     /**
134      * Sets the reportTitle attribute value.
135      * 
136      * @param reportTitle The reportTitle to set.
137      */
138     public void setReportTitle(String reportTitle) {
139         this.reportTitle = reportTitle;
140     }
141 
142     /**
143      * Sets the resourceBundleBaseName attribute value.
144      * 
145      * @param resourceBundleBaseName The resourceBundleBaseName to set.
146      */
147     public void setResourceBundleBaseName(String resourceBundleBaseName) {
148         this.resourceBundleBaseName = resourceBundleBaseName;
149     }
150 
151     /**
152      * Sets the subReports attribute value.
153      * 
154      * @param subReports The subReports to set.
155      */
156     public void setSubReports(Map<String, String> subReports) {
157         this.subReports = subReports;
158     }
159 
160     /**
161      * Sets the subReportTemplateClassPath attribute value.
162      * 
163      * @param subReportTemplateClassPath The subReportTemplateClassPath to set.
164      */
165     public void setSubReportTemplateClassPath(String subReportTemplateClassPath) {
166         this.subReportTemplateClassPath = subReportTemplateClassPath;
167     }
168 }