|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oodt.cas.filemgr.repository.XMLRepositoryManager
public class XMLRepositoryManager
A RepositoryManager that manages Product policy based on an
xml file called product-types.xml.
| Field Summary |
|---|
| Fields inherited from interface org.apache.oodt.cas.filemgr.repository.RepositoryManager |
|---|
X_POINT_ID |
| Constructor Summary | |
|---|---|
XMLRepositoryManager(List<String> uris)
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLRepositoryManager(List<String> uris)
throws InstantiationException
InstantiationException| Method Detail |
|---|
public void addProductType(ProductType productType)
throws RepositoryManagerException
RepositoryManagerAdds a ProductType to the RepositoryManager.
addProductType in interface RepositoryManagerproductType - The ProductType to add.
RepositoryManagerException
public void modifyProductType(ProductType productType)
throws RepositoryManagerException
RepositoryManager
Modifies a ProductType in the RepositoryManager with the specified ID
field of the productType.
modifyProductType in interface RepositoryManagerproductType - The new ProductType information.
RepositoryManagerException - If any error occurs.
public void removeProductType(ProductType productType)
throws RepositoryManagerException
RepositoryManagerRemoves a ProductType from the RepositoryManager
.
removeProductType in interface RepositoryManagerproductType - The productType to remove.
RepositoryManagerException - If any error occurs during the removal.
public ProductType getProductTypeById(String productTypeId)
throws RepositoryManagerException
RepositoryManager
Gets a {link ProductType} from the RepositoryManager identified by its
productTypeId.
getProductTypeById in interface RepositoryManagerproductTypeId - The ID of the ProductType to retrieve.
ProductType corresponding to the specified
productTypeId.
RepositoryManagerException - If any error occurs.
public ProductType getProductTypeByName(String productTypeName)
throws RepositoryManagerException
RepositoryManager
Gets a ProductType specified by its productTypeName,
from the RepositoryManager.
getProductTypeByName in interface RepositoryManagerproductTypeName - The name of the ProductType to get.
ProductType, with the specified name.
RepositoryManagerException - If any error occurs.
public List<ProductType> getProductTypes()
throws RepositoryManagerException
RepositoryManager
Gets all the ProductTypes from the repository.
getProductTypes in interface RepositoryManagerList of ProductTypes from the repository.
RepositoryManagerException - If any error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||