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

Examples of org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException


            return XmlRpcStructFactory.getXmlRpcProduct(product);
        } catch (CatalogException e) {
            e.printStackTrace();
            LOG.log(Level.SEVERE, "Unable to obtain product by name: ["
                    + productName + "]: Message: " + e.getMessage());
            throw new CatalogException(e.getMessage());
        } catch (RepositoryManagerException e) {
            e.printStackTrace();
            LOG.log(Level.SEVERE, "Unable to obtain product type by id: ["
                    + product.getProductType().getProductTypeId()
                    + "]: Message: " + e.getMessage());
            throw new CatalogException(e.getMessage());
        }
    }
View Full Code Here


        } 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

                        .getSortByMetKey());

            return XmlRpcStructFactory.getXmlRpcQueryResults(queryResults);
        } catch (Exception e) {
            e.printStackTrace();
            throw new CatalogException("Failed to perform complex query : "
                    + e.getMessage());
        }
    }
View Full Code Here

      // that's it!
      return p.getProductId();
    } catch (Exception e) {
      e.printStackTrace();
      throw new CatalogException("Error ingesting product [" + p + "] : "
          + e.getMessage());
    }

  }
View Full Code Here

            e.printStackTrace();
            LOG.log(Level.SEVERE,
                    "ingestProduct: General Exception when adding metadata "
                            + metadata + " for product: " + p.getProductName()
                            + ": Message: " + e.getMessage());
            throw new CatalogException(e.getMessage());
        }

        return true;
    }
View Full Code Here

        } catch (Exception e) {
            e.printStackTrace();
            LOG.log(Level.SEVERE,
                    "Exception performing query against catalog for product type: ["
                            + productType.getName() + "] Message: " + e.getMessage());
            throw new CatalogException(e.getMessage());
        }
    }
View Full Code Here

            e.printStackTrace();
            LOG.log(Level.SEVERE,
                    "Exception obtaining metadata from catalog for product: ["
                            + product.getProductId() + "]: Message: "
                            + e.getMessage());
            throw new CatalogException(e.getMessage());
        }
    }
View Full Code Here

            e.printStackTrace();
            LOG.log(Level.SEVERE,
                    "Exception obtaining metadata from catalog for product: ["
                            + product.getProductId() + "]: Message: "
                            + e.getMessage());
            throw new CatalogException(e.getMessage());
        }
    }
View Full Code Here

    public synchronized void addMetadata(Metadata m, Product product)
            throws CatalogException {
        CompleteProduct p = CATALOG_CACHE.get(product.getProductId());

        if (p == null) {
            throw new CatalogException(
                    "Attempt to add metadata to a product: ["
                            + product.getProductName()
                            + "] that isn't the local cache!");
        } else {
            p.setMetadata(m);
View Full Code Here

            removeProductDocument(product);
        }

        if (p == null) {
            // not in index
            throw new CatalogException(
                    "Attempt to remove metadata to a product: ["
                            + product.getProductName()
                            + "] that isn't in the index or the local cache!");

        }

        Metadata currMet = p.getMetadata();
        List<Element> metadataTypes = null;

        try {
            metadataTypes = valLayer.getElements(product.getProductType());
        } catch (ValidationLayerException e) {
            e.printStackTrace();
            throw new CatalogException(
                    "ValidationLayerException when trying to obtain element list for product type: "
                            + product.getProductType().getName()
                            + ": Message: " + e.getMessage());
        }
View Full Code Here

TOP

Related Classes of org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException

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.