Interface StorageManager


public interface StorageManager
Interface with methods to retrieve all DAO objects.
  • Method Details

    • getDefaultDAO

      BaseDAO getDefaultDAO(StorageTypeMapping typeMapping) throws com.tridion.broker.StorageException
      Get the default Data Access Object for a given type mapping.
      Parameters:
      typeMapping - The type mapping (i.e. component / page).
      Returns:
      The Data Access Object for this publication and type.
      Throws:
      com.tridion.broker.StorageException - If the Data Access Object could not be retrieved.
    • getDefaultDAO

      BaseDAO getDefaultDAO(String typeMapping) throws com.tridion.broker.StorageException
      Get the default Data Access Object for a given type mapping.
      Parameters:
      typeMapping - The type mapping (i.e. component / page).
      Returns:
      The Data Access Object for this type.
      Throws:
      com.tridion.broker.StorageException - If the Data Access Object could not be retrieved.
    • getDAO

      BaseDAO getDAO(int publicationId, StorageTypeMapping typeMapping) throws com.tridion.broker.StorageException
      Get the Data Access Object for a given publication id and type mapping.
      Parameters:
      publicationId - The publication id to use.
      typeMapping - The type mapping (i.e. component / page).
      Returns:
      The Data Access Object for this publication and type.
      Throws:
      com.tridion.broker.StorageException - If the Data Access Object could not be retrieved.
    • getDAOForTransaction

      BaseDAO getDAOForTransaction(int publicationId, StorageTypeMapping typeMapping, String transactionId) throws com.tridion.broker.StorageException
      Throws:
      com.tridion.broker.StorageException
    • getDAOForTransaction

      BaseDAO getDAOForTransaction(int publicationId, String typeMapping, String transactionId) throws com.tridion.broker.StorageException
      Throws:
      com.tridion.broker.StorageException
    • getDAOForTransaction

      BaseDAO getDAOForTransaction(int publicationId, StorageTypeMapping typeMapping, String itemExtension, String transactionId) throws com.tridion.broker.StorageException
      Throws:
      com.tridion.broker.StorageException
    • getDAOForTransaction

      BaseDAO getDAOForTransaction(int publicationId, String typeMapping, String itemExtension, String transactionId) throws com.tridion.broker.StorageException
      Throws:
      com.tridion.broker.StorageException
    • getDAO

      BaseDAO getDAO(int publicationId, String typeMapping) throws com.tridion.broker.StorageException
      Get the Data Access Object for a given publication id and type mapping.
      Parameters:
      publicationId - The publication id to use.
      typeMapping - The type mapping (i.e. component / page).
      Returns:
      The Data Access Object for this publication and type.
      Throws:
      com.tridion.broker.StorageException - If the Data Access Object could not be retrieved.
    • getDAO

      BaseDAO getDAO(int publicationId, StorageTypeMapping typeMapping, String itemExtension) throws com.tridion.broker.StorageException
      Get the Data Access Object for a given publication id, type mapping and extension.
      Parameters:
      publicationId - The publication id to use.
      typeMapping - The type mapping (i.e. component / page).
      itemExtension - The item extension (in case of binaries etc).
      Returns:
      The Data Access Object for this publication and type.
      Throws:
      com.tridion.broker.StorageException - If the Data Access Object could not be retrieved.
    • getDAO

      BaseDAO getDAO(int publicationId, String typeMapping, String itemExtension, String transactionId) throws com.tridion.broker.StorageException
      Get the Data Access Object for a given publication id, type mapping and extension.
      Parameters:
      publicationId - The publication id to use.
      typeMapping - The type mapping (i.e. component / page).
      itemExtension - The item extension (in case of binaries etc).
      Returns:
      The Data Access Object for this publication and type.
      Throws:
      com.tridion.broker.StorageException - If the Data Access Object could not be retrieved.
    • getDAO

      BaseDAO getDAO(int namespaceId, int publicationId, String typeMapping, String itemExtension, String transactionId) throws com.tridion.broker.StorageException
      Get the Data Access Object for a given namespace id, publication id, type mapping and extension.
      Parameters:
      namespaceId - The namespace id to use.
      publicationId - The publication id to use.
      typeMapping - The type mapping (i.e. component / page).
      itemExtension - The item extension (in case of binaries etc).
      transactionId - The transaction identifier
      Returns:
      The Data Access Object for this publication and type.
      Throws:
      com.tridion.broker.StorageException - If the Data Access Object could not be retrieved.
    • getDAOForStorageId

      BaseDAO getDAOForStorageId(String storageId, StorageTypeMapping typeMapping) throws com.tridion.broker.StorageException
      This allows retrieval of a specific DAO for a specific storage provider.
      Parameters:
      storageId - The storage provider to use.
      typeMapping - The typeMapping of the DAO requested.
      Returns:
      The instance of the DAO if storageProvider was found.
      Throws:
      com.tridion.broker.StorageException - If there is no DAO for the storage id.
    • getDAOForStorageId

      BaseDAO getDAOForStorageId(int namespaceId, String storageId, StorageTypeMapping typeMapping) throws com.tridion.broker.StorageException
      This allows retrieval of a specific DAO for a specific storage provider.
      Parameters:
      namespaceId - The namespace id to use.
      storageId - The storage provider to use.
      typeMapping - The typeMapping of the DAO requested.
      Returns:
      The instance of the DAO if storageProvider was found.
      Throws:
      com.tridion.broker.StorageException - If there is no DAO for the storage id.
    • getDAOForStorageId

      BaseDAO getDAOForStorageId(String storageId, String typeMapping) throws com.tridion.broker.StorageException
      Throws:
      com.tridion.broker.StorageException
    • getDAOForStorageId

      BaseDAO getDAOForStorageId(int namespaceId, String storageId, String typeMapping) throws com.tridion.broker.StorageException
      Throws:
      com.tridion.broker.StorageException
    • getDAOForStorageIdAndTransaction

      BaseDAO getDAOForStorageIdAndTransaction(String storageId, StorageTypeMapping typeMapping, String transactionId) throws com.tridion.broker.StorageException
      This allows retrieval of a specific DAO for a specific storage provider and transaction id.
      Parameters:
      storageId - The storage provider to use
      typeMapping - The typeMapping of the DAO requested
      transactionId - The transactionId of the current transaction
      Returns:
      The instance of the DAO if storageProvider and transactionId were found
      Throws:
      com.tridion.broker.StorageException - If there is no DAO for the storage id or it can't get DAO for the specified transactionId
    • getDAOForStorageIdAndTransaction

      BaseDAO getDAOForStorageIdAndTransaction(int namespaceId, String storageId, StorageTypeMapping typeMapping, String transactionId) throws com.tridion.broker.StorageException
      This allows retrieval of a specific DAO for a specific storage provider and transaction id.
      Parameters:
      namespaceId - The namespace id to use
      storageId - The storage provider to use
      typeMapping - The typeMapping of the DAO requested
      transactionId - The transactionId of the current transaction
      Returns:
      The instance of the DAO if storageProvider and transactionId were found
      Throws:
      com.tridion.broker.StorageException - If there is no DAO for the storage id or it can't get DAO for the specified transactionId
    • getDAOForStorageIdAndTransaction

      BaseDAO getDAOForStorageIdAndTransaction(String storageId, String typeMapping, String transactionId) throws com.tridion.broker.StorageException
      Throws:
      com.tridion.broker.StorageException
    • getDAOForStorageIdAndTransaction

      BaseDAO getDAOForStorageIdAndTransaction(int namespaceId, String storageId, String typeMapping, String transactionId) throws com.tridion.broker.StorageException
      Throws:
      com.tridion.broker.StorageException
    • getDAOFactoryForStorageId

      @Deprecated DAOFactory getDAOFactoryForStorageId(String storageId) throws com.tridion.broker.StorageException
      Deprecated.
      this method will be removed soon. Direct access to the DAOFactory is not recommended.
      Throws:
      com.tridion.broker.StorageException