org.sakaiproject.tool.section.jsf.backingbean
Class EditManagersBean

java.lang.Object
  extended byorg.sakaiproject.tool.section.jsf.backingbean.InitializableBean
      extended byorg.sakaiproject.tool.section.jsf.backingbean.CourseDependentBean
          extended byorg.sakaiproject.tool.section.jsf.backingbean.EditManagersBean
All Implemented Interfaces:
PhaseAware, Serializable
Direct Known Subclasses:
EditStudentsBean

public class EditManagersBean
extends CourseDependentBean
implements Serializable

Controls the edit managers page (where TAs are assigned to sections).

Author:
Josh Holtzman
See Also:
Serialized Form

Field Summary
protected  List availableUsers
           
protected  boolean externallyManaged
           
protected  String sectionDescription
           
protected  String sectionTitle
           
protected  String sectionUuid
           
protected  List selectedUsers
           
 
Fields inherited from class org.sakaiproject.tool.section.jsf.backingbean.InitializableBean
messageBundle
 
Constructor Summary
EditManagersBean()
           
 
Method Summary
 String cancel()
           
 String getAbbreviatedSectionTitle()
           
 List getAvailableUsers()
           
protected  Set getHighlightedUsers(String componentId)
           
 String getSectionDescription()
           
 String getSectionTitle()
           
 String getSectionUuid()
           
 List getSelectedUsers()
           
 void init()
          JSF doesn't provide a way to configure an initialization method which will be called after the contructor and all framework setters.
protected  CourseSectionDecorator initializeFields()
           
 boolean isExternallyManaged()
           
protected  void populateSelectedUsers(List participationRecords)
           
 void setAvailableUsers(List availableUsers)
           
 void setSectionUuid(String sectionUuid)
           
 void setSelectedUsers(List selectedUsers)
           
 String update()
           
 
Methods inherited from class org.sakaiproject.tool.section.jsf.backingbean.CourseDependentBean
getAllSiteSections, getCategoryName, getCourse, getMyEnrolledSections, getPrefs, getSectionCategories, getSectionManager, getSiteContext, getUsedCategories, getUserUid, isSectionEnrollmentMangementEnabled, isSectionManagementEnabled, isSectionOptionsManagementEnabled, isSectionTaManagementEnabled, isViewAllSectionsEnabled, isViewOwnSectionsEnabled
 
Methods inherited from class org.sakaiproject.tool.section.jsf.backingbean.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
 

Field Detail

selectedUsers

protected List selectedUsers

availableUsers

protected List availableUsers

sectionUuid

protected String sectionUuid

sectionTitle

protected String sectionTitle

sectionDescription

protected String sectionDescription

externallyManaged

protected boolean externallyManaged
Constructor Detail

EditManagersBean

public EditManagersBean()
Method Detail

initializeFields

protected CourseSectionDecorator initializeFields()

populateSelectedUsers

protected void populateSelectedUsers(List participationRecords)

init

public 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 InitializableBean

update

public String update()

cancel

public String cancel()

getHighlightedUsers

protected Set getHighlightedUsers(String componentId)

getAvailableUsers

public List getAvailableUsers()

setAvailableUsers

public void setAvailableUsers(List availableUsers)

getSelectedUsers

public List getSelectedUsers()

setSelectedUsers

public void setSelectedUsers(List selectedUsers)

getSectionUuid

public String getSectionUuid()

setSectionUuid

public void setSectionUuid(String sectionUuid)

getSectionTitle

public String getSectionTitle()

isExternallyManaged

public boolean isExternallyManaged()

getSectionDescription

public String getSectionDescription()

getAbbreviatedSectionTitle

public String getAbbreviatedSectionTitle()