Package org.fao.geonet.exceptions

Examples of org.fao.geonet.exceptions.ObjectNotFoundEx


        Element metadata = dataMan.getMetadata(context, id, forEditing, withValidationErrors, keepXlinkAttributes);

    Element elem     = dataMan.getElementByRef(metadata, ref);

    if (elem == null)
      throw new ObjectNotFoundEx("element with ref='" + ref + "'");

    String fname = elem.getText();

        // Remove the file and update the file upload/downloads tables
        IResourceRemoveHandler removeHook = (IResourceRemoveHandler) context.getApplicationContext().getBean("resourceRemoveHandler");
View Full Code Here


      Element elem = new Element(Jeeves.Elem.RESPONSE).addContent(new Element("id").setText(newId));
      return elem;
    }

    //--- we get here only if the 'id' was not present or node was not found
    throw new ObjectNotFoundEx(id);
  }
View Full Code Here

    if (result != null)
      return result;

    //--- we get here only if the 'id' is present and the node was not found

    throw new ObjectNotFoundEx(id);
  }
View Full Code Here

TOP

Related Classes of org.fao.geonet.exceptions.ObjectNotFoundEx

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.