kotkabeans
Class CourseInstanceContainer

java.lang.Object
  |
  +--kotkabeans.CourseInstanceContainer

public class CourseInstanceContainer
extends java.lang.Object

This class holds CourseInstance objects and statuses.


Field Summary
protected  java.util.ArrayList courses
           
protected  java.util.ArrayList courseStatusList
           
protected  java.util.ArrayList eventGroupStatusList
           
 
Constructor Summary
CourseInstanceContainer()
           
 
Method Summary
 void addCourse(CourseInstance ci, boolean allowMultipleCourses, boolean setGroups, int egType)
           
 void addEventGroupStatus(EventGroupStatus s)
           
 void addStatus(CourseStatus s)
           
 java.lang.String getCommaSeparatedCourseInstanceIDs()
           
 java.util.ArrayList getCourseList()
           
 java.util.ArrayList getCourseList(int status)
           
 java.util.ArrayList getCourseList(int status, int sStatus)
           
 java.util.ArrayList getCourseListByGroupStatus(int egStatus)
           
 java.util.ArrayList getEventGroupStatusList()
           
 java.util.ArrayList getGroupListByGroupStatus(int status)
           
 java.util.ArrayList getStatusList()
           
 int setCourses(User user, int specialStatus, int statusid)
           
 int setCourses(User user, int specialStatus, int statusid, int userGroupLevel, java.lang.String userGroupComp, boolean setGroups, int egType, boolean allowMultipleCourses)
           
 int setCourses(User user, int specialStatus, int statusid, java.lang.String userGroupComp)
           
 int setCourses(User user, int specialStatus, int statusid, java.lang.String userGroupLevel, java.lang.String userGroupComp, boolean setGroups, int egType, boolean allowMultipleCourses)
           
 java.util.ArrayList setEventGroupsStatusList(User user, DB db, int groupTypeID)
           
 java.util.ArrayList setEventGroupsStatusList(User user, int groupTypeID)
           
 void setStatusList(User user, DB db)
           
 void setStatusList(User user, DB db, int userLevelID)
           
 void setStatusList(User user, DB db, int specialStatusID, int userLevelID, java.lang.String comp)
           
 void setStatusList(User user, int specialStatusID, int userLevelID, java.lang.String comp)
           
 void setStatusList(User user, int specialStatusID, java.lang.String userLevelID, java.lang.String comp)
           
 java.lang.String toDebugString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

courses

protected java.util.ArrayList courses

courseStatusList

protected java.util.ArrayList courseStatusList

eventGroupStatusList

protected java.util.ArrayList eventGroupStatusList
Constructor Detail

CourseInstanceContainer

public CourseInstanceContainer()
Method Detail

setCourses

public int setCourses(User user,
                      int specialStatus,
                      int statusid)
               throws java.lang.Exception
java.lang.Exception

setCourses

public int setCourses(User user,
                      int specialStatus,
                      int statusid,
                      java.lang.String userGroupComp)
               throws java.lang.Exception
java.lang.Exception

setCourses

public int setCourses(User user,
                      int specialStatus,
                      int statusid,
                      int userGroupLevel,
                      java.lang.String userGroupComp,
                      boolean setGroups,
                      int egType,
                      boolean allowMultipleCourses)
               throws java.lang.Exception
java.lang.Exception

setCourses

public int setCourses(User user,
                      int specialStatus,
                      int statusid,
                      java.lang.String userGroupLevel,
                      java.lang.String userGroupComp,
                      boolean setGroups,
                      int egType,
                      boolean allowMultipleCourses)
               throws java.lang.Exception
java.lang.Exception

addCourse

public void addCourse(CourseInstance ci,
                      boolean allowMultipleCourses,
                      boolean setGroups,
                      int egType)
               throws java.lang.Exception
java.lang.Exception

toDebugString

public java.lang.String toDebugString()

getStatusList

public java.util.ArrayList getStatusList()

addStatus

public void addStatus(CourseStatus s)

setEventGroupsStatusList

public java.util.ArrayList setEventGroupsStatusList(User user,
                                                    DB db,
                                                    int groupTypeID)
                                             throws java.lang.Exception
java.lang.Exception

setEventGroupsStatusList

public java.util.ArrayList setEventGroupsStatusList(User user,
                                                    int groupTypeID)
                                             throws java.lang.Exception
java.lang.Exception

addEventGroupStatus

public void addEventGroupStatus(EventGroupStatus s)

setStatusList

public void setStatusList(User user,
                          DB db,
                          int specialStatusID,
                          int userLevelID,
                          java.lang.String comp)
                   throws java.lang.Exception
java.lang.Exception

setStatusList

public void setStatusList(User user,
                          int specialStatusID,
                          int userLevelID,
                          java.lang.String comp)
                   throws java.lang.Exception
java.lang.Exception

setStatusList

public void setStatusList(User user,
                          int specialStatusID,
                          java.lang.String userLevelID,
                          java.lang.String comp)
                   throws java.lang.Exception
java.lang.Exception

setStatusList

public void setStatusList(User user,
                          DB db)
                   throws java.lang.Exception
java.lang.Exception

setStatusList

public void setStatusList(User user,
                          DB db,
                          int userLevelID)
                   throws java.lang.Exception
java.lang.Exception

getCourseList

public java.util.ArrayList getCourseList()

getCourseList

public java.util.ArrayList getCourseList(int status,
                                         int sStatus)

getGroupListByGroupStatus

public java.util.ArrayList getGroupListByGroupStatus(int status)

getCourseListByGroupStatus

public java.util.ArrayList getCourseListByGroupStatus(int egStatus)

getCourseList

public java.util.ArrayList getCourseList(int status)

getEventGroupStatusList

public java.util.ArrayList getEventGroupStatusList()

getCommaSeparatedCourseInstanceIDs

public java.lang.String getCommaSeparatedCourseInstanceIDs()