blackboard.data.content
Class ContentHandlerWrapper

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

public class ContentHandlerWrapper
extends java.lang.Object


Method Summary
 boolean canCopy(Content cnt)
           
 java.util.List getAvailableContentHandlers()
           
 java.lang.String getContentViewUrl(Content content)
          Returns the URL for viewing the content in its location within the Course Content UI.
 java.lang.String getContentViewUrl(Content content, User user)
           
 java.lang.String getCpViewUrl(Content cnt)
           
 java.lang.String getCreateUrl(ContentHandler ch, Content parent)
           
static ContentHandlerWrapper getDefaultInstance()
           
 java.lang.String getIconListUrl(Content cnt)
           
 java.lang.String getIconToolbarUrl(ContentHandler ch)
           
static ContentHandlerWrapper getInstance(Course crs)
           
 java.lang.String getModifyUrl(Content cnt)
           
 java.lang.String getName(ContentHandler ch)
           
 java.lang.String getRemoveUrl(Content cnt)
           
 java.lang.String getViewUrl(Content cnt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ContentHandlerWrapper getInstance(Course crs)

getDefaultInstance

public static ContentHandlerWrapper getDefaultInstance()

getAvailableContentHandlers

public java.util.List getAvailableContentHandlers()

getName

public java.lang.String getName(ContentHandler ch)

getCreateUrl

public java.lang.String getCreateUrl(ContentHandler ch,
                                     Content parent)

getIconToolbarUrl

public java.lang.String getIconToolbarUrl(ContentHandler ch)

getIconListUrl

public java.lang.String getIconListUrl(Content cnt)

getModifyUrl

public java.lang.String getModifyUrl(Content cnt)

canCopy

public boolean canCopy(Content cnt)

getContentViewUrl

public java.lang.String getContentViewUrl(Content content,
                                          User user)

getContentViewUrl

public java.lang.String getContentViewUrl(Content content)
Returns the URL for viewing the content in its location within the Course Content UI. If the Content object is a folder, the URL returned by this method points to the Content object itself. If the Content object is not a folder, and the Content object's parent Id is set, then the URL returned by this method points to the Content object's parent. If the Content object is not a folder, and the Content object's parent Id is not set, then the URL returned by this method points to the Content object.

Parameters:
content -
Returns:
String The URL for navigating to the Content object in the Course Content UI

getCpViewUrl

public java.lang.String getCpViewUrl(Content cnt)

getViewUrl

public java.lang.String getViewUrl(Content cnt)

getRemoveUrl

public java.lang.String getRemoveUrl(Content cnt)


Copyright © 2003 Blackboard, Inc. All Rights Reserved.