Examples of DigitalObjectNotFoundException


Examples of eu.planets_project.ifr.core.storage.api.DigitalObjectManager.DigitalObjectNotFoundException

                                       + DOJCRConstants.NODE_INDEX_END
                )
            );
      } catch (Exception e) {
        _log.log(Level.INFO, DIGITAL_OBJECT_NOT_FOUND + e.getMessage(), e);
          throw new DigitalObjectNotFoundException(DIGITAL_OBJECT_NOT_FOUND + e.getMessage());
       }

      return node;
    }
View Full Code Here

Examples of eu.planets_project.ifr.core.storage.api.DigitalObjectManager.DigitalObjectNotFoundException

       if (eventList != null) b.events(eventList);
           _retVal = b.build();
           _log.log(Level.INFO, "fillDigitalObject() retrieve completed. " + _retVal.toString());
      } catch (Exception e) {
        _log.log(Level.INFO, DIGITAL_OBJECT_NOT_FOUND + e.getMessage(), e);
          throw new DigitalObjectNotFoundException(DIGITAL_OBJECT_NOT_FOUND + e.getMessage());
      }
     
      return _retVal;
    }
View Full Code Here

Examples of eu.planets_project.ifr.core.storage.api.DigitalObjectManager.DigitalObjectNotFoundException

          DigitalObjectContent content =
            evaluateContentByReference(permanentUri.toString());
           _retVal = fillDigitalObject(node, content);
         } catch (MalformedURLException e) {
           _log.log(Level.INFO, DIGITAL_OBJECT_NOT_FOUND + " MalformedURLException: " + e.getMessage(), e);
             throw new DigitalObjectNotFoundException(DIGITAL_OBJECT_NOT_FOUND + e.getMessage());
          }
      } catch (Exception e) {
        _log.log(Level.INFO, DIGITAL_OBJECT_NOT_FOUND + e.getMessage(), e);
          throw new DigitalObjectNotFoundException(DIGITAL_OBJECT_NOT_FOUND + e.getMessage());
       } finally {
        closeSession();
      }
     
      return _retVal;
View Full Code Here

Examples of eu.planets_project.ifr.core.storage.api.DigitalObjectManager.DigitalObjectNotFoundException

         openSession();
          Node node = findNodeByPermanentUri(permanentUri);
           _retVal = evaluateContentAsStream(node, permanentUri.toString());
      } catch (Exception e) {
        _log.log(Level.INFO, DIGITAL_OBJECT_NOT_FOUND + e.getMessage(), e);
          throw new DigitalObjectNotFoundException(DIGITAL_OBJECT_NOT_FOUND + e.getMessage());
      } finally {
        closeSession();
      }
     
      return _retVal;
View Full Code Here

Examples of eu.planets_project.ifr.core.storage.api.DigitalObjectManager.DigitalObjectNotFoundException

         openSession();
          Node node = findNodeByPermanentUri(permanentUri);
           _retVal = evaluateContent(node, true, permanentUri.toString()).getInputStream();
      } catch (Exception e) {
        _log.log(Level.INFO, DIGITAL_OBJECT_NOT_FOUND + e.getMessage(), e);
          throw new DigitalObjectNotFoundException(DIGITAL_OBJECT_NOT_FOUND + e.getMessage());
      } finally {
        closeSession();
      }
     
      return _retVal;
View Full Code Here

Examples of eu.planets_project.ifr.core.storage.api.DigitalObjectManager.DigitalObjectNotFoundException

      throws ServletException, IOException {
    InputStream is = null;
    String id = request.getParameter(ID_PARAMETER_NAME);
   
    try {
      if(id==null) throw new DigitalObjectNotFoundException("id is null");

      // Fix up any encoding issues:
      id = PDURI.encodePlanetsUriStringAsUri(id).toASCIIString();
     
      DigitalObjectRefBean digoRef = dh.get(id);
      if(digoRef==null) throw new DigitalObjectNotFoundException("digital object "+id+" not found");
     
      // set the metadata if it's contained within the digital object
      DigitalObject object = digoRef.getDigitalObject();
      for(Metadata md : object.getMetadata()) {
        if(md.getName().equals(MIME_TYPE_METADATA_NAME))
View Full Code Here

Examples of eu.planets_project.ifr.core.storage.api.DigitalObjectManager.DigitalObjectNotFoundException

    JcrDigitalObjectManagerImpl jcrDo =
      (JcrDigitalObjectManagerImpl) JcrDigitalObjectManagerImpl.getInstance();
   
    String id = request.getParameter(ID_PARAMETER_NAME);
    try {
      if(id==null) throw new DigitalObjectNotFoundException("id is null");
     
           // Fix up any encoding issues:
            id = PDURI.encodePlanetsUriStringAsUri(id).toASCIIString();
     
      // unfortunately, we have to search for the right metadata field
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.