Examples of ProductType


Examples of org.apache.oodt.cas.filemgr.structs.ProductType

    }

    public Vector<Hashtable<String, Object>> getTopNProducts(int n,
            Hashtable<String, Object> productTypeHash)
            throws CatalogException {
        ProductType type = XmlRpcStructFactory
                .getProductTypeFromXmlRpc(productTypeHash);
        List<Product> topNProducts = null;

        try {
            topNProducts = catalog.getTopNProducts(n, type);
            return XmlRpcStructFactory.getXmlRpcProductList(topNProducts);
        } catch (Exception e) {
            e.printStackTrace();
            LOG.log(Level.WARNING,
                    "Exception when getting topN products by product type: ["
                            + type.getProductTypeId() + "]: Message: "
                            + e.getMessage());
            throw new CatalogException(e.getMessage());
        }

    }
View Full Code Here

Examples of org.apache.oodt.cas.filemgr.structs.ProductType

    }

    public Vector<Hashtable<String, Object>> getProductsByProductType(
            Hashtable<String, Object> productTypeHash)
            throws CatalogException {
        ProductType type = XmlRpcStructFactory
                .getProductTypeFromXmlRpc(productTypeHash);
        List<Product> productList = null;

        try {
            productList = catalog.getProductsByProductType(type);
            return XmlRpcStructFactory.getXmlRpcProductList(productList);
        } catch (Exception e) {
            e.printStackTrace();
            LOG.log(Level.SEVERE,
                    "Exception obtaining products by product type for type: ["
                            + type.getName() + "]: Message: " + e.getMessage());
            throw new CatalogException(e.getMessage());
        }
    }
View Full Code Here

Examples of org.apache.oodt.cas.filemgr.structs.ProductType

    }

    public Vector<Hashtable<String, Object>> getElementsByProductType(
            Hashtable<String, Object> productTypeHash)
            throws ValidationLayerException {
        ProductType type = XmlRpcStructFactory
                .getProductTypeFromXmlRpc(productTypeHash);
        List<Element> elementList = null;

        try {
            elementList = catalog.getValidationLayer().getElements(type);
            return XmlRpcStructFactory.getXmlRpcElementList(elementList);
        } catch (Exception e) {
            e.printStackTrace();
            LOG.log(Level.SEVERE,
                    "Exception obtaining elements for product type: ["
                            + type.getName() + "]: Message: " + e.getMessage());
            throw new ValidationLayerException(e.getMessage());
        }

    }
View Full Code Here

Examples of org.apache.oodt.cas.filemgr.structs.ProductType

    public Vector<Hashtable<String, Object>> query(
            Hashtable<String, Object> queryHash,
            Hashtable<String, Object> productTypeHash)
            throws CatalogException {
        Query query = XmlRpcStructFactory.getQueryFromXmlRpc(queryHash);
        ProductType type = XmlRpcStructFactory
                .getProductTypeFromXmlRpc(productTypeHash);
        return XmlRpcStructFactory.getXmlRpcProductList(this.query(query, type));
    }
View Full Code Here

Examples of org.apache.oodt.cas.filemgr.structs.ProductType

        return XmlRpcStructFactory.getXmlRpcProductList(this.query(query, type));
    }

    public Hashtable<String, Object> getProductTypeByName(String productTypeName)
            throws RepositoryManagerException {
        ProductType type = repositoryManager
                .getProductTypeByName(productTypeName);
        return XmlRpcStructFactory.getXmlRpcProductType(type);
    }
View Full Code Here

Examples of org.apache.oodt.cas.filemgr.structs.ProductType

        return XmlRpcStructFactory.getXmlRpcProductType(type);
    }

    public Hashtable<String, Object> getProductTypeById(String productTypeId)
            throws RepositoryManagerException {
        ProductType type = null;

        try {
            type = repositoryManager.getProductTypeById(productTypeId);
            return XmlRpcStructFactory.getXmlRpcProductType(type);
        } catch (Exception e) {
View Full Code Here

Examples of org.apache.oodt.cas.filemgr.structs.ProductType

            Hashtable<String, Object> metadataHash,
            Hashtable<String, Object> productTypeHash)
            throws RepositoryManagerException {
        Metadata m = new Metadata();
        m.addMetadata(metadataHash);
        ProductType productType = XmlRpcStructFactory.getProductTypeFromXmlRpc(productTypeHash);
        return this.getCatalogValues(m, productType).getHashtable();
    }
View Full Code Here

Examples of org.apache.oodt.cas.filemgr.structs.ProductType

            Hashtable<String, Object> metadataHash,
            Hashtable<String, Object> productTypeHash)
            throws RepositoryManagerException {
        Metadata m = new Metadata();
        m.addMetadata(metadataHash);
        ProductType productType = XmlRpcStructFactory.getProductTypeFromXmlRpc(productTypeHash);
        return this.getOrigValues(m, productType).getHashtable();
    }
View Full Code Here

Examples of org.apache.oodt.cas.filemgr.structs.ProductType

    public Hashtable<String, Object> getCatalogQuery(
            Hashtable<String, Object> queryHash,
            Hashtable<String, Object> productTypeHash)
            throws RepositoryManagerException, QueryFormulationException {
        Query query = XmlRpcStructFactory.getQueryFromXmlRpc(queryHash);
        ProductType productType = XmlRpcStructFactory.getProductTypeFromXmlRpc(productTypeHash);
        return XmlRpcStructFactory.getXmlRpcQuery(this.getCatalogQuery(query, productType));
    }
View Full Code Here

Examples of org.apache.oodt.cas.filemgr.structs.ProductType

        product.setProductId(doc.get("product_id"));
        product.setProductName(doc.get("product_name"));
        product.setProductStructure(doc.get("product_structure"));
        product.setTransferStatus(doc.get("product_transfer_status"));

        ProductType type = new ProductType();
        type.setDescription(doc.get("product_type_desc"));
        type.setProductTypeId(doc.get("product_type_id"));
        type.setName(doc.get("product_type_name"));
        type.setProductRepositoryPath(doc.get("product_type_repoPath"));
        type.setVersioner(doc.get("product_type_versioner"));
        product.setProductType(type);

        if (getMetadata) {
            List<Element> elements = null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.