org.sakaiproject.tool.gradebook.ui
Class AssignmentDetailsBean

java.lang.Object
  extended byorg.sakaiproject.tool.gradebook.ui.InitializableBean
      extended byorg.sakaiproject.tool.gradebook.ui.GradebookDependentBean
          extended byorg.sakaiproject.tool.gradebook.ui.EnrollmentTableBean
              extended byorg.sakaiproject.tool.gradebook.ui.AssignmentDetailsBean
All Implemented Interfaces:
Paging, PhaseAware, Serializable

public class AssignmentDetailsBean
extends EnrollmentTableBean

See Also:
Serialized Form

Nested Class Summary
 class AssignmentDetailsBean.ScoreRow
           
 
Nested classes inherited from class org.sakaiproject.tool.gradebook.ui.EnrollmentTableBean
EnrollmentTableBean.GradingEventRow
 
Constructor Summary
AssignmentDetailsBean()
           
 
Method Summary
 Assignment getAssignment()
           
 Long getAssignmentId()
          View maintenance methods.
 String getAssignmentSortColumn()
           
 String getEventsLogType()
           
 Assignment getNextAssignment()
           
 String getNextTitle()
           
 Assignment getPreviousAssignment()
           
 String getPreviousTitle()
           
 String getScoreColumnAlignment()
           
 List getScoreRows()
           
 GradeRecordSet getScores()
           
 String getSortColumn()
           
protected  void init()
          JSF doesn't provide a way to configure an initialization method which will be called after the contructor and all framework setters.
 boolean isAssignmentSortAscending()
           
 boolean isFirst()
           
 boolean isLast()
           
 boolean isSortAscending()
           
 void processAssignmentIdChange(ActionEvent event)
          Action listener to view a different assignment.
 void processUpdateScores(ActionEvent event)
          Action listener to update scores.
 void setAssignment(Assignment assignment)
           
 void setAssignmentId(Long assignmentId)
           
 void setAssignmentIdParam(String assignmentIdParam)
          In IE (but not Mozilla/Firefox) empty request parameters may be returned to JSF as the string "null".
 void setNextAssignment(Assignment nextAssignment)
           
 void setPreviousAssignment(Assignment previousAssignment)
           
 void setScoreRows(List scoreRows)
           
 void setSortAscending(boolean sortAscending)
           
 void setSortColumn(String sortColumn)
           
 
Methods inherited from class org.sakaiproject.tool.gradebook.ui.EnrollmentTableBean
clear, finalizeSortingAndPaging, getDataRows, getFirstRow, getGraderNameForId, getMaxDisplayedRows, getOrderedEnrollmentMap, getSearchString, getSectionFilterSelectItems, getSelectedSectionFilterValue, getSelectedSectionUid, getWorkingEnrollments, isAllSectionsSelected, isEmptyEnrollments, isEnrollmentSort, search, setFirstRow, setMaxDisplayedRows, setSearchString, setSelectedSectionFilterValue, sort
 
Methods inherited from class org.sakaiproject.tool.gradebook.ui.GradebookDependentBean
findMatchingEnrollments, getAuthnService, getAvailableEnrollments, getAvailableSections, getGradebookBean, getGradebookManager, getGradeManager, getLocalizedString, getLocalizedString, getPageName, getPreferencesBean, getSectionAwareness, getSectionEnrollments, getUserDirectoryService, getUserUid, isUserAbleToEditAssessments, isUserAbleToGradeAll, isUserAbleToGradeSection, setGradebookBean, setPageName, setPreferencesBean
 
Methods inherited from class org.sakaiproject.tool.gradebook.ui.InitializableBean
endProcessUpdates, endProcessValidators, isNotValidated, setConfigured, setNotValidated, startRenderResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssignmentDetailsBean

public AssignmentDetailsBean()
Method Detail

init

protected void init()
Description copied from class: InitializableBean
JSF doesn't provide a way to configure an initialization method which will be called after the contructor and all framework setters. By convention, our backing beans use this method. It's triggered either by a Faces configuration file setting "configured" to true, or by a JSF component directly calling "startRenderResponse". For greater subclassing flexibility, the init method is not declared to be abstract.

Overrides:
init in class EnrollmentTableBean

getAssignmentSortColumn

public String getAssignmentSortColumn()

isAssignmentSortAscending

public boolean isAssignmentSortAscending()

processAssignmentIdChange

public void processAssignmentIdChange(ActionEvent event)
Action listener to view a different assignment.


processUpdateScores

public void processUpdateScores(ActionEvent event)
Action listener to update scores.


getAssignmentId

public Long getAssignmentId()
View maintenance methods.


setAssignmentId

public void setAssignmentId(Long assignmentId)

setAssignmentIdParam

public void setAssignmentIdParam(String assignmentIdParam)
In IE (but not Mozilla/Firefox) empty request parameters may be returned to JSF as the string "null". JSF always "restores" some idea of the last view, even if that idea is always going to be null because a redirect has occurred. Put these two things together, and you end up with a class cast exception when redirecting from this request-scoped bean to a static page.


isFirst

public boolean isFirst()

getPreviousTitle

public String getPreviousTitle()

isLast

public boolean isLast()

getNextTitle

public String getNextTitle()

getScoreRows

public List getScoreRows()

setScoreRows

public void setScoreRows(List scoreRows)

getScoreColumnAlignment

public String getScoreColumnAlignment()

getEventsLogType

public String getEventsLogType()

isSortAscending

public boolean isSortAscending()
Specified by:
isSortAscending in class EnrollmentTableBean

setSortAscending

public void setSortAscending(boolean sortAscending)
Specified by:
setSortAscending in class EnrollmentTableBean

getSortColumn

public String getSortColumn()
Specified by:
getSortColumn in class EnrollmentTableBean

setSortColumn

public void setSortColumn(String sortColumn)
Specified by:
setSortColumn in class EnrollmentTableBean

getAssignment

public Assignment getAssignment()

setAssignment

public void setAssignment(Assignment assignment)

getNextAssignment

public Assignment getNextAssignment()

setNextAssignment

public void setNextAssignment(Assignment nextAssignment)

getPreviousAssignment

public Assignment getPreviousAssignment()

setPreviousAssignment

public void setPreviousAssignment(Assignment previousAssignment)

getScores

public GradeRecordSet getScores()