blackboard.platform.filesystem
Class AssessmentFileManager

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

public class AssessmentFileManager
extends java.lang.Object

A service that returns File objects representing the path to content files for Blackboard's assessment web application.

Since:
Blackboard 6.0
Version:
1.0

Constructor Summary
AssessmentFileManager()
           
 
Method Summary
static java.io.File getAssessmentDirectory(java.lang.String courseId)
          Returns the directory that stores all content directories for Assessment-related content.
static java.io.File getAssessmentDirectory(java.lang.String courseId, java.lang.String fileGuid)
          Returns the directory that stores a given file for a given Assessment in a given Course.
static java.io.File getAssignmentDirectory(java.lang.String courseId)
          Returns the directory that stores all content directories for Assignment-related content.
static java.io.File getAssignmentDirectory(java.lang.String courseId, Id assignmentId)
          Returns the directory that stores all content directories for a given Assignment.
static java.io.File getAssignmentDirectory(java.lang.String courseId, Id assignmentId, java.lang.String fileGuid)
          Returns the directory that stores a given file for a given Assignment in a given Course.
static java.lang.String getWebAssessmentDirectory(java.lang.String courseId)
           
static java.lang.String getWebAssessmentDirectory(java.lang.String courseId, java.lang.String fileGuid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssessmentFileManager

public AssessmentFileManager()
Method Detail

getAssessmentDirectory

public static java.io.File getAssessmentDirectory(java.lang.String courseId)
                                           throws FileSystemException
Returns the directory that stores all content directories for Assessment-related content.

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

getWebAssessmentDirectory

public static java.lang.String getWebAssessmentDirectory(java.lang.String courseId)
                                                  throws FileSystemException
Throws:
FileSystemException

getAssessmentDirectory

public static java.io.File getAssessmentDirectory(java.lang.String courseId,
                                                  java.lang.String fileGuid)
                                           throws FileSystemException
Returns the directory that stores a given file for a given Assessment in a given Course.

Parameters:
courseId - The Id for the Course
assessmentId - The Id for the given Assessment.
fileGuid - A generated unique identifier for this file.
Returns:
A fully-qualified filesystem path.
Throws:
FileSystemException

getWebAssessmentDirectory

public static java.lang.String getWebAssessmentDirectory(java.lang.String courseId,
                                                         java.lang.String fileGuid)
                                                  throws FileSystemException
Throws:
FileSystemException

getAssignmentDirectory

public static java.io.File getAssignmentDirectory(java.lang.String courseId)
                                           throws FileSystemException
Returns the directory that stores all content directories for Assignment-related content.

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

getAssignmentDirectory

public static java.io.File getAssignmentDirectory(java.lang.String courseId,
                                                  Id assignmentId)
                                           throws FileSystemException
Returns the directory that stores all content directories for a given Assignment.

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

getAssignmentDirectory

public static java.io.File getAssignmentDirectory(java.lang.String courseId,
                                                  Id assignmentId,
                                                  java.lang.String fileGuid)
                                           throws FileSystemException
Returns the directory that stores a given file for a given Assignment in a given Course.

Parameters:
courseId - The Id for the Course
assignmentId - The Id for the given Assignment.
fileGuid - A generated unique identifier for this file.
Returns:
A fully-qualified filesystem path.
Throws:
FileSystemException


Copyright © 2003 Blackboard, Inc. All Rights Reserved.