Package eu.admire.registry.generic

Examples of eu.admire.registry.generic.EntryDescriptor


        "http://localhost:8081/dai/services/");

    String originalName = "TestUpdateDummy03";
    URI uri;
    uri = new URI("http://dummy.location/repository");
    mEntryDescriptor = new EntryDescriptor(originalName);
    Map<String, Set<String>> elementDescriptor = null;
    elementDescriptor = new HashMap<String, Set<String>>();
    String property1 = "containsConnection";
    Set<String> values1;
    values1 = new HashSet<String>();
View Full Code Here


    registry = new SimpleRDFProcessingElementRegistry(
        "http://localhost:8081/dai/services/");
    String originalName = "TestUpdateDummy03";
    URI uri;
    uri = new URI("http://dummy.location/repository");
    mEntryDescriptor = new EntryDescriptor(originalName);
    Map<String, Set<String>> elementDescriptor = null;
    elementDescriptor = new HashMap<String, Set<String>>();
    String property1 = "containsConnection";
    Set<String> values1;
    values1 = new HashSet<String>();
View Full Code Here

        "http://localhost:8081/dai/services/");

    String originalName = "TestUpdateDummy03";
    URI uri;
    uri = new URI("http://dummy.location/repository");
    mEntryDescriptor = new EntryDescriptor(originalName);
    Map<String, Set<String>> elementDescriptor = null;
    elementDescriptor = new HashMap<String, Set<String>>();
    String property1 = "containsConnection";
    Set<String> values1;
    values1 = new HashSet<String>();
View Full Code Here

  // @Override
  public List<ProcessingElementDescriptor> getProcessingElementMetadata(
      String processingElementName, Collection<String> metadataList) {

    EntryDescriptor entryDescriptor = new EntryDescriptor(
        processingElementName);
    Map<String, Set<String>> elementDescriptor = null;
    elementDescriptor = new HashMap<String, Set<String>>();
    String property1 = "title";
    Set<String> values1;
    values1 = new HashSet<String>();
    values1.add(processingElementName);
    elementDescriptor.put(property1, values1);
    entryDescriptor.setDescriptor(elementDescriptor);

    return null;
  }
View Full Code Here

        }
      }
      List<List<String>> results = query.queryEntryDescriptor(
          entryDescriptor, matchFully);
      for (List<String> result : results) {
        EntryDescriptor descriptor = new EntryDescriptor(result.get(0));
        if (result.get(0).contains("#")) {
          descriptor.setId(result.get(0).substring(
              result.get(0).indexOf('#') + 1));
        }
        descriptor.setName(result.get(1));
        if (result.get(1).contains("#")) {
          descriptor.setLocation(new URI(result.get(2).substring(
              result.get(2).indexOf('#') + 1)));
        } else {
          if (result.get(2) != null) {
            descriptor.setLocation(new URI(result.get(2)));
          } else {
            descriptor.setLocation(null);
          }

        }
        descriptor.setDescriptor(entryDescriptor.getDescriptor());
        listProcessingElementDescriptor.add(descriptor);
      }
      if (results.size() > 0) {
        LOG.debug("Found processing elements ");
      } else {
View Full Code Here

  }

  public List<EntryDescriptor> deleteProcessingElement(
      ProcessingElementDescriptor pe) throws DeleteFailedException {

    EntryDescriptor entryDescriptor = new EntryDescriptor(pe
        .getProcessingElementId());
    Map<String, Set<String>> elementDescriptor = null;
    elementDescriptor = new HashMap<String, Set<String>>();
    String property1 = "<http://purl.org/dc/elements/1.1/title>";
    Set<String> values1;
    values1 = new HashSet<String>();
    values1.add("\"" + pe.getName() + "\"");
    elementDescriptor.put(property1, values1);
    entryDescriptor.setDescriptor(elementDescriptor);
    List<EntryDescriptor> retrievedPE = super
        .deleteEntryDescriptor(entryDescriptor);

    return retrievedPE;
  }
View Full Code Here

  @Override
  public List<EntryDescriptor> deleteSType(String name)
      throws DeleteFailedException {
    List<EntryDescriptor> nonDeleted;
    EntryDescriptor entryDescriptor = new EntryDescriptor(name);
    Map<String, Set<String>> elementDescriptor = null;
    elementDescriptor = new HashMap<String, Set<String>>();
    String property1 = "<http://purl.org/dc/elements/1.1/title>";
    Set<String> values1;
    values1 = new HashSet<String>();
    values1.add(name);
    elementDescriptor.put(property1, values1);
    entryDescriptor.setDescriptor(elementDescriptor);
    nonDeleted = this.deleteEntryDescriptor(entryDescriptor);
    return nonDeleted;
  }
View Full Code Here

TOP

Related Classes of eu.admire.registry.generic.EntryDescriptor

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.