Package org.fao.geonet.domain

Examples of org.fao.geonet.domain.Source


    params.uuid = UUID.randomUUID().toString();

    String id = settingMan.add("harvesting", "node", getType());

    storeNode(params, "id:"+id);
        Source source = new Source(params.uuid, params.name, false);
        context.getBean(SourceRepository.class).save(source);

        return id;
  }
View Full Code Here


    storeNode(copy, path);

    //--- we update a copy first because if there is an exception GeonetParams
    //--- could be half updated and so it could be in an inconsistent state

        Source source = new Source(copy.uuid, copy.name, false);
        context.getBean(SourceRepository.class).save(source);

        params = copy;
        super.setParams(params);
View Full Code Here

    params.create(node);
    //--- force the creation of a new uuid
    params.uuid = UUID.randomUUID().toString();
    String id = settingMan.add("harvesting", "node", getType());
    storeNode(params, "id:"+id);
        Source source = new Source(params.uuid, params.name, true);
        context.getBean(SourceRepository.class).save(source);
        Resources.copyLogo(context, "images" + File.separator + "harvesting" + File.separator + params.icon, params.uuid);
    return id;
  }
View Full Code Here

    settingMan.removeChildren(path);
    //--- update database
    storeNode(copy, path);
    //--- we update a copy first because if there is an exception CswParams
    //--- could be half updated and so it could be in an inconsistent state
        Source source = new Source(copy.uuid, copy.name, true);
        context.getBean(SourceRepository.class).save(source);
        Resources.copyLogo(context, "images" + File.separator + "harvesting" + File.separator + copy.icon, copy.uuid);
   
    params = copy;
        super.setParams(params);
View Full Code Here

    params.uuid = UUID.randomUUID().toString();

    String id = settingMan.add("harvesting", "node", getType());

    storeNode(params, "id:"+id);
        Source source = new Source(params.uuid, params.name, true);
        context.getBean(SourceRepository.class).save(source);
        Resources.copyLogo(context, "images" + File.separator + "harvesting" + File.separator + "gn20.gif", params.uuid);
       
    return id;
  }
View Full Code Here

    storeNode(copy, path);

    //--- we update a copy first because if there is an exception GeonetParams
    //--- could be half updated and so it could be in an inconsistent state

        Source source = new Source(copy.uuid, copy.name, true);
        context.getBean(SourceRepository.class).save(source);

        params = copy;
        super.setParams(params);
View Full Code Here

    params.uuid = UUID.randomUUID().toString();

    String id = settingMan.add("harvesting", "node", getType());

    storeNode(params, "id:"+id);
        Source source = new Source(params.uuid, params.name, true);
        context.getBean(SourceRepository.class).save(source);
        Resources.copyLogo(context, "images" + File.separator + "harvesting" + File.separator + params.icon, params.uuid);
       
    return id;
  }
View Full Code Here

    storeNode(copy, path);

    //--- we update a copy first because if there is an exception Params
    //--- could be half updated and so it could be in an inconsistent state

        Source source = new Source(copy.uuid, copy.name, true);
        context.getBean(SourceRepository.class).save(source);
        Resources.copyLogo(context, "images" + File.separator + "harvesting" + File.separator + copy.icon, copy.uuid);
   
    params = copy;
        super.setParams(params);
View Full Code Here

    params.uuid = UUID.randomUUID().toString();

    String id = settingMan.add("harvesting", "node", getType());

    storeNode(params, "id:"+id);
        Source source = new Source(params.uuid, params.name, true);
        context.getBean(SourceRepository.class).save(source);
        Resources.copyLogo(context, "images" + File.separator + "harvesting" + File.separator + params.icon, params.uuid);
   
    return id;
  }
View Full Code Here

    storeNode(copy, path);

    //--- we update a copy first because if there is an exception GeoPRESTParams
    //--- could be half updated and so it could be in an inconsistent state

        Source source = new Source(copy.uuid, copy.name, true);
        context.getBean(SourceRepository.class).save(source);
        Resources.copyLogo(context, "images" + File.separator + "harvesting" + File.separator + copy.icon, copy.uuid);

    params = copy;
        super.setParams(params);
View Full Code Here

TOP

Related Classes of org.fao.geonet.domain.Source

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.