blackboard.data.discussionboard.datamanager
Interface DiscussionBoardGradeManager


public interface DiscussionBoardGradeManager


Method Summary
 void createOutcome(OutcomeDefinition ocd, CourseMembership cm, java.lang.String points)
          Create outcome.
 void deleteOutcome(OutcomeDefinition ocd, CourseMembership cm, Id messageId, Id userId)
          Delete outcome.
 float getForumPointsPossible(Id forum_id)
          Given a forum Id, get the maximum score possible for a graded forum
 float getThreadPointsPossible(Id thread_id)
          Given a message Id for a top-level thread, get the maximum score possible for a graded thread
 java.util.Map loadGradeHashByForumId(Id forum_id)
          Given a forum Id, get the user grades for a forum.
 java.util.Map loadGradeHashByForumId(Id forum_id, Id course_id)
          Given a forum Id, get the user grades for a forum.
 java.util.Map loadGradeHashByThreadId(Id thread_id)
          Given a message Id for a top-level thread, get the user grades for a thread.
 

Method Detail

getForumPointsPossible

float getForumPointsPossible(Id forum_id)
                             throws PersistenceException
Given a forum Id, get the maximum score possible for a graded forum

Parameters:
forum_id -
Returns:
point float
Throws:
PersistenceException

getThreadPointsPossible

float getThreadPointsPossible(Id thread_id)
                              throws PersistenceException
Given a message Id for a top-level thread, get the maximum score possible for a graded thread

Parameters:
thread_id -
Returns:
point float
Throws:
PersistenceException

loadGradeHashByForumId

java.util.Map loadGradeHashByForumId(Id forum_id)
                                     throws PersistenceException
Given a forum Id, get the user grades for a forum. The key of the map is the course membership id pk

Parameters:
forum_id -
Returns:
Map
Throws:
PersistenceException

loadGradeHashByForumId

java.util.Map loadGradeHashByForumId(Id forum_id,
                                     Id course_id)
                                     throws PersistenceException
Given a forum Id, get the user grades for a forum. The key of the map is the course membership id pk Also need the couse id to get the correct data.

Parameters:
forum_id -
Returns:
Map
Throws:
PersistenceException

loadGradeHashByThreadId

java.util.Map loadGradeHashByThreadId(Id thread_id)
                                      throws PersistenceException
Given a message Id for a top-level thread, get the user grades for a thread. The key of the map is the course membership id pk

Parameters:
thread_id -
Returns:
Map
Throws:
PersistenceException

createOutcome

void createOutcome(OutcomeDefinition ocd,
                   CourseMembership cm,
                   java.lang.String points)
                   throws PersistenceException,
                          ValidationException
Create outcome.

Parameters:
ocd - OutcomeDefinition
cm - CourseMembership
points - String
Throws:
PersistenceException
ValidationException - Will never be thrown

deleteOutcome

void deleteOutcome(OutcomeDefinition ocd,
                   CourseMembership cm,
                   Id messageId,
                   Id userId)
                   throws PersistenceException,
                          ValidationException
Delete outcome.

Parameters:
ocd - OutcomeDefinition
cm - CourseMembership
Throws:
PersistenceException
ValidationException - Will never be thrown.


Copyright © 2003 Blackboard, Inc. All Rights Reserved.