blackboard.cms.portfolio
Class PortfolioUserAccessManager

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

public class PortfolioUserAccessManager
extends java.lang.Object

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

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

Constructor Summary
PortfolioUserAccessManager()
           
 
Method Summary
static void deleteById(blackboard.persist.Id id)
          Deletes the PortfolioUserAccess identified by the Id using default connection.
static void deleteById(blackboard.persist.Id id, java.sql.Connection con)
          Deletes the PortfolioUserAccess identified by the Id using supplied connection.
static void deleteByPortfolioId(blackboard.persist.Id id)
          Deletes PortfolioUserAccess objects identified by the given portfolio Id using the default connection.
static void deleteByPortfolioId(blackboard.persist.Id id, java.sql.Connection con)
          Deletes PortfolioUserAccessobjects identified by the given portfolio Id using the supplied connection.
static void deleteByUserId(blackboard.persist.Id id)
          Deletes PortfolioUserAccess objects identified by the given user Id using the default connection.
static void deleteByUserId(blackboard.persist.Id id, java.sql.Connection con)
          Deletes PortfolioUserAccess objects identified by the given user Id using the supplied connection.
static void deleteByUserIdAndPortfolioId(blackboard.persist.Id userId, blackboard.persist.Id portfolioId)
          Deletes PortfolioUserAccess objects identified by the supplied parameters.
static void deleteByUserIdAndPortfolioId(blackboard.persist.Id userId, blackboard.persist.Id portfolioId, java.sql.Connection con)
          Deletes PortfolioUserAccess objects identified by the supplied parameters using the supplied connection.
static PortfolioUserAccess loadById(blackboard.persist.Id id)
          Loads a PortfolioUserAccess identified by the given Id using the default connection.
static PortfolioUserAccess loadById(blackboard.persist.Id id, java.sql.Connection con)
          Loads a PortfolioUserAccess identified by the given Id using the supplied connection.
static java.util.List loadByPortfolioId(blackboard.persist.Id id)
          Loads a List of PortfolioUserAccess objects identified by the given portfolio Id using the default connection.
static java.util.List loadByPortfolioId(blackboard.persist.Id id, java.sql.Connection con)
          Loads a List of PortfolioUserAccess objects identified by the given portfolio Id using the supplied connection.
static java.util.List loadByUserId(blackboard.persist.Id id)
          Loads a List of PortfolioUserAccess objects identified by the given user Id using the default connection.
static java.util.List loadByUserId(blackboard.persist.Id id, java.sql.Connection con)
          Loads a List of PortfolioUserAccess objects identified by the given user Id using the supplied connection.
static BasicPortfolioFolderAssociation loadFolderAssociation(blackboard.persist.Id associationId)
           
static void removeFolderAssociation(blackboard.persist.Id associationId)
           
static void save(PortfolioUserAccess pua)
          Inserts or updates the PortfolioUserAccess using the default connection.
static void save(PortfolioUserAccess pua, java.sql.Connection con)
          Inserts or updates the PortfolioUserAccess using the supplied connection.
static void saveFolderAssociation(BasicPortfolioFolderAssociation association)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortfolioUserAccessManager

public PortfolioUserAccessManager()
Method Detail

save

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

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

save

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

Parameters:
pua - a PortfolioUserAccess to be saved.
Throws:
blackboard.persist.PersistenceException

deleteById

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

Parameters:
id - the Id of the PortfolioUserAccess 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 PortfolioUserAccess identified by the Id using supplied connection.

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

deleteByPortfolioId

public static void deleteByPortfolioId(blackboard.persist.Id id)
                                throws blackboard.persist.PersistenceException
Deletes PortfolioUserAccess objects identified by the given portfolio Id using the default connection.

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

deleteByPortfolioId

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

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

deleteByUserId

public static void deleteByUserId(blackboard.persist.Id id)
                           throws blackboard.persist.PersistenceException
Deletes PortfolioUserAccess objects identified by the given user Id using the default connection.

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

deleteByUserId

public static void deleteByUserId(blackboard.persist.Id id,
                                  java.sql.Connection con)
                           throws blackboard.persist.PersistenceException
Deletes PortfolioUserAccess objects identified by the given user Id using the supplied connection.

Parameters:
id - the user Id of the PortfolioUserAccess to be deleted using the supplied connection. * @param con a Connection to be used.
Throws:
blackboard.persist.PersistenceException

deleteByUserIdAndPortfolioId

public static void deleteByUserIdAndPortfolioId(blackboard.persist.Id userId,
                                                blackboard.persist.Id portfolioId)
                                         throws blackboard.persist.PersistenceException
Deletes PortfolioUserAccess objects identified by the supplied parameters.

Parameters:
userId - receipient of the Portfolio
portfolioId - the Id of the Portfolio
Throws:
blackboard.persist.PersistenceException

deleteByUserIdAndPortfolioId

public static void deleteByUserIdAndPortfolioId(blackboard.persist.Id userId,
                                                blackboard.persist.Id portfolioId,
                                                java.sql.Connection con)
                                         throws blackboard.persist.PersistenceException
Deletes PortfolioUserAccess objects identified by the supplied parameters using the supplied connection.

Parameters:
userId - receipient of the Portfolio
portfolioId - the Id of the Portfolio
con -
Throws:
blackboard.persist.PersistenceException

loadById

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

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

loadById

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

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

loadByPortfolioId

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

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

loadByPortfolioId

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

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

loadByUserId

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

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

loadByUserId

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

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

loadFolderAssociation

public static BasicPortfolioFolderAssociation loadFolderAssociation(blackboard.persist.Id associationId)
                                                             throws blackboard.persist.PersistenceException
Parameters:
associationId -
Returns:
Throws:
blackboard.persist.PersistenceException

removeFolderAssociation

public static void removeFolderAssociation(blackboard.persist.Id associationId)
                                    throws blackboard.persist.PersistenceException
Parameters:
associationId -
Throws:
blackboard.persist.PersistenceException

saveFolderAssociation

public static void saveFolderAssociation(BasicPortfolioFolderAssociation association)
                                  throws blackboard.data.ValidationException,
                                         blackboard.persist.PersistenceException
Parameters:
association -
Throws:
blackboard.data.ValidationException
blackboard.persist.PersistenceException


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