blackboard.cms.portfolio
Class PortfolioManager

java.lang.Object
  extended by blackboard.cms.portfolio.PortfolioManager

public class PortfolioManager
extends java.lang.Object

The PortfolioManager class provides a representation of a PortfolioManager within the Blackboard application. This object provides load, save and delete methods for managing a single or multiple Portfolio Items.

Since:
Bb CS 1.0
Version:
$Revision: #1 $

Constructor Summary
PortfolioManager()
           
 
Method Summary
static void deleteById(blackboard.persist.Id id)
          Deletes the Portfolio identified by the Id using default connection.
static void deleteById(blackboard.persist.Id id, java.sql.Connection con)
          Deletes the Portfolio identified by the Id using supplied connection.
static java.util.List loadAccessibleByCourseId(blackboard.persist.Id id)
          Loads a List of Portfolio objects identified by the course Id using the default connection.
static java.util.List loadAccessibleByCourseId(blackboard.persist.Id id, java.sql.Connection con)
          Loads a List of Portfolio objects identified by the course Id using the supplied connection.
static java.util.List loadAccessibleByUserId(blackboard.persist.Id id)
          Loads a List of Portfolio objects identified by the user Id using the default connection.
static java.util.List loadAccessibleByUserId(blackboard.persist.Id id, java.sql.Connection con)
          Loads a List of Portfolio objects identified by the user Id using the supplied connection.
static Portfolio loadById(blackboard.persist.Id id)
          Loads a Portfolio identified by the given Id using the default connection.
static Portfolio loadById(blackboard.persist.Id id, java.sql.Connection con)
          Loads a Portfolio identified by the given Id using the supplied connection.
static java.util.List loadByOwnerId(blackboard.persist.Id id)
          Loads a List of Portfolio objects identified by the given owner Id using the default connection.
static java.util.List loadByOwnerId(blackboard.persist.Id id, java.sql.Connection con)
          Loads a List of Portfolio objects identified by the given owner Id using the supplied connection.
static java.util.List loadByOwnerIdForModule(blackboard.persist.Id id)
           
static void save(Portfolio portfolio)
          Inserts or updates the Portfolio using the default connection.
static void save(Portfolio portfolio, java.sql.Connection con)
          Inserts or updates the Portfolio using the supplied connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortfolioManager

public PortfolioManager()
Method Detail

save

public static void save(Portfolio portfolio,
                        java.sql.Connection con)
                 throws blackboard.persist.PersistenceException
Inserts or updates the Portfolio using the supplied connection.

Parameters:
portfolio - a Portfolio to be saved.
con - a Connection to be used to save this Portfolio.
Throws:
blackboard.persist.PersistenceException

save

public static void save(Portfolio portfolio)
                 throws blackboard.persist.PersistenceException
Inserts or updates the Portfolio using the default connection.

Parameters:
portfolio - a Portfolio to be saved.
Throws:
blackboard.persist.PersistenceException

deleteById

public static void deleteById(blackboard.persist.Id id)
                       throws blackboard.persist.PersistenceException
Deletes the Portfolio identified by the Id using default connection.

Parameters:
id - the Id of the Portfolio to be deleted using default connection.
Throws:
blackboard.persist.PersistenceException

deleteById

public static void deleteById(blackboard.persist.Id id,
                              java.sql.Connection con)
                       throws blackboard.persist.PersistenceException
Deletes the Portfolio identified by the Id using supplied connection.

Parameters:
id - the Id of the Portfolio to be deleted using supplied connection.
con - a Connection to be used.
Throws:
blackboard.persist.PersistenceException

loadById

public static Portfolio loadById(blackboard.persist.Id id,
                                 java.sql.Connection con)
                          throws blackboard.persist.PersistenceException
Loads a Portfolio identified by the given Id using the supplied connection.

Parameters:
id - the Id of the Portfolio to be loaded using the supplied connection.
con - a Connection to be used.
Returns:
a Portfolio that is identified by the given Id. Returns null (instead of KeyNotFoundException) if the Portfolio is not found.
Throws:
blackboard.persist.PersistenceException

loadById

public static Portfolio loadById(blackboard.persist.Id id)
                          throws blackboard.persist.PersistenceException
Loads a Portfolio identified by the given Id using the default connection.

Parameters:
id - the Id of the Portfolio to be loaded using the default connection.
Returns:
a Portfolio that is identified by the given Id. Returns null (instead of KeyNotFoundException) if the Portfolio is not found.
Throws:
blackboard.persist.PersistenceException

loadByOwnerId

public static java.util.List loadByOwnerId(blackboard.persist.Id id,
                                           java.sql.Connection con)
                                    throws blackboard.persist.PersistenceException
Loads a List of Portfolio objects identified by the given owner Id using the supplied connection.

Parameters:
id - the owner Id of the Portfolio to be loaded using the supplied connection.
con - a Connection to be used.
Returns:
a List of Portfolio objects that is identified by the given owner Id.
Throws:
blackboard.persist.PersistenceException

loadByOwnerIdForModule

public static java.util.List loadByOwnerIdForModule(blackboard.persist.Id id)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

loadByOwnerId

public static java.util.List loadByOwnerId(blackboard.persist.Id id)
                                    throws blackboard.persist.PersistenceException
Loads a List of Portfolio objects identified by the given owner Id using the default connection.

Parameters:
id - the owner Id of the Portfolio to be loaded using the default connection.
Returns:
a List of Portfolio objects that is identified by the given owner Id.
Throws:
blackboard.persist.PersistenceException

loadAccessibleByUserId

public static java.util.List loadAccessibleByUserId(blackboard.persist.Id id,
                                                    java.sql.Connection con)
                                             throws blackboard.persist.PersistenceException
Loads a List of Portfolio objects identified by the user Id using the supplied connection.

Parameters:
id - the user Id of the Portfolio to be loaded using the supplied connection.
con - a Connection to be used.
Returns:
a List of Portfolio objects that is identified by the given user Id.
Throws:
blackboard.persist.PersistenceException

loadAccessibleByUserId

public static java.util.List loadAccessibleByUserId(blackboard.persist.Id id)
                                             throws blackboard.persist.PersistenceException
Loads a List of Portfolio objects identified by the user Id using the default connection.

Parameters:
id - the user Id of the Portfolio to be loaded using the default connection.
Returns:
a List of Portfolio objects that is identified by the given user Id.
Throws:
blackboard.persist.PersistenceException

loadAccessibleByCourseId

public static java.util.List loadAccessibleByCourseId(blackboard.persist.Id id,
                                                      java.sql.Connection con)
                                               throws blackboard.persist.PersistenceException
Loads a List of Portfolio objects identified by the course Id using the supplied connection.

Parameters:
id - the course Id of the Portfolio to be loaded using the supplied connection.
con - a Connection to be used.
Returns:
a List of Portfolio objects that is identified by the given course Id.
Throws:
blackboard.persist.PersistenceException

loadAccessibleByCourseId

public static java.util.List loadAccessibleByCourseId(blackboard.persist.Id id)
                                               throws blackboard.persist.PersistenceException
Loads a List of Portfolio objects identified by the course Id using the default connection.

Parameters:
id - the course Id of the Portfolio to be loaded using the default connection.
Returns:
a List of Portfolio objects that is identified by the given course Id.
Throws:
blackboard.persist.PersistenceException


Copyright © 2003-2004 Blackboard, Inc. All Rights Reserved.