blackboard.data.content
Class ContentWrapper

java.lang.Object
  extended by blackboard.data.content.ContentWrapper

public final class ContentWrapper
extends java.lang.Object

Since:
Bb 6.0

Method Summary
 ContentFile addContentFile(Content content, java.io.File file, java.lang.String fileName, java.lang.String linkName, ContentFile.Action contentFileAction, java.sql.Connection con)
           
static ContentWrapper getDefaultInstance()
           
static ContentWrapper getInstance(Course crs)
           
 Content loadAvailableContent(Id contentId, Id userId)
           
 Content loadAvailableContent(Id contentId, Id userId, java.sql.Connection con)
           
 java.util.List<ContentFile> loadContentFiles(Content _content, java.sql.Connection con)
           
 void removeContentFile(Id removeId, java.sql.Connection con)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ContentWrapper getInstance(Course crs)

getDefaultInstance

public static ContentWrapper getDefaultInstance()

loadAvailableContent

public Content loadAvailableContent(Id contentId,
                                    Id userId,
                                    java.sql.Connection con)
                             throws KeyNotFoundException,
                                    PersistenceException
Throws:
KeyNotFoundException
PersistenceException

loadAvailableContent

public Content loadAvailableContent(Id contentId,
                                    Id userId)
                             throws KeyNotFoundException,
                                    PersistenceException
Throws:
KeyNotFoundException
PersistenceException

loadContentFiles

public java.util.List<ContentFile> loadContentFiles(Content _content,
                                                    java.sql.Connection con)
                                             throws PersistenceException
Throws:
PersistenceException

addContentFile

public ContentFile addContentFile(Content content,
                                  java.io.File file,
                                  java.lang.String fileName,
                                  java.lang.String linkName,
                                  ContentFile.Action contentFileAction,
                                  java.sql.Connection con)
                           throws PersistenceException,
                                  ValidationException,
                                  java.io.IOException,
                                  blackboard.platform.filesystem.FileSystemException
Throws:
PersistenceException
ValidationException
java.io.IOException
blackboard.platform.filesystem.FileSystemException

removeContentFile

public void removeContentFile(Id removeId,
                              java.sql.Connection con)
                       throws PersistenceException
Throws:
PersistenceException


Copyright © 2012 Blackboard, Inc. All Rights Reserved.