	public void init() {
		externallyManaged = getCourse().isExternallyManaged();
		List sectionSet = getAllSiteSections();
		sections = new ArrayList();
		for(Iterator sectionIter = sectionSet.iterator(); sectionIter.hasNext();) {
			CourseSection section = (CourseSection)sectionIter.next();
			String catName = getCategoryName(section.getCategory());
			List tas = getSectionManager().getSectionTeachingAssistants(section.getUuid());
			List taNames = new ArrayList();
			for(Iterator taIter = tas.iterator(); taIter.hasNext();) {
				ParticipationRecord ta = (ParticipationRecord)taIter.next();
				taNames.add(StringUtils.abbreviate(ta.getUser().getSortName(), getPrefs().getMaxNameLength()));
			}
			Collections.sort(taNames);
			int totalEnrollments = getSectionManager().getTotalEnrollments(section.getUuid());
			InstructorSectionDecorator decoratedSection = new InstructorSectionDecorator(
					section, catName, taNames, totalEnrollments);
			sections.add(decoratedSection);
		}
		categoryIds = getSectionCategories();
		categoryNames = new ArrayList();
		for(Iterator iter = categoryIds.iterator(); iter.hasNext();) {
			String catId = (String)iter.next();
			categoryNames.add(getCategoryName(catId));
		}
		Collections.sort(sections, getComparator());
		StringBuffer sb = new StringBuffer();
		int index = 0;
		for(Iterator iter = sections.iterator(); iter.hasNext();) {
			InstructorSectionDecorator decoratedSection = (InstructorSectionDecorator)iter.next();
			if(iter.hasNext()) {
				InstructorSectionDecorator nextSection = (InstructorSectionDecorator)sections.get(++index);
				if(nextSection.getCategory().equals(decoratedSection.getCategory())) {
					sb.append("section");
				} else {
					sb.append("sectionPadRow");
				}
				sb.append(",");
			} else {
				sb.append("section");
			}
		}
		rowClasses = sb.toString();
	}

	public void init() {
		externallyManaged = getCourse().isExternallyManaged();
		List sectionSet = getAllSiteSections();
		sections = new ArrayList();
		for(Iterator sectionIter = sectionSet.iterator(); sectionIter.hasNext();) {
			CourseSection section = (CourseSection)sectionIter.next();
			String catName = getCategoryName(section.getCategory());
			List tas = getSectionManager().getSectionTeachingAssistants(section.getUuid());
			List taNames = new ArrayList();
			for(Iterator taIter = tas.iterator(); taIter.hasNext();) {
				ParticipationRecord ta = (ParticipationRecord)taIter.next();
				taNames.add(StringUtils.abbreviate(ta.getUser().getSortName(), getPrefs().getMaxNameLength()));
			}
			Collections.sort(taNames);
			int totalEnrollments = getSectionManager().getTotalEnrollments(section.getUuid());
			InstructorSectionDecorator decoratedSection = new InstructorSectionDecorator(
					section, catName, taNames, totalEnrollments);
			sections.add(decoratedSection);
		}
		categoryIds = getSectionCategories();
		categoryNames = new ArrayList();
		for(Iterator iter = categoryIds.iterator(); iter.hasNext();) {
			String catId = (String)iter.next();
			categoryNames.add(getCategoryName(catId));
		}
		Collections.sort(sections, getComparator());
		StringBuffer sb = new StringBuffer();
		int index = 0;
		for(Iterator iter = sections.iterator(); iter.hasNext();) {
			InstructorSectionDecorator decoratedSection = (InstructorSectionDecorator)iter.next();
			if(iter.hasNext()) {
				InstructorSectionDecorator nextSection = (InstructorSectionDecorator)sections.get(++index);
				if(nextSection.getCategory().equals(decoratedSection.getCategory())) {
					sb.append("section");
				} else {
					sb.append("sectionPadRow");
				}
				sb.append(",");
			} else {
				sb.append("sectionRow");
			}
		}
		rowClasses = sb.toString();
	}
