blackboard.platform.filesystem
Class CourseFileManager

java.lang.Object
  extended by blackboard.platform.filesystem.CourseFileManager

public class CourseFileManager
extends java.lang.Object

A service that retrieves the appropiate File object representing the path to a content file for a course in the Blackboard application.


Constructor Summary
CourseFileManager()
           
 
Method Summary
static java.io.File getContentDirectory(java.lang.String courseId)
          Returns the content parent directory for the given Course.
static java.io.File getContentDirectory(java.lang.String courseId, Id contentId)
          Returns the directory that stores the given piece of content for the given Course.
 java.lang.String getWebContentDirectory(Course crs, Id contentId)
          Returns the web based directory where content and course document items are stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CourseFileManager

public CourseFileManager()
Method Detail

getWebContentDirectory

public java.lang.String getWebContentDirectory(Course crs,
                                               Id contentId)
                                        throws FileSystemException
Returns the web based directory where content and course document items are stored.

Parameters:
user-defined - string course id (name)
course - Course
content - Id for the content item in the course
Throws:
FileSystemException

getContentDirectory

public static java.io.File getContentDirectory(java.lang.String courseId)
                                        throws FileSystemException
Returns the content parent directory for the given Course.

Parameters:
courseId - The Id for the given Course.
Returns:
A fully-qualified filesystem path.
Throws:
FileSystemException

getContentDirectory

public static java.io.File getContentDirectory(java.lang.String courseId,
                                               Id contentId)
                                        throws FileSystemException
Returns the directory that stores the given piece of content for the given Course.

Parameters:
courseId - The Id for the given Course.
contentId - The Id for the given piece of content.
Returns:
A fully-qualified filesystem path.
Throws:
FileSystemException


Copyright © 2003 Blackboard, Inc. All Rights Reserved.