001: /**********************************************************************************
002: * $URL:https://source.sakaiproject.org/svn/osp/trunk/reports/api/src/java/org/theospi/portfolio/reports/model/ReportResult.java $
003: * $Id:ReportResult.java 9134 2006-05-08 20:28:42Z chmaurer@iupui.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2005, 2006 The Sakai Foundation.
007: *
008: * Licensed under the Educational Community License, Version 1.0 (the "License");
009: * you may not use this file except in compliance with the License.
010: * You may obtain a copy of the License at
011: *
012: * http://www.opensource.org/licenses/ecl1.php
013: *
014: * Unless required by applicable law or agreed to in writing, software
015: * distributed under the License is distributed on an "AS IS" BASIS,
016: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017: * See the License for the specific language governing permissions and
018: * limitations under the License.
019: *
020: **********************************************************************************/package org.theospi.portfolio.reports.model;
021:
022: import java.util.Date;
023:
024: import org.sakaiproject.metaobj.shared.model.Id;
025:
026: public class ReportResult {
027: /** the unique identifier for the report definition */
028: private Id resultId;
029:
030: /** the unique identifier for the report definition */
031: private Report report;
032:
033: /** the owner of the report */
034: private String userId;
035:
036: /** the title of the report definition */
037: private String title;
038:
039: /** the keyword for the report definition */
040: private String keywords;
041:
042: /** the description for the report definition */
043: private String description;
044:
045: /** the parameters for the query in the report definition */
046: private Date creationDate;
047:
048: /** the defaultXsl for the report definition */
049: private String xml;
050:
051: /** tells whether or not the result has been saved to the database */
052: private boolean isSaved = false;
053:
054: private boolean isOwner = false;
055:
056: /**
057: * the getter for the resultId property
058: * @return String the unique identifier
059: */
060: public Id getResultId() {
061: return resultId;
062: }
063:
064: /**
065: * the setter for the resultId property. This is set by the bean
066: * and by hibernate.
067: * @param resultId String
068: */
069: public void setResultId(Id resultId) {
070: this .resultId = resultId;
071: }
072:
073: /**
074: * the getter for the report property
075: * @return String the unique identifier
076: */
077: public Report getReport() {
078: return report;
079: }
080:
081: /**
082: * the setter for the report property. This is set by the bean
083: * and by hibernate.
084: * @param report String
085: */
086: public void setReport(Report report) {
087: this .report = report;
088: }
089:
090: /**
091: * the getter for the userId property
092: * @return String the userId
093: */
094: public String getUserId() {
095: return userId;
096: }
097:
098: /**
099: * the setter for the userId property. This is set by the bean
100: * and by hibernate.
101: * @param userId String
102: */
103: public void setUserId(String userId) {
104: this .userId = userId;
105: }
106:
107: /**
108: * the getter for the title property
109: * @return String the title
110: */
111: public String getTitle() {
112: return title;
113: }
114:
115: /**
116: * the setter for the title property. This is set by the bean
117: * and by hibernate.
118: * @param reportDefId String
119: */
120: public void setTitle(String title) {
121: this .title = title;
122: }
123:
124: /**
125: * the getter for the keywords property
126: * @return String the keywords
127: */
128: public String getKeywords() {
129: return keywords;
130: }
131:
132: /**
133: * the setter for the keywords property. This is set by the bean
134: * and by hibernate.
135: * @param keywords String
136: */
137: public void setKeywords(String keywords) {
138: this .keywords = keywords;
139: }
140:
141: /**
142: * the getter for the description property
143: * @return String the description
144: */
145: public String getDescription() {
146: return description;
147: }
148:
149: /**
150: * the setter for the description property. This is set by the bean
151: * and by hibernate.
152: * @param description String
153: */
154: public void setDescription(String description) {
155: this .description = description;
156: }
157:
158: /**
159: * the getter for the creationDate property
160: * @return List the creationDate
161: */
162: public Date getCreationDate() {
163: return creationDate;
164: }
165:
166: /**
167: * the setter for the creationDate property. This is set by the bean
168: * and by hibernate.
169: * @param params List
170: */
171: public void setCreationDate(Date creationDate) {
172: this .creationDate = creationDate;
173: }
174:
175: /**
176: * the getter for the xml property
177: * @return String the xml
178: */
179: public String getXml() {
180: return xml;
181: }
182:
183: /**
184: * the setter for the xml property. This is set by the bean
185: * and by hibernate.
186: * @param xml List
187: */
188: public void setXml(String xml) {
189: this .xml = xml;
190: }
191:
192: /**
193: * the getter for the isSaved property
194: * @return String the isSaved
195: */
196: public boolean getIsSaved() {
197: return isSaved;
198: }
199:
200: /**
201: * the setter for the isSaved property. This is set by the bean
202: * and by hibernate.
203: * @param isSaved List
204: */
205: public void setIsSaved(boolean isSaved) {
206: this .isSaved = isSaved;
207: }
208:
209: public boolean isOwner() {
210: return isOwner;
211: }
212:
213: public void setOwner(boolean owner) {
214: isOwner = owner;
215: }
216: }
|