org.sakaiproject.tool.assessment.data.dao.questionpool
Class QuestionPoolData

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.data.dao.questionpool.QuestionPoolData
All Implemented Interfaces:
QuestionPoolDataIfc, Serializable

public class QuestionPoolData
extends Object
implements Serializable, QuestionPoolDataIfc

DOCUMENTATION PENDING

Version:
$Id: QuestionPoolData.java 3968 2005-11-17 18:46:40Z hquinn@stanford.edu $
Author:
$author$
See Also:
Serialized Form

Field Summary
static Long ACCESS_DENIED
           
static Long ADMIN
           
static Long DEFAULT_INTELLECTUAL_PROPERTYID
           
static Long DEFAULT_TYPEID
           
static Long READ_COPY
           
static Long READ_ONLY
           
static Long READ_WRITE
           
static Long ROOT_POOL
           
 
Constructor Summary
QuestionPoolData()
           
QuestionPoolData(Long poolId, String title)
          This is a cheap object created for holding just the Id & title.
QuestionPoolData(Long poolId, String title, Long parentPoolId)
           
 
Method Summary
 void addQuestionPoolItem(QuestionPoolItemIfc questionPoolItem)
           
 TypeIfc getAccessType()
           
 Long getAccessTypeId()
          DOCUMENTATION PENDING
 Date getDateCreated()
          DOCUMENTATION PENDING
 String getDescription()
           
 Long getIntellectualPropertyId()
          DOCUMENTATION PENDING
 String getKeywords()
          DOCUMENTATION PENDING
 Date getLastModified()
          DOCUMENTATION PENDING
 AgentDataIfc getLastModifiedBy()
           
 String getLastModifiedById()
           
 String getObjectives()
          DOCUMENTATION PENDING
 String getOrganizationName()
          DOCUMENTATION PENDING
 AgentDataIfc getOwner()
           
 String getOwnerId()
           
 Long getParentPoolId()
           
 Long getQuestionPoolId()
           
 Set getQuestionPoolItems()
           
 Collection getQuestions()
          DOCUMENTATION PENDING
 Integer getQuestionSize()
           
 String getRubric()
          DOCUMENTATION PENDING
 Integer getSubPoolSize()
           
 String getTitle()
           
 TypeIfc getType()
           
 Long getTypeId()
           
 void setAccessType(TypeIfc accessType)
           
 void setAccessTypeId(Long accessTypeId)
           
 void setDateCreated(Date dateCreated)
          DOCUMENTATION PENDING
 void setDescription(String description)
           
 void setIntellectualProperty(String intellectualProperty)
           
 void setIntellectualPropertyId(Long intellectualPropertyId)
          DOCUMENTATION PENDING
 void setKeywords(String keywords)
          DOCUMENTATION PENDING
 void setLastModified(Date lastModified)
          DOCUMENTATION PENDING
 void setLastModifiedBy(AgentDataIfc lastModifiedBy)
           
 void setLastModifiedById(String lastModifiedById)
           
 void setObjectives(String objectives)
          DOCUMENTATION PENDING
 void setOrganizationName(String organizationName)
          DOCUMENTATION PENDING
 void setOwner(AgentDataIfc owner)
           
 void setOwnerId(String ownerId)
           
 void setParentPoolId(Long parentPoolId)
           
 void setQuestionPoolId(Long questionPoolId)
           
 void setQuestionPoolItems(Set questionPoolItems)
           
 void setQuestions(Collection items)
          DOCUMENTATION PENDING
 void setRubric(String rubric)
          DOCUMENTATION PENDING
 void setSubPoolSize(Integer subPoolSize)
           
 void setTitle(String title)
           
 void setType(TypeIfc type)
           
 void setTypeId(Long typeId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACCESS_DENIED

public static Long ACCESS_DENIED

READ_ONLY

public static Long READ_ONLY

READ_COPY

public static Long READ_COPY

READ_WRITE

public static Long READ_WRITE

ADMIN

public static Long ADMIN

DEFAULT_TYPEID

public static Long DEFAULT_TYPEID

DEFAULT_INTELLECTUAL_PROPERTYID

public static Long DEFAULT_INTELLECTUAL_PROPERTYID

ROOT_POOL

public static Long ROOT_POOL
Constructor Detail

QuestionPoolData

public QuestionPoolData()

QuestionPoolData

public QuestionPoolData(Long poolId,
                        String title)
This is a cheap object created for holding just the Id & title. This is used by the pulldown list in authoring when we only need the Id & title and nothing else. This object is not used for persistence.

Parameters:
poolId -
title -

QuestionPoolData

public QuestionPoolData(Long poolId,
                        String title,
                        Long parentPoolId)
Method Detail

getQuestionPoolId

public Long getQuestionPoolId()
Specified by:
getQuestionPoolId in interface QuestionPoolDataIfc

setQuestionPoolId

public void setQuestionPoolId(Long questionPoolId)
Specified by:
setQuestionPoolId in interface QuestionPoolDataIfc

getTitle

public String getTitle()
Specified by:
getTitle in interface QuestionPoolDataIfc

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface QuestionPoolDataIfc

getDescription

public String getDescription()
Specified by:
getDescription in interface QuestionPoolDataIfc

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface QuestionPoolDataIfc

getParentPoolId

public Long getParentPoolId()
Specified by:
getParentPoolId in interface QuestionPoolDataIfc

setParentPoolId

public void setParentPoolId(Long parentPoolId)
Specified by:
setParentPoolId in interface QuestionPoolDataIfc

getOwnerId

public String getOwnerId()
Specified by:
getOwnerId in interface QuestionPoolDataIfc

setOwnerId

public void setOwnerId(String ownerId)
Specified by:
setOwnerId in interface QuestionPoolDataIfc

getOwner

public AgentDataIfc getOwner()
Specified by:
getOwner in interface QuestionPoolDataIfc

setOwner

public void setOwner(AgentDataIfc owner)
Specified by:
setOwner in interface QuestionPoolDataIfc

getDateCreated

public Date getDateCreated()
DOCUMENTATION PENDING

Specified by:
getDateCreated in interface QuestionPoolDataIfc
Returns:
DOCUMENTATION PENDING

setDateCreated

public void setDateCreated(Date dateCreated)
DOCUMENTATION PENDING

Specified by:
setDateCreated in interface QuestionPoolDataIfc
Parameters:
dateCreated - DOCUMENTATION PENDING

getLastModified

public Date getLastModified()
DOCUMENTATION PENDING

Specified by:
getLastModified in interface QuestionPoolDataIfc
Returns:
DOCUMENTATION PENDING

setLastModified

public void setLastModified(Date lastModified)
DOCUMENTATION PENDING

Specified by:
setLastModified in interface QuestionPoolDataIfc
Parameters:
lastModified - DOCUMENTATION PENDING

getLastModifiedById

public String getLastModifiedById()
Specified by:
getLastModifiedById in interface QuestionPoolDataIfc

setLastModifiedById

public void setLastModifiedById(String lastModifiedById)
Specified by:
setLastModifiedById in interface QuestionPoolDataIfc

getLastModifiedBy

public AgentDataIfc getLastModifiedBy()
Specified by:
getLastModifiedBy in interface QuestionPoolDataIfc

setLastModifiedBy

public void setLastModifiedBy(AgentDataIfc lastModifiedBy)
Specified by:
setLastModifiedBy in interface QuestionPoolDataIfc

getAccessTypeId

public Long getAccessTypeId()
DOCUMENTATION PENDING

Specified by:
getAccessTypeId in interface QuestionPoolDataIfc
Returns:
DOCUMENTATION PENDING

setAccessTypeId

public void setAccessTypeId(Long accessTypeId)
Specified by:
setAccessTypeId in interface QuestionPoolDataIfc

getAccessType

public TypeIfc getAccessType()
Specified by:
getAccessType in interface QuestionPoolDataIfc

setAccessType

public void setAccessType(TypeIfc accessType)
Specified by:
setAccessType in interface QuestionPoolDataIfc

getObjectives

public String getObjectives()
DOCUMENTATION PENDING

Specified by:
getObjectives in interface QuestionPoolDataIfc
Returns:
DOCUMENTATION PENDING

setObjectives

public void setObjectives(String objectives)
DOCUMENTATION PENDING

Specified by:
setObjectives in interface QuestionPoolDataIfc
Parameters:
objectives - DOCUMENTATION PENDING

getKeywords

public String getKeywords()
DOCUMENTATION PENDING

Specified by:
getKeywords in interface QuestionPoolDataIfc
Returns:
DOCUMENTATION PENDING

setKeywords

public void setKeywords(String keywords)
DOCUMENTATION PENDING

Specified by:
setKeywords in interface QuestionPoolDataIfc

getRubric

public String getRubric()
DOCUMENTATION PENDING

Specified by:
getRubric in interface QuestionPoolDataIfc
Returns:
DOCUMENTATION PENDING

setRubric

public void setRubric(String rubric)
DOCUMENTATION PENDING

Specified by:
setRubric in interface QuestionPoolDataIfc
Parameters:
rubric - DOCUMENTATION PENDING

getTypeId

public Long getTypeId()
Specified by:
getTypeId in interface QuestionPoolDataIfc

setTypeId

public void setTypeId(Long typeId)
Specified by:
setTypeId in interface QuestionPoolDataIfc

getType

public TypeIfc getType()
Specified by:
getType in interface QuestionPoolDataIfc

setType

public void setType(TypeIfc type)
Specified by:
setType in interface QuestionPoolDataIfc

getIntellectualPropertyId

public Long getIntellectualPropertyId()
DOCUMENTATION PENDING

Specified by:
getIntellectualPropertyId in interface QuestionPoolDataIfc
Returns:
DOCUMENTATION PENDING

setIntellectualPropertyId

public void setIntellectualPropertyId(Long intellectualPropertyId)
DOCUMENTATION PENDING

Specified by:
setIntellectualPropertyId in interface QuestionPoolDataIfc

setIntellectualProperty

public void setIntellectualProperty(String intellectualProperty)

getOrganizationName

public String getOrganizationName()
DOCUMENTATION PENDING

Specified by:
getOrganizationName in interface QuestionPoolDataIfc
Returns:
DOCUMENTATION PENDING

setOrganizationName

public void setOrganizationName(String organizationName)
DOCUMENTATION PENDING

Specified by:
setOrganizationName in interface QuestionPoolDataIfc
Parameters:
organizationName - DOCUMENTATION PENDING

getQuestionPoolItems

public Set getQuestionPoolItems()
Specified by:
getQuestionPoolItems in interface QuestionPoolDataIfc

setQuestionPoolItems

public void setQuestionPoolItems(Set questionPoolItems)
Specified by:
setQuestionPoolItems in interface QuestionPoolDataIfc

addQuestionPoolItem

public void addQuestionPoolItem(QuestionPoolItemIfc questionPoolItem)
Specified by:
addQuestionPoolItem in interface QuestionPoolDataIfc

getQuestions

public Collection getQuestions()
DOCUMENTATION PENDING

Specified by:
getQuestions in interface QuestionPoolDataIfc
Returns:
an ArrayList of org.sakaiproject.tool.assessment.data.dao.ItemData

setQuestions

public void setQuestions(Collection items)
DOCUMENTATION PENDING

Specified by:
setQuestions in interface QuestionPoolDataIfc

getQuestionSize

public Integer getQuestionSize()
Specified by:
getQuestionSize in interface QuestionPoolDataIfc

setSubPoolSize

public void setSubPoolSize(Integer subPoolSize)
Specified by:
setSubPoolSize in interface QuestionPoolDataIfc

getSubPoolSize

public Integer getSubPoolSize()
Specified by:
getSubPoolSize in interface QuestionPoolDataIfc