Class QuestionPoolData

  • All Implemented Interfaces:
    Serializable, Cloneable, org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc

    public class QuestionPoolData
    extends Object
    implements Serializable, org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc, Cloneable
    DOCUMENTATION PENDING
    Version:
    $Id$
    Author:
    $author$
    See Also:
    Serialized Form
    • Field Detail

      • ACCESS_DENIED

        public static final Long ACCESS_DENIED
      • READ_ONLY

        public static final Long READ_ONLY
      • READ_COPY

        public static final Long READ_COPY
      • READ_WRITE

        public static final Long READ_WRITE
      • ADMIN

        public static final Long ADMIN
      • DEFAULT_TYPEID

        public static final Long DEFAULT_TYPEID
      • DEFAULT_INTELLECTUAL_PROPERTYID

        public static final Long DEFAULT_INTELLECTUAL_PROPERTYID
      • ROOT_POOL

        public static final 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 org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • setQuestionPoolId

        public void setQuestionPoolId​(Long questionPoolId)
        Specified by:
        setQuestionPoolId in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • getTitle

        public String getTitle()
        Specified by:
        getTitle in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • setTitle

        public void setTitle​(String title)
        Specified by:
        setTitle in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • setDescription

        public void setDescription​(String description)
        Specified by:
        setDescription in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • getParentPoolId

        public Long getParentPoolId()
        Specified by:
        getParentPoolId in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • setParentPoolId

        public void setParentPoolId​(Long parentPoolId)
        Specified by:
        setParentPoolId in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • getOwnerId

        public String getOwnerId()
        Specified by:
        getOwnerId in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • setOwnerId

        public void setOwnerId​(String ownerId)
        Specified by:
        setOwnerId in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • getOwner

        public org.sakaiproject.tool.assessment.data.ifc.shared.AgentDataIfc getOwner()
        Specified by:
        getOwner in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • setOwner

        public void setOwner​(org.sakaiproject.tool.assessment.data.ifc.shared.AgentDataIfc owner)
        Specified by:
        setOwner in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • getDateCreated

        public Date getDateCreated()
        DOCUMENTATION PENDING
        Specified by:
        getDateCreated in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Returns:
        DOCUMENTATION PENDING
      • setDateCreated

        public void setDateCreated​(Date dateCreated)
        DOCUMENTATION PENDING
        Specified by:
        setDateCreated in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Parameters:
        dateCreated - DOCUMENTATION PENDING
      • getLastModified

        public Date getLastModified()
        DOCUMENTATION PENDING
        Specified by:
        getLastModified in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Returns:
        DOCUMENTATION PENDING
      • setLastModified

        public void setLastModified​(Date lastModified)
        DOCUMENTATION PENDING
        Specified by:
        setLastModified in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Parameters:
        lastModified - DOCUMENTATION PENDING
      • getLastModifiedById

        public String getLastModifiedById()
        Specified by:
        getLastModifiedById in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • setLastModifiedById

        public void setLastModifiedById​(String lastModifiedById)
        Specified by:
        setLastModifiedById in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • getLastModifiedBy

        public org.sakaiproject.tool.assessment.data.ifc.shared.AgentDataIfc getLastModifiedBy()
        Specified by:
        getLastModifiedBy in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • setLastModifiedBy

        public void setLastModifiedBy​(org.sakaiproject.tool.assessment.data.ifc.shared.AgentDataIfc lastModifiedBy)
        Specified by:
        setLastModifiedBy in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • getAccessTypeId

        public Long getAccessTypeId()
        DOCUMENTATION PENDING
        Specified by:
        getAccessTypeId in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Returns:
        DOCUMENTATION PENDING
      • setAccessTypeId

        public void setAccessTypeId​(Long accessTypeId)
        Specified by:
        setAccessTypeId in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • getAccessType

        public org.sakaiproject.tool.assessment.data.ifc.shared.TypeIfc getAccessType()
        Specified by:
        getAccessType in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • setAccessType

        public void setAccessType​(org.sakaiproject.tool.assessment.data.ifc.shared.TypeIfc accessType)
        Specified by:
        setAccessType in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • getObjectives

        public String getObjectives()
        DOCUMENTATION PENDING
        Specified by:
        getObjectives in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Returns:
        DOCUMENTATION PENDING
      • setObjectives

        public void setObjectives​(String objectives)
        DOCUMENTATION PENDING
        Specified by:
        setObjectives in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Parameters:
        objectives - DOCUMENTATION PENDING
      • getKeywords

        public String getKeywords()
        DOCUMENTATION PENDING
        Specified by:
        getKeywords in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Returns:
        DOCUMENTATION PENDING
      • setKeywords

        public void setKeywords​(String keywords)
        DOCUMENTATION PENDING
        Specified by:
        setKeywords in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Parameters:
        newKeywords - DOCUMENTATION PENDING
      • getRubric

        public String getRubric()
        DOCUMENTATION PENDING
        Specified by:
        getRubric in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Returns:
        DOCUMENTATION PENDING
      • setRubric

        public void setRubric​(String rubric)
        DOCUMENTATION PENDING
        Specified by:
        setRubric in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Parameters:
        rubric - DOCUMENTATION PENDING
      • getTypeId

        public Long getTypeId()
        Specified by:
        getTypeId in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • setTypeId

        public void setTypeId​(Long typeId)
        Specified by:
        setTypeId in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • getType

        public org.sakaiproject.tool.assessment.data.ifc.shared.TypeIfc getType()
        Specified by:
        getType in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • setType

        public void setType​(org.sakaiproject.tool.assessment.data.ifc.shared.TypeIfc type)
        Specified by:
        setType in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • getIntellectualPropertyId

        public Long getIntellectualPropertyId()
        DOCUMENTATION PENDING
        Specified by:
        getIntellectualPropertyId in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Returns:
        DOCUMENTATION PENDING
      • setIntellectualPropertyId

        public void setIntellectualPropertyId​(Long intellectualPropertyId)
        DOCUMENTATION PENDING
        Specified by:
        setIntellectualPropertyId in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Parameters:
        intellectualProperty - DOCUMENTATION PENDING
      • setIntellectualProperty

        public void setIntellectualProperty​(String intellectualProperty)
      • getOrganizationName

        public String getOrganizationName()
        DOCUMENTATION PENDING
        Specified by:
        getOrganizationName in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Returns:
        DOCUMENTATION PENDING
      • setOrganizationName

        public void setOrganizationName​(String organizationName)
        DOCUMENTATION PENDING
        Specified by:
        setOrganizationName in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Parameters:
        organizationName - DOCUMENTATION PENDING
      • getQuestionPoolItems

        public Set getQuestionPoolItems()
        Specified by:
        getQuestionPoolItems in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • setQuestionPoolItems

        public void setQuestionPoolItems​(Set questionPoolItems)
        Specified by:
        setQuestionPoolItems in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • addQuestionPoolItem

        public void addQuestionPoolItem​(org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolItemIfc questionPoolItem)
        Specified by:
        addQuestionPoolItem in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • getQuestions

        public Collection getQuestions()
        DOCUMENTATION PENDING
        Specified by:
        getQuestions in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.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 org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Parameters:
        newItems - DOCUMENTATION PENDING
      • getQuestionSize

        public Integer getQuestionSize()
        Specified by:
        getQuestionSize in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • setSubPoolSize

        public void setSubPoolSize​(Long subPoolSize)
        Specified by:
        setSubPoolSize in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • getSubPoolSize

        public Long getSubPoolSize()
        Specified by:
        getSubPoolSize in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
      • clone

        public Object clone()
        Specified by:
        clone in interface org.sakaiproject.tool.assessment.data.ifc.questionpool.QuestionPoolDataIfc
        Overrides:
        clone in class Object
      • getQuestionPoolItemSize

        public Integer getQuestionPoolItemSize()