Examples of ProductType


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

    }

    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

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

            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

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

            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

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

                    + 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

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

        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

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

    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

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

        return productTypeHash;
    }

    public static ProductType getProductTypeFromXmlRpc(Hashtable<String, Object> productTypeHash) {
        ProductType type = new ProductType();
        type.setDescription((String) productTypeHash.get("description"));
        type.setName((String) productTypeHash.get("name"));
        type.setProductRepositoryPath((String) productTypeHash
                .get("repositoryPath"));
        type.setProductTypeId((String) productTypeHash.get("id"));
        type.setVersioner((String) productTypeHash.get("versionerClass"));
        Metadata typeMet = new Metadata();
        if (productTypeHash.get("typeMetadata") != null) {
            typeMet
                    .addMetadata((Hashtable) productTypeHash.get("typeMetadata"));
        }

        if (productTypeHash.get("typeExtractors") != null) {
            type
                    .setExtractors(getTypeExtractorsFromXmlRpc((Vector<Hashtable<String, Object>>) productTypeHash
                            .get("typeExtractors")));
        }
       
        if (productTypeHash.get("typeHandlers") != null) {
            type.setHandlers(getTypeHandlersFromXmlRpc((Vector<Hashtable<String, Object>>) productTypeHash
                        .get("typeHandlers")));
        }

        type.setTypeMetadata(typeMet);
        return type;
    }
View Full Code Here

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

        // we'll use the get product page method for each product type
        // paginate through products using source product type

        for (Iterator i = sourceProductTypes.iterator(); i.hasNext();) {
            ProductType type = (ProductType) i.next();
            try {
                exportTypeToDest(type);
            } catch (Exception e) {
                LOG.log(Level.WARNING, "Error exporting product type: ["
                        + type.getName() + "] from source to dest: Message: "
                        + e.getMessage(), e);
                throw e;
            }
        }
View Full Code Here

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

                String[] typesAndIdsEnc = args[++i].split(",");

                types = new Vector(typesAndIdsEnc.length);
                for (int j = 0; j < typesAndIdsEnc.length; j++) {
                    String[] typeIdToks = typesAndIdsEnc[j].split("\\|");
                    ProductType type = new ProductType();
                    type.setName(typeIdToks[0]);
                    type.setProductTypeId(typeIdToks[1]);
                    types.add(type);
                }
            } else if (args[i].equals("--sourceCatProps")) {
                srcCatPropFile = args[++i];
            } else if (args[i].equals("--destCatProps")) {
View Full Code Here

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

        }

        // iterate through the source types and try and find the type in the
        // destList
        for (Iterator i = sourceList.iterator(); i.hasNext();) {
            ProductType type = (ProductType) i.next();
            if (!typeInList(type, destList)) {
                LOG.log(Level.WARNING, "Source type: [" + type.getName()
                        + "] not present in dest file manager");
                return false;
            }
        }
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.