org.sakaiproject.tool.assessment.ui.bean.questionpool
Class QuestionPoolBean

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.ui.bean.questionpool.QuestionPoolBean
All Implemented Interfaces:
Serializable

public class QuestionPoolBean
extends Object
implements Serializable

This holds question pool information. Used to be org.navigoproject.ui.web.form.questionpool.QuestionPoolForm

Author:
Rachel Gollub , Lydia Li $Id: QuestionPoolBean.java 6717 2006-03-16 02:14:38Z daisyf@stanford.edu $
See Also:
Serialized Form

Constructor Summary
QuestionPoolBean()
          Creates a new QuestionPoolBean object.
 
Method Summary
 String addPool()
           
 void buildTree()
           
 String cancelImport()
           
 String confirmRemovePool()
           
 String copyPool()
           
 String copyQuestion()
           
 String doit()
           
 String editPool()
           
 String exportPool()
           
 String exportQuestion()
           
 String getActionType()
           
 String getAddOrEdit()
           
 String getAddPoolSource()
           
 ArrayList getAllItems()
           
 boolean getAllItemsSelected()
           
 boolean getAllPoolsSelected()
          DOCUMENTATION PENDING
 String getAssessmentID()
           
 void getCheckedPool()
           
 void getCheckedQuestion()
           
 QuestionPoolDataModel getCopyQpools()
           
 ItemFacade getCurrentItem()
           
 String getCurrentItemId()
           
 QuestionPoolDataBean getCurrentPool()
          DOCUMENTATION PENDING
 String getDeletePoolSource()
           
 String[] getDestItems()
          DOCUMENTATION PENDING
 String getDestPool()
          DOCUMENTATION PENDING
 String[] getDestPools()
          DOCUMENTATION PENDING
 org.apache.struts.upload.FormFile getFilename()
          DOCUMENTATION PENDING
 int getHtmlIdLevel()
          DOCUMENTATION PENDING
 boolean getImportToAuthoring()
           
 List getItemsToDelete()
           
 ItemFacade getItemToPreview()
           
 QuestionPoolDataModel getMoveQpools()
           
 String getName()
          DOCUMENTATION PENDING
 String getOutcome()
           
 String getOutcomeEdit()
           
 QuestionPoolDataBean getParentPool()
          DOCUMENTATION PENDING
 int getParentPoolSize()
           
 Object[] getPoolArray()
          DOCUMENTATION PENDING
 List getPoolListSelectItems()
          DOCUMENTATION PENDING
 Collection getPools()
          DOCUMENTATION PENDING
 List getPoolsToDelete()
          DOCUMENTATION PENDING
 QuestionPoolDataModel getQpools()
           
 String getQuestionType()
          DOCUMENTATION PENDING
 boolean getRootPoolSelected()
          DOCUMENTATION PENDING
 String[] getSearchByTypes()
          DOCUMENTATION PENDING
 String getSearchQkeywords()
          DOCUMENTATION PENDING
 String getSearchQobj()
          DOCUMENTATION PENDING
 String getSearchQrubrics()
          DOCUMENTATION PENDING
 String getSearchQtext()
          DOCUMENTATION PENDING
 String getSelectedAssessment()
           
 String[] getSelectedPools()
          DOCUMENTATION PENDING
 String[] getSelectedQuestions()
          DOCUMENTATION PENDING
 String getSelectedSection()
           
 boolean getSelfOrDescendant()
           
 boolean getSortAscending()
           
 boolean getSortCopyPoolAscending()
           
 String getSortCopyPoolProperty()
           
 QuestionPoolDataModel getSortedSubqpools()
           
 boolean getSortMovePoolAscending()
           
 String getSortMovePoolProperty()
           
 String getSortProperty()
           
 boolean getSortSubPoolAscending()
           
 String getSortSubPoolProperty()
           
 Tree getTree()
          DOCUMENTATION PENDING
 boolean hasItemInDestPool(String sourceItemId, String destId)
           
 String importPool()
           
 String importQuestion()
           
 String movePool()
           
 String moveQuestion()
           
 String previewQuestion()
           
 void previewQuestion(ActionEvent event)
           
 String removePool()
           
 String removeQuestionsFromPool()
           
 void resetFields()
          DOCUMENTATION PENDING
 String returnToAuthoring()
           
 String selectQuestionType()
           
 void setActionType(String pstr)
           
 void setAddOrEdit(String param)
           
 void setAddPoolSource(String param)
           
 void setAllItems(ArrayList list)
           
 void setAllItemsSelected(boolean pallpools)
           
 void setAllPoolsSelected(boolean pallpools)
          DOCUMENTATION PENDING
 void setAssessmentID(String pstr)
           
 void setCurrentItem(ItemFacade param)
           
 void setCurrentItemId(String pstr)
           
 void setCurrentPool(QuestionPoolDataBean newPool)
          DOCUMENTATION PENDING
 void setDeletePoolSource(String param)
          set the outcome for doit()
 void setDestItems(String[] pPool)
          DOCUMENTATION PENDING
 void setDestPool(String pPool)
          DOCUMENTATION PENDING
 void setDestPools(String[] pPool)
          DOCUMENTATION PENDING
 void setFilename(org.apache.struts.upload.FormFile file)
          DOCUMENTATION PENDING
 void setHtmlIdLevel(int plevel)
          DOCUMENTATION PENDING
 void setImportToAuthoring(boolean pstr)
           
 void setItemsToDelete(List qpools)
          DOCUMENTATION PENDING
 void setItemToPreview(ItemFacade param)
           
 void setName(String newName)
          DOCUMENTATION PENDING
 void setOutcome(String param)
          set the outcome for doit()
 void setOutcomeEdit(String param)
          set the outcome for doit()
 void setParentPool(QuestionPoolDataBean newPool)
          DOCUMENTATION PENDING
 void setParentPoolSize(int n)
          DOCUMENTATION PENDING
 void setPools(Collection newPools)
          DOCUMENTATION PENDING
 void setPoolsToDelete(List qpools)
          DOCUMENTATION PENDING
 void setQuestionType(String newtype)
          DOCUMENTATION PENDING
 void setRootPoolSelected(boolean pallpools)
          DOCUMENTATION PENDING
 void setSearchByTypes(String[] pstr)
          DOCUMENTATION PENDING
 void setSearchQkeywords(String pstr)
          DOCUMENTATION PENDING
 void setSearchQobj(String pstr)
          DOCUMENTATION PENDING
 void setSearchQrubrics(String pstr)
          DOCUMENTATION PENDING
 void setSearchQtext(String pstr)
          DOCUMENTATION PENDING
 void setSelectedAssessment(String pstr)
           
 void setSelectedPools(String[] pPool)
          DOCUMENTATION PENDING
 void setSelectedQuestions(String[] pPool)
          DOCUMENTATION PENDING
 void setSelectedSection(String pstr)
           
 void setSortAscending(boolean pstr)
           
 void setSortCopyPoolAscending(boolean pstr)
           
 void setSortCopyPoolProperty(String newProperty)
           
 void setSortedSubqpools(Collection spools)
           
 void setSortMovePoolAscending(boolean pstr)
           
 void setSortMovePoolProperty(String newProperty)
           
 void setSortProperty(String newProperty)
           
 void setSortSubPoolAscending(boolean pstr)
           
 void setSortSubPoolProperty(String newProperty)
           
 void setTree(Tree newtree)
          DOCUMENTATION PENDING
 String sortByColumnHeader()
           
 String sortCopyPoolByColumnHeader()
           
 String sortMovePoolByColumnHeader()
           
 void sortQpoolsByProperty(ArrayList sortedList, String sortProperty, boolean sortAscending)
           
 String sortSubPoolByColumnHeader()
           
 void sortSubqpoolsByProperty(ArrayList sortedList, String sortProperty, boolean sortAscending)
           
 String startCopyPool()
           
 String startCopyQuestion()
           
 void startCreatePool()
           
 void startEditPool()
           
 void startEditPoolAgain(String qpid)
           
 String startMovePool()
           
 String startMoveQuestion()
           
 String startRemovePool()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuestionPoolBean

public QuestionPoolBean()
Creates a new QuestionPoolBean object.

Method Detail

getQpools

public QuestionPoolDataModel getQpools()

getCopyQpools

public QuestionPoolDataModel getCopyQpools()

getMoveQpools

public QuestionPoolDataModel getMoveQpools()

getSortedSubqpools

public QuestionPoolDataModel getSortedSubqpools()

sortSubqpoolsByProperty

public void sortSubqpoolsByProperty(ArrayList sortedList,
                                    String sortProperty,
                                    boolean sortAscending)

sortQpoolsByProperty

public void sortQpoolsByProperty(ArrayList sortedList,
                                 String sortProperty,
                                 boolean sortAscending)

setAllItems

public void setAllItems(ArrayList list)

getAllItems

public ArrayList getAllItems()

setSortedSubqpools

public void setSortedSubqpools(Collection spools)

buildTree

public void buildTree()

getPoolListSelectItems

public List getPoolListSelectItems()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setItemsToDelete

public void setItemsToDelete(List qpools)
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

getItemsToDelete

public List getItemsToDelete()

setPoolsToDelete

public void setPoolsToDelete(List qpools)
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

getPoolsToDelete

public List getPoolsToDelete()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

getTree

public Tree getTree()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setTree

public void setTree(Tree newtree)
DOCUMENTATION PENDING


getPools

public Collection getPools()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

getPoolArray

public Object[] getPoolArray()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setPools

public void setPools(Collection newPools)
DOCUMENTATION PENDING

Parameters:
newPools - DOCUMENTATION PENDING

setQuestionType

public void setQuestionType(String newtype)
DOCUMENTATION PENDING

Parameters:
newtype - DOCUMENTATION PENDING

getQuestionType

public String getQuestionType()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setSearchQtext

public void setSearchQtext(String pstr)
DOCUMENTATION PENDING


getSearchQtext

public String getSearchQtext()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setSearchQkeywords

public void setSearchQkeywords(String pstr)
DOCUMENTATION PENDING


getSearchQkeywords

public String getSearchQkeywords()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setSearchQobj

public void setSearchQobj(String pstr)
DOCUMENTATION PENDING


getSearchQobj

public String getSearchQobj()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setSearchQrubrics

public void setSearchQrubrics(String pstr)
DOCUMENTATION PENDING


getSearchQrubrics

public String getSearchQrubrics()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

getCurrentItemId

public String getCurrentItemId()

setCurrentItemId

public void setCurrentItemId(String pstr)

getCurrentItem

public ItemFacade getCurrentItem()

setCurrentItem

public void setCurrentItem(ItemFacade param)

getItemToPreview

public ItemFacade getItemToPreview()

setItemToPreview

public void setItemToPreview(ItemFacade param)

getCurrentPool

public QuestionPoolDataBean getCurrentPool()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setCurrentPool

public void setCurrentPool(QuestionPoolDataBean newPool)
DOCUMENTATION PENDING

Parameters:
newPool - DOCUMENTATION PENDING

getParentPool

public QuestionPoolDataBean getParentPool()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setParentPool

public void setParentPool(QuestionPoolDataBean newPool)
DOCUMENTATION PENDING

Parameters:
newPool - DOCUMENTATION PENDING

setParentPoolSize

public void setParentPoolSize(int n)
DOCUMENTATION PENDING


getParentPoolSize

public int getParentPoolSize()

getName

public String getName()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setName

public void setName(String newName)
DOCUMENTATION PENDING

Parameters:
newName - DOCUMENTATION PENDING

setRootPoolSelected

public void setRootPoolSelected(boolean pallpools)
DOCUMENTATION PENDING


getRootPoolSelected

public boolean getRootPoolSelected()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setAllPoolsSelected

public void setAllPoolsSelected(boolean pallpools)
DOCUMENTATION PENDING


setAllItemsSelected

public void setAllItemsSelected(boolean pallpools)

getAllItemsSelected

public boolean getAllItemsSelected()

getAllPoolsSelected

public boolean getAllPoolsSelected()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setDestPool

public void setDestPool(String pPool)
DOCUMENTATION PENDING

Parameters:
pPool - DOCUMENTATION PENDING

getDestPool

public String getDestPool()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setDestPools

public void setDestPools(String[] pPool)
DOCUMENTATION PENDING

Parameters:
pPool - DOCUMENTATION PENDING

getDestPools

public String[] getDestPools()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setDestItems

public void setDestItems(String[] pPool)
DOCUMENTATION PENDING

Parameters:
pPool - DOCUMENTATION PENDING

getDestItems

public String[] getDestItems()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setSearchByTypes

public void setSearchByTypes(String[] pstr)
DOCUMENTATION PENDING


getSearchByTypes

public String[] getSearchByTypes()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

getAssessmentID

public String getAssessmentID()

setAssessmentID

public void setAssessmentID(String pstr)

getSelectedAssessment

public String getSelectedAssessment()

setSelectedAssessment

public void setSelectedAssessment(String pstr)

getSelectedSection

public String getSelectedSection()

setSelectedSection

public void setSelectedSection(String pstr)

getImportToAuthoring

public boolean getImportToAuthoring()

setImportToAuthoring

public void setImportToAuthoring(boolean pstr)

getSortAscending

public boolean getSortAscending()

setSortAscending

public void setSortAscending(boolean pstr)

getSortCopyPoolAscending

public boolean getSortCopyPoolAscending()

setSortCopyPoolAscending

public void setSortCopyPoolAscending(boolean pstr)

getSortMovePoolAscending

public boolean getSortMovePoolAscending()

setSortMovePoolAscending

public void setSortMovePoolAscending(boolean pstr)

getSortSubPoolAscending

public boolean getSortSubPoolAscending()

setSortSubPoolAscending

public void setSortSubPoolAscending(boolean pstr)

getActionType

public String getActionType()

setActionType

public void setActionType(String pstr)

getSortProperty

public String getSortProperty()

setSortProperty

public void setSortProperty(String newProperty)

getSortCopyPoolProperty

public String getSortCopyPoolProperty()

setSortCopyPoolProperty

public void setSortCopyPoolProperty(String newProperty)

getSortMovePoolProperty

public String getSortMovePoolProperty()

setSortMovePoolProperty

public void setSortMovePoolProperty(String newProperty)

getSortSubPoolProperty

public String getSortSubPoolProperty()

setSortSubPoolProperty

public void setSortSubPoolProperty(String newProperty)

getAddOrEdit

public String getAddOrEdit()

setAddOrEdit

public void setAddOrEdit(String param)
Parameters:
param -

getOutcome

public String getOutcome()

setOutcome

public void setOutcome(String param)
set the outcome for doit()

Parameters:
param -

getOutcomeEdit

public String getOutcomeEdit()

setOutcomeEdit

public void setOutcomeEdit(String param)
set the outcome for doit()

Parameters:
param -

getDeletePoolSource

public String getDeletePoolSource()

setDeletePoolSource

public void setDeletePoolSource(String param)
set the outcome for doit()

Parameters:
param -

getAddPoolSource

public String getAddPoolSource()

setAddPoolSource

public void setAddPoolSource(String param)

setSelectedQuestions

public void setSelectedQuestions(String[] pPool)
DOCUMENTATION PENDING

Parameters:
pPool - DOCUMENTATION PENDING

setSelectedPools

public void setSelectedPools(String[] pPool)
DOCUMENTATION PENDING

Parameters:
pPool - DOCUMENTATION PENDING

getSelectedQuestions

public String[] getSelectedQuestions()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

getSelectedPools

public String[] getSelectedPools()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setFilename

public void setFilename(org.apache.struts.upload.FormFile file)
DOCUMENTATION PENDING

Parameters:
file - DOCUMENTATION PENDING

getFilename

public org.apache.struts.upload.FormFile getFilename()
DOCUMENTATION PENDING


getHtmlIdLevel

public int getHtmlIdLevel()
DOCUMENTATION PENDING


setHtmlIdLevel

public void setHtmlIdLevel(int plevel)
DOCUMENTATION PENDING


resetFields

public void resetFields()
DOCUMENTATION PENDING


startCopyQuestion

public String startCopyQuestion()

startMoveQuestion

public String startMoveQuestion()

moveQuestion

public String moveQuestion()

hasItemInDestPool

public boolean hasItemInDestPool(String sourceItemId,
                                 String destId)

copyQuestion

public String copyQuestion()

removeQuestionsFromPool

public String removeQuestionsFromPool()

getCheckedQuestion

public void getCheckedQuestion()

startCopyPool

public String startCopyPool()

startMovePool

public String startMovePool()

getCheckedPool

public void getCheckedPool()

copyPool

public String copyPool()

movePool

public String movePool()

addPool

public String addPool()

startCreatePool

public void startCreatePool()

confirmRemovePool

public String confirmRemovePool()

startRemovePool

public String startRemovePool()

removePool

public String removePool()

importPool

public String importPool()

importQuestion

public String importQuestion()

exportPool

public String exportPool()

exportQuestion

public String exportQuestion()

returnToAuthoring

public String returnToAuthoring()

editPool

public String editPool()

startEditPool

public void startEditPool()

startEditPoolAgain

public void startEditPoolAgain(String qpid)

selectQuestionType

public String selectQuestionType()

sortByColumnHeader

public String sortByColumnHeader()

sortCopyPoolByColumnHeader

public String sortCopyPoolByColumnHeader()

sortMovePoolByColumnHeader

public String sortMovePoolByColumnHeader()

sortSubPoolByColumnHeader

public String sortSubPoolByColumnHeader()

doit

public String doit()

previewQuestion

public void previewQuestion(ActionEvent event)

previewQuestion

public String previewQuestion()

cancelImport

public String cancelImport()

getSelfOrDescendant

public boolean getSelfOrDescendant()