org.sakaiproject.tool.assessment.ui.bean.evaluation
Class TotalScoresBean

java.lang.Object
  extended by org.sakaiproject.tool.assessment.ui.bean.evaluation.TotalScoresBean
All Implemented Interfaces:
Serializable, org.sakaiproject.jsf.model.PhaseAware

public class TotalScoresBean
extends Object
implements Serializable, org.sakaiproject.jsf.model.PhaseAware

Description: class form for evaluating total scores

See Also:
Serialized Form

Field Summary
static String ALL_SECTIONS_SELECT_VALUE
           
static String ALL_SUBMISSIONS
           
static int CALLED_FROM_EXPORT_LISTENER
           
static int CALLED_FROM_HISTOGRAM_LISTENER
           
static int CALLED_FROM_HISTOGRAM_LISTENER_STUDENT
           
static int CALLED_FROM_NOTIFICATION_LISTENER
           
static int CALLED_FROM_QUESTION_SCORE_LISTENER
           
static int CALLED_FROM_SUBMISSION_STATUS_LISTENER
           
static int CALLED_FROM_TOTAL_SCORE_LISTENER
           
static String HIGHEST_SUBMISSION
           
static String LAST_SUBMISSION
           
static String RELEASED_SECTIONS_GROUPS_SELECT_VALUE
           
 
Constructor Summary
TotalScoresBean()
          Creates a new TotalScoresBean object.
 
Method Summary
 void clear(javax.faces.event.ActionEvent event)
           
 void endProcessUpdates()
           
 void endProcessValidators()
           
 ArrayList findMatchingAgents(String pattern)
           
 boolean getAcceptLateSubmission()
           
 String getAdjustmentTotalScore()
          get the adjustment to the total score
 Object[] getAgentArray()
          get agent resutls as an array
 String getAgentInitials()
          This is a read-only calculated property.
 Collection getAgents()
          get an agent result collection
 ArrayList getAllAgents()
          This will populate the SubmissionStatusBean with the data associated with the particular versioned assessment based on the publishedId.
 ArrayList getAllAgentsDirect()
           
 String getAllSubmissions()
          Is this an all submissions or, the highest, or the largest Scoring option from assessment Settings page
 String getAnonymous()
          Is this anonymous grading?
 HashMap getAnsweredItems()
          This returns a map of which items actually have answers.
 String getApplyToUngraded()
           
 HashMap getAssessmentGradingHash(Long publishedAssessmentId)
           
 ArrayList getAssessmentGradingList()
           
 String getAssessmentId()
          get assessment id
 String getAssessmentName()
          get assessment name
 List getAvailableSections()
           
 int getDataRows()
           
 String getDueDate()
          get the due date
 String getFirstItem()
          DOCUMENTATION PENDING
 int getFirstRow()
           
 String getGraderEmailInfo()
           
 String getGraderName()
           
 String getGroupName()
          Get the group name
 boolean getHasRandomDrawPart()
           
 boolean getIsAutoScored()
           
 boolean getIsTimedAssessment()
           
 String getLateHandling()
          get late handling
 int getMaxDisplayedRows()
           
 String getMaxScore()
          get the max score
 PublishedAssessmentData getPublishedAssessment()
           
 String getPublishedId()
          get published id
 RecordingData getRecordingData()
          encapsulates audio recording info
 boolean getReleaseToAnonymous()
           
 String getRoleSelection()
          DOCUMENTATION PENDING
 String getScoringOption()
           
 String getSearchString()
           
 List getSectionFilterSelectItems()
           
 String getSelectedSectionFilterValue()
           
 String getSortType()
          get sort type
 String getTotalPeople()
          get the total number of students for this assessment
 String getTotalScore()
           
 String getTotalScoreComments()
          get total score
 Map getUserIdMap(int calledFrom)
          calledFrom param added by gopalrc
protected  void init()
           
 boolean isMultipleSubmissionsAllowed()
           
 boolean isReleasedToGroups()
          added by gopalrc - jan 2008
 boolean isSortAscending()
          is scores table sorted in ascending order
 void resetFields()
          reset the fields
 void search(javax.faces.event.ActionEvent event)
           
 void setAcceptLateSubmission(boolean acceptLateSubmission)
           
 void setAccessControlProperties(PublishedAccessControl ac)
           
 void setAdjustmentTotalScore(String pAdjustmentTotalScore)
          set the adjustment to total score
 void setAgents(Collection pagents)
          set the agent collection
 void setAllAgents(ArrayList allAgents)
           
 void setAllSubmissions(String pallSubmissions)
          set whether all submissions are to be exposed
 void setAnonymous(String panonymous)
          Set switch if this is anonymous grading.
 void setAnsweredItems(HashMap newItems)
          This stores a map of which items actually have answers.
 void setApplyToUngraded(String applyToUngraded)
           
 void setAssessmentGradingHash(Long publishedAssessmentId)
           
 void setAssessmentGradingList(ArrayList assessmentGradingList)
           
 void setAssessmentId(String passessmentId)
          set assessment id
 void setAssessmentName(String passessmentName)
          set assessment name
 void setAvailableSections(List param)
           
 void setDueDate(String dateString)
          set due date string
 void setEvaluationModelProperties(PublishedEvaluationModel eval)
           
 void setFirstItem(String pfirstItem)
          DOCUMENTATION PENDING
 void setFirstRow(int firstRow)
           
 void setGraderEmailInfo(String graderEmailInfo)
           
 void setGraderName(String graderName)
           
 void setGroupName(String pgroupName)
          set the group name
 void setHasRandomDrawPart(boolean param)
           
 void setIsAutoScored(boolean isAutoScored)
           
 void setIsTimedAssessment(boolean isTimedAssessment)
           
 void setLateHandling(String plateHandling)
          set late handling
 void setMaxDisplayedRows(int maxDisplayedRows)
           
 void setMaxScore(String pmaxScore)
          set max score
 void setMultipleSubmissionsAllowed(boolean multipleSubmissionsAllowed)
           
 void setPublishedAssessment(PublishedAssessmentData publishedAssessment)
           
 void setPublishedId(String ppublishedId)
          set published id
 void setRecordingData(RecordingData rd)
          encapsulates audio recording info
 void setReleaseToAnonymous(boolean param)
           
 void setRoleSelection(String proleSelection)
          DOCUMENTATION PENDING
 void setScoringOption(String param)
           
 void setSearchString(String searchString)
           
 void setSectionFilterSelectItems(List param)
           
 void setSelectedSectionFilterValue(String param)
           
 void setSortAscending(boolean sortAscending)
           
 void setSortType(String psortType)
          set sort type, trigger property sorts
 void setTotalPeople(String ptotalPeople)
          set the total number of people
 void setTotalScore(String pTotalScore)
          set the total score
 void setTotalScoreComments(String pTotalScoreComments)
          set comments for totals score
 void setUserIdMap(Map userIdMap)
           
 void startRenderResponse()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RELEASED_SECTIONS_GROUPS_SELECT_VALUE

public static final String RELEASED_SECTIONS_GROUPS_SELECT_VALUE
See Also:
Constant Field Values

ALL_SECTIONS_SELECT_VALUE

public static final String ALL_SECTIONS_SELECT_VALUE
See Also:
Constant Field Values

ALL_SUBMISSIONS

public static final String ALL_SUBMISSIONS
See Also:
Constant Field Values

LAST_SUBMISSION

public static final String LAST_SUBMISSION
See Also:
Constant Field Values

HIGHEST_SUBMISSION

public static final String HIGHEST_SUBMISSION
See Also:
Constant Field Values

CALLED_FROM_SUBMISSION_STATUS_LISTENER

public static final int CALLED_FROM_SUBMISSION_STATUS_LISTENER
See Also:
Constant Field Values

CALLED_FROM_QUESTION_SCORE_LISTENER

public static final int CALLED_FROM_QUESTION_SCORE_LISTENER
See Also:
Constant Field Values

CALLED_FROM_TOTAL_SCORE_LISTENER

public static final int CALLED_FROM_TOTAL_SCORE_LISTENER
See Also:
Constant Field Values

CALLED_FROM_HISTOGRAM_LISTENER

public static final int CALLED_FROM_HISTOGRAM_LISTENER
See Also:
Constant Field Values

CALLED_FROM_HISTOGRAM_LISTENER_STUDENT

public static final int CALLED_FROM_HISTOGRAM_LISTENER_STUDENT
See Also:
Constant Field Values

CALLED_FROM_EXPORT_LISTENER

public static final int CALLED_FROM_EXPORT_LISTENER
See Also:
Constant Field Values

CALLED_FROM_NOTIFICATION_LISTENER

public static final int CALLED_FROM_NOTIFICATION_LISTENER
See Also:
Constant Field Values
Constructor Detail

TotalScoresBean

public TotalScoresBean()
Creates a new TotalScoresBean object.

Method Detail

init

protected void init()

endProcessValidators

public void endProcessValidators()
Specified by:
endProcessValidators in interface org.sakaiproject.jsf.model.PhaseAware

endProcessUpdates

public void endProcessUpdates()
Specified by:
endProcessUpdates in interface org.sakaiproject.jsf.model.PhaseAware

startRenderResponse

public void startRenderResponse()
Specified by:
startRenderResponse in interface org.sakaiproject.jsf.model.PhaseAware

getAssessmentName

public String getAssessmentName()
get assessment name

Returns:
the name

setAssessmentName

public void setAssessmentName(String passessmentName)
set assessment name

Parameters:
passessmentName - the name

getAssessmentId

public String getAssessmentId()
get assessment id

Returns:
the assessment id

setAssessmentId

public void setAssessmentId(String passessmentId)
set assessment id

Parameters:
passessmentId - the id

getPublishedId

public String getPublishedId()
get published id

Returns:
the published id

setPublishedId

public void setPublishedId(String ppublishedId)
set published id

Parameters:
passessmentId - the id

getAnonymous

public String getAnonymous()
Is this anonymous grading?

Returns:
anonymous grading? true or false

setAnonymous

public void setAnonymous(String panonymous)
Set switch if this is anonymous grading.

Parameters:
panonymous - anonymous grading? true or false

getGroupName

public String getGroupName()
Get the group name

Returns:
group name

setGroupName

public void setGroupName(String pgroupName)
set the group name

Parameters:
pgroupName - the name

getMaxScore

public String getMaxScore()
get the max score

Returns:
the max score

setMaxScore

public void setMaxScore(String pmaxScore)
set max score

Parameters:
pmaxScore - set the max score

getAgents

public Collection getAgents()
get an agent result collection

Returns:
the collection

setAgents

public void setAgents(Collection pagents)
set the agent collection

Parameters:
pagents - the collection

getAgentInitials

public String getAgentInitials()
This is a read-only calculated property.

Returns:
list of uppercase student initials

getAgentArray

public Object[] getAgentArray()
get agent resutls as an array

Returns:
the array

getTotalPeople

public String getTotalPeople()
get the total number of students for this assessment

Returns:
the number

setTotalPeople

public void setTotalPeople(String ptotalPeople)
set the total number of people

Parameters:
ptotalPeople - the total

getTotalScore

public String getTotalScore()
Returns:
the total score

setTotalScore

public void setTotalScore(String pTotalScore)
set the total score

Parameters:
pTotalScore - the total score

getAdjustmentTotalScore

public String getAdjustmentTotalScore()
get the adjustment to the total score

Returns:
the total score

setAdjustmentTotalScore

public void setAdjustmentTotalScore(String pAdjustmentTotalScore)
set the adjustment to total score

Parameters:
pAdjustmentTotalScore - the adjustment

getTotalScoreComments

public String getTotalScoreComments()
get total score

Returns:
the total score

setTotalScoreComments

public void setTotalScoreComments(String pTotalScoreComments)
set comments for totals score

Parameters:
pTotalScoreComments - the comments

getLateHandling

public String getLateHandling()
get late handling

Returns:
late handlign

setLateHandling

public void setLateHandling(String plateHandling)
set late handling

Parameters:
plateHandling - the late handling

getDueDate

public String getDueDate()
get the due date

Returns:
the due date as a String

setDueDate

public void setDueDate(String dateString)
set due date string

Parameters:
dateString - the date string

getSortType

public String getSortType()
get sort type

Returns:
sort type

setSortType

public void setSortType(String psortType)
set sort type, trigger property sorts

Parameters:
psortType - the type

isSortAscending

public boolean isSortAscending()
is scores table sorted in ascending order

Returns:
true if it is

setSortAscending

public void setSortAscending(boolean sortAscending)
Parameters:
sortAscending - is scores table sorted in ascending order

getAllSubmissions

public String getAllSubmissions()
Is this an all submissions or, the highest, or the largest Scoring option from assessment Settings page

Returns:
true if is is, else false

setAllSubmissions

public void setAllSubmissions(String pallSubmissions)
set whether all submissions are to be exposed

Parameters:
pallSubmissions - true if it is

getRoleSelection

public String getRoleSelection()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setRoleSelection

public void setRoleSelection(String proleSelection)
DOCUMENTATION PENDING

Parameters:
proleSelection - DOCUMENTATION PENDING

getFirstItem

public String getFirstItem()
DOCUMENTATION PENDING

Returns:
DOCUMENTATION PENDING

setFirstItem

public void setFirstItem(String pfirstItem)
DOCUMENTATION PENDING

Parameters:
proleSelection - DOCUMENTATION PENDING

resetFields

public void resetFields()
reset the fields


getRecordingData

public RecordingData getRecordingData()
encapsulates audio recording info

Returns:
recording data

setRecordingData

public void setRecordingData(RecordingData rd)
encapsulates audio recording info

Parameters:
rd -

getAnsweredItems

public HashMap getAnsweredItems()
This returns a map of which items actually have answers. Used by QuestionScores.


setAnsweredItems

public void setAnsweredItems(HashMap newItems)
This stores a map of which items actually have answers. Used by QuestionScores.


getHasRandomDrawPart

public boolean getHasRandomDrawPart()

setHasRandomDrawPart

public void setHasRandomDrawPart(boolean param)

getSelectedSectionFilterValue

public String getSelectedSectionFilterValue()

setSelectedSectionFilterValue

public void setSelectedSectionFilterValue(String param)

getScoringOption

public String getScoringOption()

setScoringOption

public void setScoringOption(String param)

setAvailableSections

public void setAvailableSections(List param)

getAvailableSections

public List getAvailableSections()

setSectionFilterSelectItems

public void setSectionFilterSelectItems(List param)

getSectionFilterSelectItems

public List getSectionFilterSelectItems()

setUserIdMap

public void setUserIdMap(Map userIdMap)

getUserIdMap

public Map getUserIdMap(int calledFrom)
calledFrom param added by gopalrc

Parameters:
calledFrom - - where this method is called from
Returns:

getReleaseToAnonymous

public boolean getReleaseToAnonymous()

setReleaseToAnonymous

public void setReleaseToAnonymous(boolean param)

getPublishedAssessment

public PublishedAssessmentData getPublishedAssessment()

setPublishedAssessment

public void setPublishedAssessment(PublishedAssessmentData publishedAssessment)

setAccessControlProperties

public void setAccessControlProperties(PublishedAccessControl ac)

setEvaluationModelProperties

public void setEvaluationModelProperties(PublishedEvaluationModel eval)

setAssessmentGradingHash

public void setAssessmentGradingHash(Long publishedAssessmentId)

getAssessmentGradingHash

public HashMap getAssessmentGradingHash(Long publishedAssessmentId)

setAssessmentGradingList

public void setAssessmentGradingList(ArrayList assessmentGradingList)

getAssessmentGradingList

public ArrayList getAssessmentGradingList()

getFirstRow

public int getFirstRow()

setFirstRow

public void setFirstRow(int firstRow)

getMaxDisplayedRows

public int getMaxDisplayedRows()

setMaxDisplayedRows

public void setMaxDisplayedRows(int maxDisplayedRows)

getDataRows

public int getDataRows()

setAllAgents

public void setAllAgents(ArrayList allAgents)

getAllAgents

public ArrayList getAllAgents()
This will populate the SubmissionStatusBean with the data associated with the particular versioned assessment based on the publishedId.

Parameters:
publishedId - String
bean - SubmissionStatusBean
Returns:
boolean

getAllAgentsDirect

public ArrayList getAllAgentsDirect()

getGraderName

public String getGraderName()

setGraderName

public void setGraderName(String graderName)

getGraderEmailInfo

public String getGraderEmailInfo()

setGraderEmailInfo

public void setGraderEmailInfo(String graderEmailInfo)

getSearchString

public String getSearchString()

setSearchString

public void setSearchString(String searchString)

search

public void search(javax.faces.event.ActionEvent event)

clear

public void clear(javax.faces.event.ActionEvent event)

findMatchingAgents

public ArrayList findMatchingAgents(String pattern)

isMultipleSubmissionsAllowed

public boolean isMultipleSubmissionsAllowed()
Returns:
Returns the multipleSubmissionsAllowed.

setMultipleSubmissionsAllowed

public void setMultipleSubmissionsAllowed(boolean multipleSubmissionsAllowed)
Parameters:
multipleSubmissionsAllowed - The multipleSubmissionsAllowed to set.

getIsTimedAssessment

public boolean getIsTimedAssessment()

setIsTimedAssessment

public void setIsTimedAssessment(boolean isTimedAssessment)

getAcceptLateSubmission

public boolean getAcceptLateSubmission()

setAcceptLateSubmission

public void setAcceptLateSubmission(boolean acceptLateSubmission)

isReleasedToGroups

public boolean isReleasedToGroups()
added by gopalrc - jan 2008

Returns:

getIsAutoScored

public boolean getIsAutoScored()

setIsAutoScored

public void setIsAutoScored(boolean isAutoScored)

getApplyToUngraded

public String getApplyToUngraded()

setApplyToUngraded

public void setApplyToUngraded(String applyToUngraded)


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