okapi.tools
Class OkapiEditSectionParticipantsM

java.lang.Object
  extended by okapi.tools.OkapiEditSectionParticipantsM
All Implemented Interfaces:
java.io.Serializable, OkapiToolModel

public class OkapiEditSectionParticipantsM
extends java.lang.Object
implements OkapiToolModel

ToolModel to email to class lists.

Version:
$Revision: 31378 $, $Date: 2008-11-26 00:11:31 -0500 (Wed, 26 Nov 2008) $
Author:
MIT Stellar team
See Also:
Serialized Form

Constructor Summary
OkapiEditSectionParticipantsM()
           
 
Method Summary
protected static int findNumberOfSections(java.lang.String masterSubjectId, java.lang.String termCode)
           
protected static java.util.List getRecitationInfo(java.lang.String masterSubjectId, java.lang.String termCode)
           
 OkapiToolModelReturn returnObject(java.util.List pathVector, java.lang.String pathSegment, javax.servlet.http.HttpServletRequest request, javax.servlet.ServletContext context, java.util.List nexusHistory, java.lang.String requestedType)
          Method returnObject
 void setDataSource(javax.sql.DataSource dataSource)
          Set the dataSource to be used for data access.
protected static void setSectionAssignments(java.lang.String sectionId, java.util.List selectedUsernames, OkapiNexus mainNexus)
          Bulk set sections
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OkapiEditSectionParticipantsM

public OkapiEditSectionParticipantsM()
Method Detail

setDataSource

public void setDataSource(javax.sql.DataSource dataSource)
Set the dataSource to be used for data access.

Parameters:
dataSource -

returnObject

public OkapiToolModelReturn returnObject(java.util.List pathVector,
                                         java.lang.String pathSegment,
                                         javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.ServletContext context,
                                         java.util.List nexusHistory,
                                         java.lang.String requestedType)
                                  throws OkapiPermissionDeniedException,
                                         OkapiAuthenticationRequiredException
Method returnObject

Specified by:
returnObject in interface OkapiToolModel
Parameters:
pathVector -
pathSegment -
request -
context -
nexusHistory -
requestedType -
Returns:
OkapiToolModelReturn
Throws:
OkapiAuthenticationRequiredException
OkapiPermissionDeniedException

setSectionAssignments

protected static void setSectionAssignments(java.lang.String sectionId,
                                            java.util.List selectedUsernames,
                                            OkapiNexus mainNexus)
                                     throws java.lang.Exception
Bulk set sections

Parameters:
sectionId - "mitsis" or a section id, e.g. "r04"
selectedUsernames - list of users to assign to section, or null or empty to use all enrolled students
mainNexus - main nexus
Throws:
java.lang.Exception

findNumberOfSections

protected static int findNumberOfSections(java.lang.String masterSubjectId,
                                          java.lang.String termCode)

getRecitationInfo

protected static java.util.List getRecitationInfo(java.lang.String masterSubjectId,
                                                  java.lang.String termCode)


Copyright ? 2001-2009 MIT. All Rights Reserved.