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

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

public class ItemAuthorBean
extends Object
implements Serializable

Backing bean for Item Authoring, uses ItemBean for UI $Id: ItemAuthorBean.java 104268 2012-01-31 22:08:26Z ktsao@stanford.edu $

See Also:
Serialized Form

Field Summary
static String FROM_ASSESSMENT
           
static String FROM_QUESTIONPOOL
           
 
Constructor Summary
ItemAuthorBean()
          Creates a new ItemAuthorBean object.
 
Method Summary
 String addAttachmentsRedirect()
           
 String confirmDeleteItem()
           
 String deleteItem()
          delete specified Item
 String doit()
           
 String[] getAnswerFeedbackList()
           
 String getAssessmentID()
           
 ArrayList getAssessmentSectionIdents()
           
 String getAssessTitle()
           
 List getAttachmentList()
           
 boolean[] getChoiceCorrectArray()
          This is an array of correct/not correct flags
 ItemBean getCurrentItem()
           
 String getCurrentSection()
           
 boolean getHasAttachment()
           
 String getInsertPosition()
           
 String getInsertToSection()
           
 String getInsertType()
           
 ItemDataIfc getItem()
           
 String getItemId()
           
 String getItemNo()
           
 ItemFacade getItemToDelete()
           
 ItemFacade getItemToPreview()
           
 String getItemType()
           
 String getItemTypeString()
           
 String getMatch(int n)
          Maching only.
 String getMatchAnswer(int n)
          Corresponding answer number for nth match
 String[] getMatchAnswers()
          Corresponding answer number list ordered for match
 int[] getMatchCounter()
          get 1, 2, 3... for each match
 String[] getMatches()
          Maching only.
 String getMatchFeedback(int n)
          feedback for nth match
 String[] getMatchFeedbackList()
          array of matching feeback
 String getMaxNumberRecordings()
          for audio recording
 String getMaxRecordingTime()
          for audio recording
 String getOutcome()
           
 ArrayList getPoolSelectList()
          Derived property.
 String getQpoolId()
           
 HashMap getResourceHash()
           
 String getScaleName()
          for survey
 String getSectionIdent()
           
 Map getSectionList()
          Returns a generic Map of section options (for use by helpers that won't be in the same class loader and would thus get class cast issues from using SelectItem)
 ArrayList getSectionSelectList()
           
 ArrayList getSelectRelativeWidthList()
           
 String getShowFeedbackAuthoring()
           
 String getShowMetadata()
           
 String getShowOverallFeedback()
           
 String getShowQuestionLevelFeedback()
           
 String getShowSelectionLevelFeedback()
           
 String getTarget()
           
 ArrayList getTrueFalseAnswerSelectList()
          Derived property.
 boolean isCorrectChoice(int n)
          is the nth choice correct?
 String print()
          Launch the print helper
 void selectItemType(javax.faces.event.ValueChangeEvent event)
           
 void setAnswerFeedbackList(String[] answerFeedbackList)
           
 void setAssessmentID(String string)
           
 void setAssessmentSectionIdents(ArrayList list)
           
 void setAssessTitle(String string)
           
 void setAttachmentList(List attachmentList)
           
 void setChoiceCorrectArray(boolean[] choiceCorrectArray)
          set array of correct/not correct flags
 void setCorrectChoice(int n, boolean correctChoice)
          set the nth choice correct?
 void setCurrentItem(ItemBean item)
           
 void setCurrentSection(String string)
           
 void setInsertPosition(String string)
           
 void setInsertToSection(String string)
           
 void setInsertType(String string)
           
 void setItem(ItemDataIfc item)
           
 void setItemAttachment()
           
 void setItemId(String string)
           
 void setItemNo(String string)
           
 void setItemToDelete(ItemFacade param)
           
 void setItemToPreview(ItemFacade param)
           
 void setItemType(String string)
           
 void setItemTypeString(String string)
           
 void setMatch(int n, String match)
          Maching only.
 void setMatchAnswer(int n, String matchAnswer)
          set answer number for nth match
 void setMatchAnswers(String[] matchAnswers)
          Corresponding answer number list ordered for match
 void setMatches(String[] matches)
          Maching only.
 void setMatchFeedback(int n, String matchFeedback)
          set feedback for nth match
 void setMatchFeedbackList(String[] matchFeedbackList)
          set array of matching feeback
 void setMaxNumberRecordings(String maxNumberRecordings)
          set audio recording maximum attempts
 void setMaxRecordingTime(String maxRecordingTime)
          for audio recording
 void setOutcome(String param)
          set the survey scale
 void setQpoolId(String string)
           
 void setResourceHash(HashMap resourceHash)
           
 void setScaleName(String scaleName)
          set the survey scale
 void setSectionIdent(String string)
           
 void setShowFeedbackAuthoring(String string)
           
 void setShowMetadata(String string)
           
 void setShowOverallFeedback(String string)
           
 void setShowQuestionLevelFeedback(String string)
           
 void setShowSelectionLevelFeedback(String string)
           
 void setTarget(String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FROM_QUESTIONPOOL

public static final String FROM_QUESTIONPOOL
See Also:
Constant Field Values

FROM_ASSESSMENT

public static final String FROM_ASSESSMENT
See Also:
Constant Field Values
Constructor Detail

ItemAuthorBean

public ItemAuthorBean()
Creates a new ItemAuthorBean object.

Method Detail

setItem

public void setItem(ItemDataIfc item)

getItem

public ItemDataIfc getItem()

setCurrentItem

public void setCurrentItem(ItemBean item)

getCurrentItem

public ItemBean getCurrentItem()

getAssessTitle

public String getAssessTitle()
Returns:

setAssessTitle

public void setAssessTitle(String string)
Parameters:
string -

getSectionIdent

public String getSectionIdent()
Returns:

setSectionIdent

public void setSectionIdent(String string)
Parameters:
string -

getAssessmentSectionIdents

public ArrayList getAssessmentSectionIdents()
Returns:

setAssessmentSectionIdents

public void setAssessmentSectionIdents(ArrayList list)
Parameters:
list -

getInsertPosition

public String getInsertPosition()
Returns:

setInsertPosition

public void setInsertPosition(String string)
Parameters:
string -

getInsertToSection

public String getInsertToSection()
Returns:

setInsertToSection

public void setInsertToSection(String string)
Parameters:
string -

getInsertType

public String getInsertType()
Returns:

setInsertType

public void setInsertType(String string)
Parameters:
string -

getAssessmentID

public String getAssessmentID()
Returns:

setAssessmentID

public void setAssessmentID(String string)
Parameters:
string -

getCurrentSection

public String getCurrentSection()
Returns:

setCurrentSection

public void setCurrentSection(String string)
Parameters:
string -

getItemNo

public String getItemNo()
Returns:

setItemNo

public void setItemNo(String string)
Parameters:
string -

getItemId

public String getItemId()

setItemId

public void setItemId(String string)

getItemType

public String getItemType()
Returns:

setItemType

public void setItemType(String string)
Parameters:
string -

getItemTypeString

public String getItemTypeString()
Returns:

setItemTypeString

public void setItemTypeString(String string)
Parameters:
string -

getShowMetadata

public String getShowMetadata()
Returns:

setShowMetadata

public void setShowMetadata(String string)
Parameters:
string -

getShowOverallFeedback

public String getShowOverallFeedback()
Returns:

getShowQuestionLevelFeedback

public String getShowQuestionLevelFeedback()
Returns:

getShowSelectionLevelFeedback

public String getShowSelectionLevelFeedback()
Returns:

setShowOverallFeedback

public void setShowOverallFeedback(String string)
Parameters:
string -

setShowQuestionLevelFeedback

public void setShowQuestionLevelFeedback(String string)
Parameters:
string -

setShowSelectionLevelFeedback

public void setShowSelectionLevelFeedback(String string)
Parameters:
string -

setQpoolId

public void setQpoolId(String string)
Parameters:
string -

getQpoolId

public String getQpoolId()
Returns:

setItemToDelete

public void setItemToDelete(ItemFacade param)
Parameters:
string -

getItemToDelete

public ItemFacade getItemToDelete()
Returns:

setItemToPreview

public void setItemToPreview(ItemFacade param)
Parameters:
string -

getItemToPreview

public ItemFacade getItemToPreview()
Returns:

setTarget

public void setTarget(String string)
Parameters:
string -

getTarget

public String getTarget()
Returns:

getChoiceCorrectArray

public boolean[] getChoiceCorrectArray()
This is an array of correct/not correct flags

Returns:
the array of correct/not correct flags

setChoiceCorrectArray

public void setChoiceCorrectArray(boolean[] choiceCorrectArray)
set array of correct/not correct flags

Parameters:
choiceCorrectArray - of correct/not correct flags

isCorrectChoice

public boolean isCorrectChoice(int n)
is the nth choice correct?

Parameters:
n -
Returns:

setCorrectChoice

public void setCorrectChoice(int n,
                             boolean correctChoice)
set the nth choice correct?

Parameters:
n -
correctChoice - true if it is

getMaxRecordingTime

public String getMaxRecordingTime()
for audio recording

Returns:
maximum time for recording

setMaxRecordingTime

public void setMaxRecordingTime(String maxRecordingTime)
for audio recording

Parameters:
maxRecordingTime - maximum time for recording

getMaxNumberRecordings

public String getMaxNumberRecordings()
for audio recording

Returns:
maximum attempts

setMaxNumberRecordings

public void setMaxNumberRecordings(String maxNumberRecordings)
set audio recording maximum attempts

Parameters:
maxNumberRecordings -

getScaleName

public String getScaleName()
for survey

Returns:
the scale

setScaleName

public void setScaleName(String scaleName)
set the survey scale

Parameters:
scaleName -

getOutcome

public String getOutcome()

setOutcome

public void setOutcome(String param)
set the survey scale

Parameters:
param -

getMatches

public String[] getMatches()
Maching only. Get an array of match Strings.

Returns:
array of match Strings.

setMatches

public void setMatches(String[] matches)
Maching only. Set array of match Strings.

Parameters:
matches - array of match Strings.

getMatch

public String getMatch(int n)
Maching only. Get the nth match String.

Parameters:
n -
Returns:
the nth match String

setMatch

public void setMatch(int n,
                     String match)
Maching only. Set the nth match String.

Parameters:
n -
match -

getMatchCounter

public int[] getMatchCounter()
get 1, 2, 3... for each match

Parameters:
n -
Returns:

getTrueFalseAnswerSelectList

public ArrayList getTrueFalseAnswerSelectList()
Derived property.

Returns:
ArrayList of model SelectItems

getSectionSelectList

public ArrayList getSectionSelectList()

getSelectRelativeWidthList

public ArrayList getSelectRelativeWidthList()

getSectionList

public Map getSectionList()
Returns a generic Map of section options (for use by helpers that won't be in the same class loader and would thus get class cast issues from using SelectItem)


getPoolSelectList

public ArrayList getPoolSelectList()
Derived property.

Returns:
ArrayList of model SelectItems

getMatchAnswers

public String[] getMatchAnswers()
Corresponding answer number list ordered for match

Returns:
answer number

setMatchAnswers

public void setMatchAnswers(String[] matchAnswers)
Corresponding answer number list ordered for match

Parameters:
matchAnswers - answer number list ordered for match

getMatchAnswer

public String getMatchAnswer(int n)
Corresponding answer number for nth match

Parameters:
n -
Returns:

setMatchAnswer

public void setMatchAnswer(int n,
                           String matchAnswer)
set answer number for nth match

Parameters:
n -
matchAnswer -

getMatchFeedback

public String getMatchFeedback(int n)
feedback for nth match

Parameters:
n -
Returns:
feedback for nth match

setMatchFeedback

public void setMatchFeedback(int n,
                             String matchFeedback)
set feedback for nth match

Parameters:
n -
matchFeedback - feedback for match

getMatchFeedbackList

public String[] getMatchFeedbackList()
array of matching feeback

Returns:
array of matching feeback

setMatchFeedbackList

public void setMatchFeedbackList(String[] matchFeedbackList)
set array of matching feeback

Parameters:
matchFeedbackList - array of matching feeback

getAnswerFeedbackList

public String[] getAnswerFeedbackList()

setAnswerFeedbackList

public void setAnswerFeedbackList(String[] answerFeedbackList)

doit

public String doit()

print

public String print()
Launch the print helper


deleteItem

public String deleteItem()
delete specified Item


confirmDeleteItem

public String confirmDeleteItem()

selectItemType

public void selectItemType(javax.faces.event.ValueChangeEvent event)

getShowFeedbackAuthoring

public String getShowFeedbackAuthoring()
Returns:

setShowFeedbackAuthoring

public void setShowFeedbackAuthoring(String string)
Parameters:
string -

getAttachmentList

public List getAttachmentList()

setAttachmentList

public void setAttachmentList(List attachmentList)
Parameters:
list -

getHasAttachment

public boolean getHasAttachment()

addAttachmentsRedirect

public String addAttachmentsRedirect()

setItemAttachment

public void setItemAttachment()

getResourceHash

public HashMap getResourceHash()

setResourceHash

public void setResourceHash(HashMap resourceHash)


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