/**********************************************************************************
* $URL: https://source.sakaiproject.org/svn/sam/trunk/samigo-hibernate/src/java/org/sakaiproject/tool/assessment/data/dao/shared/TypeD.java $
* $Id: TypeD.java 106463 2012-04-02 12:20:09Z david.horwitz@uct.ac.za $
***********************************************************************************
*
* Copyright (c) 2004, 2005, 2006, 2008, 2009 The Sakai Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ECL-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
**********************************************************************************/
package org.sakaiproject.tool.assessment.data.dao.shared;
import java.util.Date;
import org.sakaiproject.tool.assessment.data.ifc.shared.TypeIfc;
public class TypeD implements TypeIfc{
/**
*
*/
private static final long serialVersionUID = 3957338190425982508L;
// This has the exact same list as TypeFacade. Please keep both list updated
public static final Long MULTIPLE_CHOICE = Long.valueOf(1);
public static final Long MULTIPLE_CORRECT =Long.valueOf(2);
public static final Long MULTIPLE_CHOICE_SURVEY = Long.valueOf(3);
public static final Long TRUE_FALSE = Long.valueOf(4);
public static final Long ESSAY_QUESTION = Long.valueOf(5);
public static final Long FILE_UPLOAD = Long.valueOf(6);
public static final Long AUDIO_RECORDING = Long.valueOf(7);
public static final Long FILL_IN_BLANK = Long.valueOf(8);
public static final Long FILL_IN_NUMERIC = Long.valueOf(11);
public static final Long MATRIX_CHOICES_SURVEY = Long.valueOf(13);
public static final Long CALCULATED_QUESTION = Long.valueOf(15); // CALCULATED_QUESTION
public static final Long MATCHING = Long.valueOf(9);
// these are section type available in this site,
public static final Long DEFAULT_SECTION = Long.valueOf(21);
// these are assessment template type available in this site,
public static final Long TEMPLATE_SYSTEM_DEFINED = Long.valueOf(142);
public static final Long TEMPLATE_QUIZ = Long.valueOf(41);
public static final Long TEMPLATE_HOMEWORK = Long.valueOf(42);
public static final Long TEMPLATE_MIDTERM = Long.valueOf(43);
public static final Long TEMPLATE_FINAL = Long.valueOf(44);
// these are assessment type available in this site,
public static final Long QUIZ = Long.valueOf(61);
public static final Long HOMEWORK = Long.valueOf(62);
public static final Long MIDTERM = Long.valueOf(63);
public static final Long FINAL = Long.valueOf(64);
private Long typeId;
private String authority;
private String domain;
private String keyword;
private String description;
private int status;
private String createdBy;
private Date createdDate;
private String lastModifiedBy;
private Date lastModifiedDate;
public TypeD(){
}
public TypeD(String authority, String domain,
String keyword) {
this.authority = authority;
this.domain = domain;
this.keyword = keyword;
}
public TypeD(String authority, String domain,
String keyword, String description) {
this.authority = authority;
this.domain = domain;
this.keyword = keyword;
this.description = description;
}
public TypeD(String authority, String domain,
String keyword, String description,
int status,
String createdBy, Date createdDate,
String lastModifiedBy, Date lastModifiedDate) {
this.authority = authority;
this.domain = domain;
this.keyword = keyword;
this.description = description;
this.status = status;
this.createdBy = createdBy;
this.createdDate = createdDate;
this.lastModifiedBy = lastModifiedBy;
this.lastModifiedDate = lastModifiedDate;
}
/**
* Return the itemTypeId from ItemType
*/
public Long getTypeId(){
return this.typeId;
}
/**
* Set the itemTypeID for this ItemType.
*/
public void setTypeId(Long typeId){
this.typeId = typeId;
}
public String getAuthority(){
return this.authority;
}
public void setAuthority(String authority){
this.authority = authority;
}
public String getDomain(){
return this.domain;
}
public void setDomain(String domain){
this.domain = domain;
}
/**
* Return the Name for this ItemType.
*/
public String getKeyword(){
return this.keyword;
}
/**
* Set the Name for this ItemType.
*/
public void setKeyword(String keyword){
this.keyword = keyword;
}
public String getDescription(){
return this.description;
}
public void setDescription(String description){
this.description = description;
}
/**
* Return the status for this ItemType.
*/
public int getStatus(){
return this.status;
}
/**
* Set the status for this ItemType.
*/
public void setStatus(int status){
this.status = status;
}
/**
* Return the createdBy for this ItemType.
*/
public String getCreatedBy(){
return this.createdBy;
}
/**
* Set the createdBy for this ItemType.
*/
public void setCreatedBy (String createdBy){
this.createdBy = createdBy;
}
/**
* Return the createdDate for this ItemType.
*/
public Date getCreatedDate(){
return this.createdDate;
}
/**
* Set the createdDate for this ItemType.
*/
public void setCreatedDate (Date createdDate){
this.createdDate = createdDate;
}
/**
* Return the lastModifiedBy for this ItemType.
*/
public String getLastModifiedBy(){
return this.lastModifiedBy;
}
/**
* Set the lastModifiedBy for this ItemType.
*/
public void setLastModifiedBy (String lastModifiedBy){
this.lastModifiedBy = lastModifiedBy;
}
/**
* Return the lastModifiedDate for this ItemType.
*/
public Date getLastModifiedDate(){
return this.lastModifiedDate;
}
/**
* Set the lastModifiedDate for this ItemType.
*/
public void setLastModifiedDate (Date lastModifiedDate){
this.lastModifiedDate = lastModifiedDate;
}
}