Package org.fao.geonet.exceptions

Examples of org.fao.geonet.exceptions.ConcurrentUpdateEx


    DataManager dataMan = gc.getBean(DataManager.class);

    //--- check if the metadata has been modified from last time

    if (version != null && !dataMan.getVersion(id).equals(version))
      throw new ConcurrentUpdateEx(id);

        boolean imageExists = testValidImage(new File(getFileName(file, true)), false);
        imageExists |= testValidImage(new File(getFileName(file, false)), false);
        imageExists |= testValidImage(new File(context.getUploadDir(), file), false);
View Full Code Here


            if(updatedMetada != null) {
          result = dataManager.updateMetadata(context, id, updatedMetada, validate, ufo, index, context.getLanguage(), changeDate, updateDateStamp);
            }
    }
    if (result == null) {
      throw new ConcurrentUpdateEx(id);
        }
  }
View Full Code Here

        DataManager dataMan = gc.getBean(DataManager.class);
        ThumbnailMaker thumbnailMaker = gc.getBean(ThumbnailMaker.class);

        //--- check if the metadata has been modified from last time
        if (version != null && !dataMan.getVersion(id).equals(version)) {
            throw new ConcurrentUpdateEx(id);
        }


        File thumbnailFile = thumbnailMaker.generateThumbnail(
                jsonConfig,
View Full Code Here

    DataManager dataMan = gc.getBean(DataManager.class);

    //--- check if the metadata has been modified from last time

    if (version != null && !dataMan.getVersion(id).equals(version))
      throw new ConcurrentUpdateEx(id);

    Element result = dataMan.getThumbnails(context, id);

    if (result == null)
      throw new OperationAbortedEx("Metadata not found", id);
View Full Code Here

    ajaxEditUtils.updateContent(params);

    // version already checked in updateContent
    if (! ajaxEditUtils.addAttribute(id, ref, name, null))
      throw new ConcurrentUpdateEx(id);

    Element elResp = new Element(Jeeves.Elem.RESPONSE);
    elResp.addContent(new Element(Geonet.Elem.ID).setText(id));
    return elResp;
  }
View Full Code Here

        DataManager dataMan = gc.getBean(DataManager.class);

        //--- check if the metadata has been modified from last time

        if (version != null && !dataMan.getVersion(id).equals(version)) {
            throw new ConcurrentUpdateEx(id);
        }

        //-----------------------------------------------------------------------
        //--- create destination directory
View Full Code Here

TOP

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

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.