Package org.apache.oodt.cas.metadata

Examples of org.apache.oodt.cas.metadata.Metadata.replaceMetadata()


    if (refs == null || (refs != null && refs.size() == 0)) {
      refs = this.catalog.getProductReferences(product);
    }

    for (Reference r : refs) {
      pMet.replaceMetadata(ProductMetKeys.PRODUCT_ORIG_REFS, r.getOrigReference() != null
          ? VersioningUtils
          .getAbsolutePathFromUri(r.getOrigReference()):"unknown");
      pMet.replaceMetadata(ProductMetKeys.PRODUCT_DATASTORE_REFS,
          r.getDataStoreReference() != null ?
              VersioningUtils.getAbsolutePathFromUri(r.getDataStoreReference()):"unknown");
View Full Code Here


    for (Reference r : refs) {
      pMet.replaceMetadata(ProductMetKeys.PRODUCT_ORIG_REFS, r.getOrigReference() != null
          ? VersioningUtils
          .getAbsolutePathFromUri(r.getOrigReference()):"unknown");
      pMet.replaceMetadata(ProductMetKeys.PRODUCT_DATASTORE_REFS,
          r.getDataStoreReference() != null ?
              VersioningUtils.getAbsolutePathFromUri(r.getDataStoreReference()):"unknown");
      pMet.replaceMetadata(ProductMetKeys.PRODUCT_FILE_SIZES, String.valueOf(r
          .getFileSize()));
      pMet.replaceMetadata(ProductMetKeys.PRODUCT_MIME_TYPES,
View Full Code Here

          ? VersioningUtils
          .getAbsolutePathFromUri(r.getOrigReference()):"unknown");
      pMet.replaceMetadata(ProductMetKeys.PRODUCT_DATASTORE_REFS,
          r.getDataStoreReference() != null ?
              VersioningUtils.getAbsolutePathFromUri(r.getDataStoreReference()):"unknown");
      pMet.replaceMetadata(ProductMetKeys.PRODUCT_FILE_SIZES, String.valueOf(r
          .getFileSize()));
      pMet.replaceMetadata(ProductMetKeys.PRODUCT_MIME_TYPES,
          r.getMimeType() != null ? r.getMimeType().getName() : "unknown");
    }
View Full Code Here

      pMet.replaceMetadata(ProductMetKeys.PRODUCT_DATASTORE_REFS,
          r.getDataStoreReference() != null ?
              VersioningUtils.getAbsolutePathFromUri(r.getDataStoreReference()):"unknown");
      pMet.replaceMetadata(ProductMetKeys.PRODUCT_FILE_SIZES, String.valueOf(r
          .getFileSize()));
      pMet.replaceMetadata(ProductMetKeys.PRODUCT_MIME_TYPES,
          r.getMimeType() != null ? r.getMimeType().getName() : "unknown");
    }

    return pMet;
  }
View Full Code Here

      HashMap<String, String> keyToGroupMap = new HashMap<String, String>();
      Metadata staticMet = selected.getModel().getStaticMetadata();
      Metadata inheritedMet = selected.getInheritedStaticMetadata(state);
      Metadata completeMet = new Metadata();
      if (staticMet != null) {
        completeMet.replaceMetadata(staticMet.getSubMetadata(state
            .getCurrentMetGroup()));
      }
      if (selected.getModel().getExtendsConfig() != null) {
        for (String configGroup : selected.getModel().getExtendsConfig()) {
          Metadata extendsMetadata = state.getGlobalConfigGroups()
View Full Code Here

            return;
          }
          String newKey = getKey(newGrouplessKey, state);
          System.out.println("newKey: " + newKey);
          if (oldKey != null) {
            staticMet.replaceMetadata(newKey, staticMet.getAllMetadata(oldKey));
            if (staticMet.containsKey(oldKey + "/envReplace"))
              staticMet.replaceMetadata(newKey,
                  staticMet.getAllMetadata(oldKey + "/envReplace"));
            if (!newKey.equals(oldKey))
              staticMet.removeMetadata(oldKey);
View Full Code Here

          String newKey = getKey(newGrouplessKey, state);
          System.out.println("newKey: " + newKey);
          if (oldKey != null) {
            staticMet.replaceMetadata(newKey, staticMet.getAllMetadata(oldKey));
            if (staticMet.containsKey(oldKey + "/envReplace"))
              staticMet.replaceMetadata(newKey,
                  staticMet.getAllMetadata(oldKey + "/envReplace"));
            if (!newKey.equals(oldKey))
              staticMet.removeMetadata(oldKey);
            notifyListeners();
          } else {
View Full Code Here

                  staticMet.getAllMetadata(oldKey + "/envReplace"));
            if (!newKey.equals(oldKey))
              staticMet.removeMetadata(oldKey);
            notifyListeners();
          } else {
            staticMet.replaceMetadata(oldKey = newKey, (String) null);
          }
        } else if (e.getColumn() == 2) {
          if (oldKey != null) {
            String newValue = (String) table.getValueAt(e.getFirstRow(),
                e.getColumn());
View Full Code Here

            if (oldKey.endsWith("/envReplace")) {
              newValue = newValue.toLowerCase();
              if (newValue.equals("false"))
                staticMet.removeMetadata(oldKey);
              else
                staticMet.replaceMetadata(oldKey,
                    Arrays.asList(newValue.split(",")));
            } else {
              staticMet.replaceMetadata(oldKey,
                  Arrays.asList(newValue.split(",")));
            }
View Full Code Here

                staticMet.removeMetadata(oldKey);
              else
                staticMet.replaceMetadata(oldKey,
                    Arrays.asList(newValue.split(",")));
            } else {
              staticMet.replaceMetadata(oldKey,
                  Arrays.asList(newValue.split(",")));
            }
            notifyListeners();
          }
        } else if (e.getColumn() == 3) {
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.