01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-api/src/java/org/sakaiproject/tool/assessment/data/ifc/shared/TypeIfc.java $
03: * $Id: TypeIfc.java 14574 2006-09-14 06:13:52Z lydial@stanford.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the"License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.tool.assessment.data.ifc.shared;
21:
22: import java.util.Date;
23:
24: public interface TypeIfc extends java.io.Serializable {
25: // This has the exact same list as TypeFacade. Please keep both list updated
26: public static Long MULTIPLE_CHOICE = new Long(1);
27: public static Long MULTIPLE_CORRECT = new Long(2);
28: public static Long MULTIPLE_CHOICE_SURVEY = new Long(3);
29: public static Long TRUE_FALSE = new Long(4);
30: public static Long ESSAY_QUESTION = new Long(5);
31: public static Long FILE_UPLOAD = new Long(6);
32: public static Long AUDIO_RECORDING = new Long(7);
33: public static Long FILL_IN_BLANK = new Long(8);
34: public static Long FILL_IN_NUMERIC = new Long(11);
35: public static Long MATCHING = new Long(9);
36: // these are section type available in this site,
37: public static Long DEFAULT_SECTION = new Long(21);
38: // these are assessment template type available in this site,
39: public static Long TEMPLATE_QUIZ = new Long(41);
40: public static Long TEMPLATE_HOMEWORK = new Long(42);
41: public static Long TEMPLATE_MIDTERM = new Long(43);
42: public static Long TEMPLATE_FINAL = new Long(44);
43: // these are assessment type available in this site,
44: public static Long QUIZ = new Long(61);
45: public static Long HOMEWORK = new Long(62);
46: public static Long MIDTERM = new Long(63);
47: public static Long FINAL = new Long(64);
48: public static String SITE_AUTHORITY = "stanford.edu";
49: public static String DOMAIN_ASSESSMENT_ITEM = "assessment.item";
50:
51: Long getTypeId();
52:
53: void setTypeId(Long typeId);
54:
55: String getAuthority();
56:
57: void setAuthority(String authority);
58:
59: String getDomain();
60:
61: void setDomain(String domain);
62:
63: String getKeyword();
64:
65: void setKeyword(String keyword);
66:
67: String getDescription();
68:
69: void setDescription(String description);
70:
71: int getStatus();
72:
73: void setStatus(int status);
74:
75: String getCreatedBy();
76:
77: void setCreatedBy(String createdBy);
78:
79: Date getCreatedDate();
80:
81: void setCreatedDate(Date createdDate);
82:
83: String getLastModifiedBy();
84:
85: void setLastModifiedBy(String lastModifiedBy);
86:
87: Date getLastModifiedDate();
88:
89: void setLastModifiedDate(Date lastModifiedDate);
90:
91: }
|