org.sakaiproject.tool.assessment.ui.bean.author
Class ItemConfigBean

java.lang.Object
  extended by org.sakaiproject.tool.assessment.ui.bean.author.ItemConfigBean
All Implemented Interfaces:
Serializable

public class ItemConfigBean
extends Object
implements Serializable

Description: Describes global item settings for authoring. Describes what item types the will be supported. To change, modify the itemConfig properties in the faces.config file. Also developers could add an administrative configuration later.

See Also:
Serialized Form

Constructor Summary
ItemConfigBean()
           
 
Method Summary
 ArrayList getItemTypeSelectList()
          Derived property.
 boolean isSelectFromQuestionBank()
          Can we select items from a question bank?
 boolean isSelectFromQuestionPool()
          Can we select items from a question pool?
 boolean isShowAllMultipleChoice()
          Should we show all multiple choice type question?
 boolean isShowAudio()
          Should we show audio upload question?
 boolean isShowEssay()
          Should we show short answer/essay question?
 boolean isShowFileUpload()
          Should we show file upload question?
 boolean isShowFillInNumeric()
          Should we show survey question?
 boolean isShowFillInTheBlank()
          Should we show fill in the blank question?
 boolean isShowMatching()
          Should we show matching question?
 boolean isShowMatrixSurvey()
           
 boolean isShowMultipleChoiceMultipleCorrect()
          Should we show multiple choice multiple correct question?
 boolean isShowMultipleChoiceSingleCorrect()
          Should we show multiple choice single correct question?
 boolean isShowSurvey()
          Should we show survey question?
 boolean isShowTrueFalse()
           
 void setSelectFromQuestionBank(boolean selectFromQuestionBank)
          Set whether we can select items from a question bank.
 void setSelectFromQuestionPool(boolean selectFromQuestionPool)
          Set whether we can select items from a question pool.
 void setShowAudio(boolean showAudio)
          Set whether audio recording should be shown.
 void setShowEssay(boolean showEssay)
          Set whether essay/short answer should be shown.
 void setShowFileUpload(boolean showFileUpload)
          Set whether file upload should be shown.
 void setShowFillInNumeric(boolean showFillInNumeric)
          Set whether fill in numeric should be shown.
 void setShowFillInTheBlank(boolean showFillInTheBlank)
          Set whether fill in the blank should be shown.
 void setShowMatching(boolean showMatching)
          Set whether matching should be shown.
 void setShowMatrixSurvey(boolean showMatrixSurvey)
           
 void setShowMultipleChoiceMultipleCorrect(boolean showMultipleChoiceMultipleCorrect)
          Set whether multiple choice multiple correct should be shown.
 void setShowMultipleChoiceSingleCorrect(boolean showMultipleChoiceSingleCorrect)
          Set whether multiple choice single correct should be shown.
 void setShowSurvey(boolean showSurvey)
          Set whether survey should be shown.
 void setShowTrueFalse(boolean showTrueFalse)
          Set whether we show true/false question.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemConfigBean

public ItemConfigBean()
Method Detail

isShowFileUpload

public boolean isShowFileUpload()
Should we show file upload question?

Returns:
if true

setShowFileUpload

public void setShowFileUpload(boolean showFileUpload)
Set whether file upload should be shown.

Parameters:
showFileUpload - if this type should be shown

isShowEssay

public boolean isShowEssay()
Should we show short answer/essay question?

Returns:
if true

setShowEssay

public void setShowEssay(boolean showEssay)
Set whether essay/short answer should be shown.

Parameters:
showEssay - if this type should be shown

isShowAudio

public boolean isShowAudio()
Should we show audio upload question?

Returns:
if true

setShowAudio

public void setShowAudio(boolean showAudio)
Set whether audio recording should be shown.

Parameters:
showAudio - if this type should be shown

isShowMatching

public boolean isShowMatching()
Should we show matching question?

Returns:
if true

setShowMatching

public void setShowMatching(boolean showMatching)
Set whether matching should be shown.

Parameters:
showMatching - if this type should be shown

isShowTrueFalse

public boolean isShowTrueFalse()
Returns:
if true

setShowTrueFalse

public void setShowTrueFalse(boolean showTrueFalse)
Set whether we show true/false question.

Parameters:
showTrueFalse - if this type should be shown

isShowAllMultipleChoice

public boolean isShowAllMultipleChoice()
Should we show all multiple choice type question? That means both multiple correct and single correct.

Returns:
if true if this type should be shown

isShowMultipleChoiceSingleCorrect

public boolean isShowMultipleChoiceSingleCorrect()
Should we show multiple choice single correct question?

Returns:
if true

setShowMultipleChoiceSingleCorrect

public void setShowMultipleChoiceSingleCorrect(boolean showMultipleChoiceSingleCorrect)
Set whether multiple choice single correct should be shown.

Parameters:
showMultipleChoiceSingleCorrect - if this type should be shown

isShowMultipleChoiceMultipleCorrect

public boolean isShowMultipleChoiceMultipleCorrect()
Should we show multiple choice multiple correct question?

Returns:
if true

setShowMultipleChoiceMultipleCorrect

public void setShowMultipleChoiceMultipleCorrect(boolean showMultipleChoiceMultipleCorrect)
Set whether multiple choice multiple correct should be shown.

Parameters:
showMultipleChoiceMultipleCorrect - if this type should be shown

isShowFillInTheBlank

public boolean isShowFillInTheBlank()
Should we show fill in the blank question?

Returns:
if true

setShowFillInTheBlank

public void setShowFillInTheBlank(boolean showFillInTheBlank)
Set whether fill in the blank should be shown.

Parameters:
showFillInTheBlank - if this type should be shown

isShowFillInNumeric

public boolean isShowFillInNumeric()
Should we show survey question?

Returns:
if true

setShowFillInNumeric

public void setShowFillInNumeric(boolean showFillInNumeric)
Set whether fill in numeric should be shown.

Parameters:
showFillInNumeric - if this type should be shown

isShowSurvey

public boolean isShowSurvey()
Should we show survey question?

Returns:
if true

setShowSurvey

public void setShowSurvey(boolean showSurvey)
Set whether survey should be shown.

Parameters:
showSurvey - if this type should be shown

isShowMatrixSurvey

public boolean isShowMatrixSurvey()

setShowMatrixSurvey

public void setShowMatrixSurvey(boolean showMatrixSurvey)

getItemTypeSelectList

public ArrayList getItemTypeSelectList()
Derived property. Get arraylist of item type SelectItems. We are not lazy loading this so that we can change these dynamically. Most are being injected from the faces-config, but whether we select from question pools is always dynamic.

Returns:
ArrayList of model SelectItems

isSelectFromQuestionPool

public boolean isSelectFromQuestionPool()
Can we select items from a question pool? If we are in question pools we cannot select items from pool. If we are not in question pools we can select items from pool.

Returns:
if we can select from question pool.

setSelectFromQuestionPool

public void setSelectFromQuestionPool(boolean selectFromQuestionPool)
Set whether we can select items from a question pool. If we are in question pools we cannot select items from pool. If we are not in question pools we can select items from pool.


isSelectFromQuestionBank

public boolean isSelectFromQuestionBank()
Can we select items from a question bank?

Returns:
if we can select from question pool.

setSelectFromQuestionBank

public void setSelectFromQuestionBank(boolean selectFromQuestionBank)
Set whether we can select items from a question bank.



Copyright © 2005-2012 Sakai Project. All Rights Reserved.