blackboard.data.course
Interface CourseManager


public interface CourseManager

CourseManager

Since:
Bb 7.1
Version:
$Revision: #1 $ $Date: 2007/06/27 $

Method Summary
 Course getCourse(Id id)
          loads the Course for a given course Id
 void remove(Id id)
          Simpler version of remove(List, String) which does NOT do entitlements checks and only works on a single course.
 java.util.List<Course> remove(java.util.List<Id> ids, java.lang.String sourceType)
          Deletes the Courses identified by the given Id values using a connection from the associated persistence manager's database container.
 

Method Detail

remove

java.util.List<Course> remove(java.util.List<Id> ids,
                              java.lang.String sourceType)
                              throws PersistenceException,
                                     java.io.IOException,
                                     FileSystemException
Deletes the Courses identified by the given Id values using a connection from the associated persistence manager's database container.

Because of referential integrity, deletes are done in a heavyweight fashion causing this object as well as all dependent objects to be deleted from the database.

Throws:
java.io.IOException - If the associated course folders could not be removed.
FileSystemException - If the associated course folders could not be removed.
PersistenceException - if some other exception happens during the delete operation

remove

void remove(Id id)
            throws PersistenceException,
                   java.io.IOException,
                   FileSystemException
Simpler version of remove(List, String) which does NOT do entitlements checks and only works on a single course. Intended as a more direct replacement for the old CourseDbPersister.deleteById() method.

Parameters:
id - The course id to remove
Throws:
PersistenceException
java.io.IOException
FileSystemException

getCourse

Course getCourse(Id id)
                 throws PersistenceException
loads the Course for a given course Id

Parameters:
id -
Returns:
Throws:
PersistenceException


Copyright © 2003 Blackboard, Inc. All Rights Reserved.