org.sakaiproject.coursemanagement.impl.CourseManagementServiceSampleChainImpl Maven / Gradle / Ivy
The newest version!
/**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright (c) 2006, 2007, 2008 The Sakai Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/ECL-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
**********************************************************************************/
package org.sakaiproject.coursemanagement.impl;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import org.sakaiproject.coursemanagement.api.AcademicSession;
import org.sakaiproject.coursemanagement.api.CanonicalCourse;
import org.sakaiproject.coursemanagement.api.CourseManagementService;
import org.sakaiproject.coursemanagement.api.CourseOffering;
import org.sakaiproject.coursemanagement.api.CourseSet;
import org.sakaiproject.coursemanagement.api.Enrollment;
import org.sakaiproject.coursemanagement.api.EnrollmentSet;
import org.sakaiproject.coursemanagement.api.Section;
import org.sakaiproject.coursemanagement.api.exception.IdNotFoundException;
/**
* A template to use when implementing CourseManagementService to provide
* course and enrollment data in a federated CM configuration. Extending this class
* should be useful for institutions intending to federate external datasources
* (via webservices, SIS APIs, etc) with Sakai's hibernate-based
* CourseManagementService.
*
* @author Josh Holtzman
*
*/
public class CourseManagementServiceSampleChainImpl implements CourseManagementService {
public Set findCourseOfferings(String courseSetEid, String academicSessionEid) throws IdNotFoundException {
throw new IdNotFoundException(courseSetEid, CourseSet.class.getName());
}
public List findCourseSets(String category) {
return null;
}
public Set findCurrentlyEnrolledEnrollmentSets(String userId) {
return null;
}
public Set findCurrentlyInstructingEnrollmentSets(String userId) {
return null;
}
public Enrollment findEnrollment(String userId, String eid) {
return null;
}
public Set findInstructingSections(String userId) {
return null;
}
public Set findInstructingSections(String userId, String academicSessionEid) throws IdNotFoundException {
throw new IdNotFoundException(academicSessionEid, AcademicSession.class.getName());
}
public AcademicSession getAcademicSession(String academicSessionEid) throws IdNotFoundException {
throw new IdNotFoundException(academicSessionEid, AcademicSession.class.getName());
}
public List getAcademicSessions() {
return null;
}
public CanonicalCourse getCanonicalCourse(String canonicalCourseEid) throws IdNotFoundException {
throw new IdNotFoundException(canonicalCourseEid, CanonicalCourse.class.getName());
}
public Set getCanonicalCourses(String courseSetEid) throws IdNotFoundException {
throw new IdNotFoundException(courseSetEid, CourseSet.class.getName());
}
public Set getChildCourseSets(String parentCourseSetEid) throws IdNotFoundException {
throw new IdNotFoundException(parentCourseSetEid, CourseSet.class.getName());
}
public Set getChildSections(String parentSectionEid) throws IdNotFoundException {
throw new IdNotFoundException(parentSectionEid, Section.class.getName());
}
public CourseOffering getCourseOffering(String courseOfferingEid) throws IdNotFoundException {
throw new IdNotFoundException(courseOfferingEid, CourseOffering.class.getName());
}
public Set getCourseOfferingMemberships(String courseOfferingEid) throws IdNotFoundException {
throw new IdNotFoundException(courseOfferingEid, CourseOffering.class.getName());
}
public Set getCourseOfferingsInCourseSet(String courseSetEid) throws IdNotFoundException {
throw new IdNotFoundException(courseSetEid, CourseSet.class.getName());
}
public CourseSet getCourseSet(String courseSetEid) throws IdNotFoundException {
throw new IdNotFoundException(courseSetEid, CourseSet.class.getName());
}
public Set getCourseSetMemberships(String courseSetEid) throws IdNotFoundException {
throw new IdNotFoundException(courseSetEid, CourseSet.class.getName());
}
public Set getCourseSets() {
return null;
}
public List getCurrentAcademicSessions() {
return null;
}
public EnrollmentSet getEnrollmentSet(String enrollmentSetEid) throws IdNotFoundException {
throw new IdNotFoundException(enrollmentSetEid, EnrollmentSet.class.getName());
}
public Set getEnrollmentSets(String courseOfferingEid) throws IdNotFoundException {
throw new IdNotFoundException(courseOfferingEid, CourseOffering.class.getName());
}
public Set getEnrollments(String enrollmentSetEid) throws IdNotFoundException {
throw new IdNotFoundException(enrollmentSetEid, EnrollmentSet.class.getName());
}
public Set getEquivalentCanonicalCourses(String canonicalCourseEid) throws IdNotFoundException {
throw new IdNotFoundException(canonicalCourseEid, CanonicalCourse.class.getName());
}
public Set getEquivalentCourseOfferings(String courseOfferingEid) throws IdNotFoundException {
throw new IdNotFoundException(courseOfferingEid, CourseOffering.class.getName());
}
public Set getInstructorsOfRecordIds(String enrollmentSetEid) throws IdNotFoundException {
throw new IdNotFoundException(enrollmentSetEid, EnrollmentSet.class.getName());
}
public Section getSection(String sectionEid) throws IdNotFoundException {
throw new IdNotFoundException(sectionEid, Section.class.getName());
}
public Set getSectionMemberships(String sectionEid) throws IdNotFoundException {
throw new IdNotFoundException(sectionEid, Section.class.getName());
}
public Set getSections(String courseOfferingEid) throws IdNotFoundException {
throw new IdNotFoundException(courseOfferingEid, CourseOffering.class.getName());
}
public boolean isEmpty(String courseSetEid) {
throw new UnsupportedOperationException();
}
public boolean isEnrolled(String userId, Set enrollmentSetEids) {
throw new UnsupportedOperationException();
}
public boolean isEnrolled(String userId, String eid) {
throw new UnsupportedOperationException();
}
public Set findEnrolledSections(String userId) {
return null;
}
public Map findCourseOfferingRoles(String userEid) {
return null;
}
public Map findCourseSetRoles(String userEid) {
return null;
}
public Map findSectionRoles(String userEid) {
return null;
}
public Map findSectionRoles(String userEid, String academicSessionEid) {
return null;
}
public Set getCourseOfferingsInCanonicalCourse(String canonicalCourseEid) throws IdNotFoundException {
throw new IdNotFoundException(canonicalCourseEid, CanonicalCourse.class.getName());
}
public boolean isAcademicSessionDefined(String eid) {
throw new UnsupportedOperationException();
}
public boolean isCanonicalCourseDefined(String eid) {
throw new UnsupportedOperationException();
}
public boolean isCourseOfferingDefined(String eid) {
throw new UnsupportedOperationException();
}
public boolean isCourseSetDefined(String eid) {
throw new UnsupportedOperationException();
}
public boolean isEnrollmentSetDefined(String eid) {
throw new UnsupportedOperationException();
}
public boolean isSectionDefined(String eid) {
throw new UnsupportedOperationException();
}
public List getSectionCategories() {
return null;
}
public String getSectionCategoryDescription(String categoryCode) {
return null;
}
public String getEnrollmentStatusDescription(String statusId) {
return null;
}
public Map getEnrollmentStatusDescriptions(Locale locale) {
return null;
}
public Map getGradingSchemeDescriptions(Locale locale) {
return null;
}
public Map getMembershipStatusDescriptions(Locale locale) {
return null;
}
public List findActiveCourseOfferingsInCanonicalCourse(
String eid) {
return null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy