Package org.apache.oodt.cas.filemgr.structs

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


        List productTypes = safeGetProductTypes();

        if (productTypes != null && productTypes.size() > 0) {
            for (Iterator i = productTypes.iterator(); i.hasNext();) {
                ProductType type = (ProductType) i.next();
                try {
                    products = client.query(query, type);
                    if (products != null && products.size() > 0) {
                        for (Iterator j = products.iterator(); j.hasNext();) {
                            Product product = (Product) j.next();
                            prodIds.add(product.getProductId());
                        }
                    }
                } catch (CatalogException e) {
                    LOG.log(Level.WARNING, "Exception querying for: ["
                            + type.getName() + "] products: Message: "
                            + e.getMessage());
                }

            }
View Full Code Here


     */
    public ProductType getProductTypeByName(String productTypeName)
            throws RepositoryManagerException {
        for (Iterator<String> i = productTypeMap.keySet().iterator(); i.hasNext();) {
            String typeId = (String) i.next();
            ProductType type = (ProductType) productTypeMap.get(typeId);
            if (type.getName().equals(productTypeName)) {
                return type;
            }
        }

        LOG.log(Level.WARNING,
View Full Code Here

                    if (productTypeNodeList != null
                            && productTypeNodeList.getLength() > 0) {
                        for (int j = 0; j < productTypeNodeList.getLength(); j++) {
                            Node productTypeNode = productTypeNodeList.item(j);
                            ProductType type = XmlStructFactory
                                    .getProductType(productTypeNode);
                            LOG.log(Level.FINE,
                                    "XMLRepositoryManager: found product type: ["
                                            + type.getName() + "]");
                            productTypeMap.put(type.getProductTypeId(), type);
                        }
                    }
                }
            } catch (URISyntaxException e) {
                LOG.log(Level.WARNING,
View Full Code Here

    }

    public static void PostQuery(String product,
            org.apache.oodt.cas.filemgr.structs.Query casQuery) {
        Vector results = new Vector();
        ProductType productType = null;

        try {
            productType = client.getProductTypeById(product);
        } catch (RepositoryManagerException e) {
            System.out.println("Could not access Product Type information");
View Full Code Here

    }

    public static void listElements(String prodID) {
        Vector elements = new Vector();
        ProductType type;

        try {
            type = client.getProductTypeById(prodID);
            elements = (Vector) client.getElementsByProductType(type);
        } catch (RepositoryManagerException e1) {
View Full Code Here

            throws RepositoryManagerException {
        Connection conn = null;
        Statement statement = null;
        ResultSet rs = null;

        ProductType productType = null;

        try {
            conn = dataSource.getConnection();
            statement = conn.createStatement();
View Full Code Here

            throws RepositoryManagerException {
        Connection conn = null;
        Statement statement = null;
        ResultSet rs = null;

        ProductType productType = null;

        try {
            conn = dataSource.getConnection();
            statement = conn.createStatement();
View Full Code Here

                    + getProductTypeSql);
            rs = statement.executeQuery(getProductTypeSql);

            productTypes = new Vector<ProductType>();
            while (rs.next()) {
                ProductType productType = DbStructFactory.getProductType(rs);
                productTypes.add(productType);
            }

            if (productTypes.size() == 0) {
                productTypes = null;
View Full Code Here

        if (productTypes == null) {
            return productTypeVector;
        }

        for (Iterator<ProductType> i = productTypes.iterator(); i.hasNext();) {
            ProductType type = i.next();
            Hashtable<String, Object> typeHash = getXmlRpcProductType(type);
            productTypeVector.add(typeHash);
        }
        return productTypeVector;
    }
View Full Code Here

    public static List<ProductType> getProductTypeListFromXmlRpc(Vector<Hashtable<String, Object>> productTypeVector) {
        List<ProductType> productTypeList = new Vector<ProductType>();
        for (Iterator<Hashtable<String, Object>> i = productTypeVector.iterator(); i.hasNext();) {
            Hashtable<String, Object> productTypeHash = i.next();
            ProductType type = getProductTypeFromXmlRpc(productTypeHash);
            productTypeList.add(type);
        }

        return productTypeList;
    }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.filemgr.structs.ProductType

Copyright © 2018 www.massapicom. 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.