Package eu.planets_project.ifr.core.storage.impl.jcr

Examples of eu.planets_project.ifr.core.storage.impl.jcr.JcrDigitalObjectManagerImpl.retrieve()


            wfResultItem.addLogInfo("****** digital object before store.");
          dgo = dodm.store(PERMANENT_URI_PATH, dgo, true);
          wfResultItem.addLogInfo("****** digital object after store: " + dgo.toString());
          URI permanentUri = dgo.getPermanentUri();
            wfResultItem.addLogInfo("Store DO in JCR res: " + permanentUri.toString());
          DigitalObject tmpDO = dodm.retrieve(permanentUri, true);
            wfResultItem.addLogInfo("result DO from JCR content length: " + tmpDO.getContent().length());
            wfResultItem.addLogInfo("result DO from JCR after retrieve: " + tmpDO.toString());
            wfResultItem.setEndTime(System.currentTimeMillis());

    } catch (Exception e) {
View Full Code Here


              URI permanentUri2 = resultDO2.getPermanentUri();
              URI permanentUri3 = resultDO3.getPermanentUri();
              wfResultItem.addLogInfo("Store DO in JCR res: " + permanentUri.toString());
                wfResultItem.addLogInfo("Store DO2 in JCR res: " + permanentUri2.toString());
                wfResultItem.addLogInfo("Store DO3 in JCR res: " + permanentUri3.toString());
              DigitalObject tmpDO = dodm.retrieve(permanentUri, true);
              wfResultItem.addLogInfo("result DO from JCR title: " + tmpDO.getTitle());
                wfResultItem.addLogInfo("result DO from JCR content length: " + tmpDO.getContent().length());
               
            DigitalObjectContent c2 = dodm.retrieveContent(permanentUri);
            wfResultItem.addLogInfo("retrieveContent result length: " + c2.length());
View Full Code Here

                wfResultItem.addLogInfo("result DO from JCR content length: " + tmpDO.getContent().length());
               
            DigitalObjectContent c2 = dodm.retrieveContent(permanentUri);
            wfResultItem.addLogInfo("retrieveContent result length: " + c2.length());

              tmpDO = dodm.retrieve(permanentUri, false);
              wfResultItem.addLogInfo("retrieve DO without content");
              if (tmpDO.getContent() != null)
              {
                wfResultItem.addLogInfo("result DO without content from JCR content length: " + tmpDO.getContent().length());
              }
View Full Code Here

     
           // Fix up any encoding issues:
            id = PDURI.encodePlanetsUriStringAsUri(id).toASCIIString();
     
      // unfortunately, we have to search for the right metadata field
      DigitalObject object = jcrDo.retrieve(new URI(id), false);     
      for(Metadata md : object.getMetadata()) {
        if(md.getName() != null && md.getName().equals(MIME_TYPE_METADATA_NAME))
          response.setContentType(md.getContent());
      }     
      is = jcrDo.retrieveContentAsStream(object.getPermanentUri());
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.