org.sakaiproject.coursemanagement.impl
Class SampleDataLoader

java.lang.Object
  extended by org.sakaiproject.coursemanagement.impl.SampleDataLoader
All Implemented Interfaces:
org.springframework.beans.factory.BeanFactoryAware

public class SampleDataLoader
extends Object
implements org.springframework.beans.factory.BeanFactoryAware


Field Summary
protected static String[] ACADEMIC_SESSION_EIDS
           
protected static Date[] ACADEMIC_SESSION_END_DATES
           
protected static Date[] ACADEMIC_SESSION_START_DATES
           
protected static int ACADEMIC_SESSION_YEAR
           
protected  org.springframework.beans.factory.BeanFactory beanFactory
           
protected static String CC1
           
protected static String CC2
           
protected  CourseManagementAdministration cmAdmin
           
protected  CourseManagementService cmService
           
protected static String CO1_PREFIX
           
protected static String CO2_PREFIX
           
protected static String CS
           
protected static DecimalFormat df
           
protected static String ENROLLMENT_SET_SUFFIX
           
protected static int ENROLLMENT_SETS_PER_ACADEMIC_SESSION
           
protected static int ENROLLMENTS_PER_SET
           
protected  boolean loadSampleData
          A flag for disabling the sample data load
protected  int studentMemberCount
           
 
Constructor Summary
SampleDataLoader()
           
 
Method Summary
 void destroy()
           
protected  Time getTime(String timeString)
           
protected  int incrementStudentCount()
           
 void init()
           
 void load()
           
protected  void loadDiscussionSection(String secEidPrefix, String asEid, String coEid, String categoryCode, String location, Time startTime, Time endTime, boolean[] days, int studentStart, int studentEnd)
           
protected  void resetStudentMemberCount()
           
protected static SimpleDateFormat sdf()
           
 void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
           
 void setCmAdmin(CourseManagementAdministration cmAdmin)
           
 void setCmService(CourseManagementService cmService)
           
 void setLoadSampleData(boolean loadSampleData)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACADEMIC_SESSION_YEAR

protected static final int ACADEMIC_SESSION_YEAR

ACADEMIC_SESSION_EIDS

protected static final String[] ACADEMIC_SESSION_EIDS

ACADEMIC_SESSION_START_DATES

protected static final Date[] ACADEMIC_SESSION_START_DATES

ACADEMIC_SESSION_END_DATES

protected static final Date[] ACADEMIC_SESSION_END_DATES

CS

protected static final String CS
See Also:
Constant Field Values

CC1

protected static final String CC1
See Also:
Constant Field Values

CC2

protected static final String CC2
See Also:
Constant Field Values

CO1_PREFIX

protected static final String CO1_PREFIX
See Also:
Constant Field Values

CO2_PREFIX

protected static final String CO2_PREFIX
See Also:
Constant Field Values

ENROLLMENT_SET_SUFFIX

protected static final String ENROLLMENT_SET_SUFFIX
See Also:
Constant Field Values

ENROLLMENT_SETS_PER_ACADEMIC_SESSION

protected static final int ENROLLMENT_SETS_PER_ACADEMIC_SESSION
See Also:
Constant Field Values

ENROLLMENTS_PER_SET

protected static final int ENROLLMENTS_PER_SET
See Also:
Constant Field Values

df

protected static DecimalFormat df

studentMemberCount

protected int studentMemberCount

cmAdmin

protected CourseManagementAdministration cmAdmin

cmService

protected CourseManagementService cmService

beanFactory

protected org.springframework.beans.factory.BeanFactory beanFactory

loadSampleData

protected boolean loadSampleData
A flag for disabling the sample data load

Constructor Detail

SampleDataLoader

public SampleDataLoader()
Method Detail

sdf

protected static final SimpleDateFormat sdf()

setCmAdmin

public void setCmAdmin(CourseManagementAdministration cmAdmin)

setCmService

public void setCmService(CourseManagementService cmService)

setBeanFactory

public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
                    throws org.springframework.beans.BeansException
Specified by:
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
Throws:
org.springframework.beans.BeansException

setLoadSampleData

public void setLoadSampleData(boolean loadSampleData)

init

public void init()

destroy

public void destroy()

load

public void load()
          throws Exception
Throws:
Exception

getTime

protected Time getTime(String timeString)

loadDiscussionSection

protected void loadDiscussionSection(String secEidPrefix,
                                     String asEid,
                                     String coEid,
                                     String categoryCode,
                                     String location,
                                     Time startTime,
                                     Time endTime,
                                     boolean[] days,
                                     int studentStart,
                                     int studentEnd)

incrementStudentCount

protected int incrementStudentCount()

resetStudentMemberCount

protected void resetStudentMemberCount()


Copyright © 2011 Sakai Project. All Rights Reserved.