org.apache.oodt.cas.filemgr.repository
Interface RepositoryManager

All Known Implementing Classes:
DataSourceRepositoryManager, ScienceDataRepositoryManager, XMLRepositoryManager

public interface RepositoryManager

Version:
$Revision: 11462 $ A Repository Manager is an extension point that is responsible for managing ProductType information which boils down to policy information about Products that are ingested into the File Manager. This includes information such as the root repository path for a product type, what type of URI generation scheme to apply, etc.

Author:
mattmann, bfoster

Field Summary
static String X_POINT_ID
           
 
Method Summary
 void addProductType(ProductType productType)
           Adds a ProductType to the RepositoryManager.
 ProductType getProductTypeById(String productTypeId)
           Gets a {link ProductType} from the RepositoryManager identified by its productTypeId.
 ProductType getProductTypeByName(String productTypeName)
           Gets a ProductType specified by its productTypeName, from the RepositoryManager.
 List<ProductType> getProductTypes()
           Gets all the ProductTypes from the repository.
 void modifyProductType(ProductType productType)
           Modifies a ProductType in the RepositoryManager with the specified ID field of the productType.
 void removeProductType(ProductType productType)
           Removes a ProductType from the RepositoryManager
 

Field Detail

X_POINT_ID

static final String X_POINT_ID
Method Detail

addProductType

void addProductType(ProductType productType)
                    throws RepositoryManagerException

Adds a ProductType to the RepositoryManager.

Parameters:
productType - The ProductType to add.
Throws:
RepositoryManagerException

modifyProductType

void modifyProductType(ProductType productType)
                       throws RepositoryManagerException

Modifies a ProductType in the RepositoryManager with the specified ID field of the productType.

Parameters:
productType - The new ProductType information.
Throws:
RepositoryManagerException - If any error occurs.

removeProductType

void removeProductType(ProductType productType)
                       throws RepositoryManagerException

Removes a ProductType from the RepositoryManager

.

Parameters:
productType - The productType to remove.
Throws:
RepositoryManagerException - If any error occurs during the removal.

getProductTypeById

ProductType getProductTypeById(String productTypeId)
                               throws RepositoryManagerException

Gets a {link ProductType} from the RepositoryManager identified by its productTypeId.

Parameters:
productTypeId - The ID of the ProductType to retrieve.
Returns:
The ProductType corresponding to the specified productTypeId.
Throws:
RepositoryManagerException - If any error occurs.

getProductTypeByName

ProductType getProductTypeByName(String productTypeName)
                                 throws RepositoryManagerException

Gets a ProductType specified by its productTypeName, from the RepositoryManager.

Parameters:
productTypeName - The name of the ProductType to get.
Returns:
A ProductType, with the specified name.
Throws:
RepositoryManagerException - If any error occurs.

getProductTypes

List<ProductType> getProductTypes()
                                  throws RepositoryManagerException

Gets all the ProductTypes from the repository.

Returns:
A List of ProductTypes from the repository.
Throws:
RepositoryManagerException - If any error occurs.


Copyright © 1999-2011 Apache OODT. All Rights Reserved.