001: /**********************************************************************************
002: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-api/src/java/org/sakaiproject/tool/assessment/data/ifc/assessment/SectionDataIfc.java $
003: * $Id: SectionDataIfc.java 22090 2007-03-02 18:25:45Z ktsao@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.ifc.assessment;
021:
022: import java.util.ArrayList;
023: import java.util.Date;
024: import java.util.HashMap;
025: import java.util.Set;
026: import java.util.List;
027:
028: import org.sakaiproject.tool.assessment.data.ifc.shared.TypeIfc;
029:
030: public interface SectionDataIfc extends java.io.Serializable {
031:
032: public static String AUTHOR_TYPE = "AUTHOR_TYPE"; // author questions one at a time, or random draw from qpool.
033: public static Integer QUESTIONS_AUTHORED_ONE_BY_ONE = new Integer(1);
034: public static Integer RANDOM_DRAW_FROM_QUESTIONPOOL = new Integer(2);
035:
036: public static String QUESTIONS_ORDERING = "QUESTIONS_ORDERING"; // question ordering within a part
037: public static Integer AS_LISTED_ON_ASSESSMENT_PAGE = new Integer(1);
038: public static Integer RANDOM_WITHIN_PART = new Integer(2);
039: public static String POOLID_FOR_RANDOM_DRAW = "POOLID_FOR_RANDOM_DRAW";
040: public static String POOLNAME_FOR_RANDOM_DRAW = "POOLNAME_FOR_RANDOM_DRAW";
041: public static String NUM_QUESTIONS_DRAWN = "NUM_QUESTIONS_DRAWN";
042:
043: public static String RANDOMIZATION_TYPE = "RANDOMIZATION_TYPE";
044: public static String PER_SUBMISSION = "1";
045: public static String PER_STUDENT = "2";
046:
047: Long getSectionId();
048:
049: void setSectionId(Long sectionId);
050:
051: Long getAssessmentId();
052:
053: void setAssessmentId(Long assessmentId);
054:
055: AssessmentIfc getAssessment();
056:
057: //AssessmentData getAssessment();
058:
059: void setAssessment(AssessmentIfc assessment);
060:
061: Integer getDuration();
062:
063: void setDuration(Integer duration);
064:
065: Integer getSequence();
066:
067: void setSequence(Integer sequence);
068:
069: String getTitle();
070:
071: void setTitle(String title);
072:
073: String getDescription();
074:
075: void setDescription(String description);
076:
077: Long getTypeId();
078:
079: void setTypeId(Long typeId);
080:
081: Integer getStatus();
082:
083: void setStatus(Integer status);
084:
085: String getCreatedBy();
086:
087: void setCreatedBy(String createdBy);
088:
089: Date getCreatedDate();
090:
091: void setCreatedDate(Date createdDate);
092:
093: String getLastModifiedBy();
094:
095: void setLastModifiedBy(String lastModifiedBy);
096:
097: Date getLastModifiedDate();
098:
099: void setLastModifiedDate(Date lastModifiedDate);
100:
101: Set getItemSet();
102:
103: void setItemSet(Set itemSet);
104:
105: void addItem(ItemDataIfc item);
106:
107: TypeIfc getType();
108:
109: ArrayList getItemArray();
110:
111: ArrayList getItemArraySortedForGrading();
112:
113: Set getSectionMetaDataSet();
114:
115: void setSectionMetaDataSet(Set param);
116:
117: HashMap getSectionMetaDataMap(Set param);
118:
119: String getSectionMetaDataByLabel(String label);
120:
121: void addSectionMetaData(String label, String entry);
122:
123: Set getSectionAttachmentSet();
124:
125: void setSectionAttachmentSet(Set sectionAttachmentSet);
126:
127: List getSectionAttachmentList();
128:
129: }
|