001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-hibernate/src/java/org/sakaiproject/tool/assessment/data/dao/shared/TypeD.java $
003: * $Id: TypeD.java 15083 2006-09-20 20:03:55Z lydial@stanford.edu $
004: ***********************************************************************************
005: *
006: * Copyright (c) 2004, 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.sakaiproject.tool.assessment.data.dao.shared;
021:
022: import java.util.Date;
023: import org.sakaiproject.tool.assessment.data.ifc.shared.TypeIfc;
024:
025: public class TypeD implements TypeIfc {
026: /**
027: *
028: */
029: private static final long serialVersionUID = 3957338190425982508L;
030: // This has the exact same list as TypeFacade. Please keep both list updated
031: public static final Long MULTIPLE_CHOICE = new Long(1);
032: public static final Long MULTIPLE_CORRECT = new Long(2);
033: public static final Long MULTIPLE_CHOICE_SURVEY = new Long(3);
034: public static final Long TRUE_FALSE = new Long(4);
035: public static final Long ESSAY_QUESTION = new Long(5);
036: public static final Long FILE_UPLOAD = new Long(6);
037: public static final Long AUDIO_RECORDING = new Long(7);
038: public static final Long FILL_IN_BLANK = new Long(8);
039: public static final Long FILL_IN_NUMERIC = new Long(11);
040:
041: public static final Long MATCHING = new Long(9);
042: // these are section type available in this site,
043: public static final Long DEFAULT_SECTION = new Long(21);
044: // these are assessment template type available in this site,
045: public static final Long TEMPLATE_SYSTEM_DEFINED = new Long(142);
046: public static final Long TEMPLATE_QUIZ = new Long(41);
047: public static final Long TEMPLATE_HOMEWORK = new Long(42);
048: public static final Long TEMPLATE_MIDTERM = new Long(43);
049: public static final Long TEMPLATE_FINAL = new Long(44);
050: // these are assessment type available in this site,
051: public static final Long QUIZ = new Long(61);
052: public static final Long HOMEWORK = new Long(62);
053: public static final Long MIDTERM = new Long(63);
054: public static final Long FINAL = new Long(64);
055:
056: private Long typeId;
057: private String authority;
058: private String domain;
059: private String keyword;
060: private String description;
061: private int status;
062: private String createdBy;
063: private Date createdDate;
064: private String lastModifiedBy;
065: private Date lastModifiedDate;
066:
067: public TypeD() {
068: }
069:
070: public TypeD(String authority, String domain, String keyword) {
071: this .authority = authority;
072: this .domain = domain;
073: this .keyword = keyword;
074: }
075:
076: public TypeD(String authority, String domain, String keyword,
077: String description) {
078: this .authority = authority;
079: this .domain = domain;
080: this .keyword = keyword;
081: this .description = description;
082: }
083:
084: public TypeD(String authority, String domain, String keyword,
085: String description, int status, String createdBy,
086: Date createdDate, String lastModifiedBy,
087: Date lastModifiedDate) {
088: this .authority = authority;
089: this .domain = domain;
090: this .keyword = keyword;
091: this .description = description;
092: this .status = status;
093: this .createdBy = createdBy;
094: this .createdDate = createdDate;
095: this .lastModifiedBy = lastModifiedBy;
096: this .lastModifiedDate = lastModifiedDate;
097: }
098:
099: /**
100: * Return the itemTypeId from ItemType
101: */
102: public Long getTypeId() {
103: return this .typeId;
104: }
105:
106: /**
107: * Set the itemTypeID for this ItemType.
108: */
109: public void setTypeId(Long typeId) {
110: this .typeId = typeId;
111: }
112:
113: public String getAuthority() {
114: return this .authority;
115: }
116:
117: public void setAuthority(String authority) {
118: this .authority = authority;
119: }
120:
121: public String getDomain() {
122: return this .domain;
123: }
124:
125: public void setDomain(String domain) {
126: this .domain = domain;
127: }
128:
129: /**
130: * Return the Name for this ItemType.
131: */
132: public String getKeyword() {
133: return this .keyword;
134: }
135:
136: /**
137: * Set the Name for this ItemType.
138: */
139: public void setKeyword(String keyword) {
140: this .keyword = keyword;
141: }
142:
143: public String getDescription() {
144: return this .description;
145: }
146:
147: public void setDescription(String description) {
148: this .description = description;
149: }
150:
151: /**
152: * Return the status for this ItemType.
153: */
154: public int getStatus() {
155: return this .status;
156: }
157:
158: /**
159: * Set the status for this ItemType.
160: */
161: public void setStatus(int status) {
162: this .status = status;
163: }
164:
165: /**
166: * Return the createdBy for this ItemType.
167: */
168: public String getCreatedBy() {
169: return this .createdBy;
170: }
171:
172: /**
173: * Set the createdBy for this ItemType.
174: */
175: public void setCreatedBy(String createdBy) {
176: this .createdBy = createdBy;
177: }
178:
179: /**
180: * Return the createdDate for this ItemType.
181: */
182: public Date getCreatedDate() {
183: return this .createdDate;
184: }
185:
186: /**
187: * Set the createdDate for this ItemType.
188: */
189: public void setCreatedDate(Date createdDate) {
190: this .createdDate = createdDate;
191: }
192:
193: /**
194: * Return the lastModifiedBy for this ItemType.
195: */
196: public String getLastModifiedBy() {
197: return this .lastModifiedBy;
198: }
199:
200: /**
201: * Set the lastModifiedBy for this ItemType.
202: */
203: public void setLastModifiedBy(String lastModifiedBy) {
204: this .lastModifiedBy = lastModifiedBy;
205: }
206:
207: /**
208: * Return the lastModifiedDate for this ItemType.
209: */
210: public Date getLastModifiedDate() {
211: return this .lastModifiedDate;
212: }
213:
214: /**
215: * Set the lastModifiedDate for this ItemType.
216: */
217: public void setLastModifiedDate(Date lastModifiedDate) {
218: this.lastModifiedDate = lastModifiedDate;
219: }
220:
221: }
|