Examples of save()


Examples of org.fao.geonet.repository.ThesaurusActivationRepository.save()

            final ThesaurusActivation activation = new ThesaurusActivation();
            activation.setId(fname);
            activation.setActivated(Constants.toBoolean_fromYNChar(activated.charAt(0)));

            thesaurusRepository.save(activation);

        } else {
            // Thesaurus does not exist
            throw new Exception("Thesaurus not found");
        }
View Full Code Here

Examples of org.fao.geonet.repository.UserGroupRepository.save()

            long count = userGroupRepo.count(where(hasGroupId(groupId)).and(hasUserId(userId)));

            if (count == 0) {
                UserGroup userGroup = new UserGroup();
                userGroup.getId().setGroupId(groupId).setUserId(userId);
                userGroupRepo.save(userGroup);
            }
        }

        return user;
    }
View Full Code Here

Examples of org.fao.geonet.repository.UserRepository.save()

                .setUsername(username);
        user.getSecurity().setPassword(passwordHash);
        user.getEmailAddresses().add(email);
        user.getAddresses().add(new Address().setAddress(address).setCountry(country).setCity(city).setState(state).setZip(zip));

        userRepository.save(user);

        // The user is created as registereduser on the GUEST group, and not mapped on the specific optional
        // profile. Then the catalogue administrator could manage the created user.
        UserGroup userGroup = new UserGroup().setUser(user).setGroup(group).setProfile(Profile.RegisteredUser);
        context.getBean(UserGroupRepository.class).save(userGroup);
View Full Code Here

Examples of org.fao.geonet.repository.statistic.SearchRequestRepository.save()

                    Log.debug(Geonet.SEARCH_LOGGER, "No queryInfo objects to insert into database for this query: " + this.luceneQuery);
                }
            }
        }

        requestRepo.save(request);
        if (Log.isDebugEnabled(Geonet.SEARCH_LOGGER))
            Log.debug(Geonet.SEARCH_LOGGER, "QueryRequest inserted (id: " + this.requestId + ")");
        return true;
    }
View Full Code Here

Examples of org.farng.mp3.MP3File.save()

//            frameBody = new FrameBodyTALB((byte) 0, "albumTitle");
//            frame = new ID3v2_4Frame(frameBody);
//            filenameId3.setFrame(frame);
            TagOptionSingleton.getInstance().setFilenameTagSave(true);

            mp3.save();
           


            System.out.println(mp3.toString());
        } catch (Exception ex) {
View Full Code Here

Examples of org.flexunit.ant.report.Report.save()

      // Fetch report, add test, and write to disk
      Report report = reports.get(suiteName);
      report.addTest(test);

      report.save(reportDir);
   }

   /**
    * Parse the parameter String and returns it as a document
    *
 
View Full Code Here

Examples of org.formulacompiler.spreadsheet.SpreadsheetSaver.save()

  public void save() throws IOException, SpreadsheetException
  {
    for (Factory factory : FACTORIES) {
      if (factory.canHandle( this.config.typeExtension )) {
        final SpreadsheetSaver saver = factory.newInstance( this.config );
        saver.save();
        return;
      }
    }
    throw new SpreadsheetException.UnsupportedFormat( "No saver found for extension " + this.config.typeExtension );
  }
View Full Code Here

Examples of org.freeplane.features.mapio.mindmapmode.MMapIO.save()

      map.getRootNode().setText(name);
      Controller.getCurrentController().getMapViewManager().getMapViewComponent().repaint();
    }

    if (save) {
      mapIO.save(map, f);
    }
    else {
      if(f != null) {
        try {
          map.setURL(Compat.fileToUrl(f));
View Full Code Here

Examples of org.fusesource.ide.camel.model.io.ICamelEditorInput.save()

    if (designEditor.getEditorInput() != null && designEditor.getEditorInput() instanceof ICamelEditorInput) {
      ICamelEditorInput camelInput = (ICamelEditorInput) designEditor.getEditorInput();
      IDocument doc = getDocument();
      if (doc != null) {
        String xml = doc.get();
        camelInput.save(xml);
      }
    } else {   
      // then we call the save method of the text editor
      sourceEditor.doSave(monitor);
    }
View Full Code Here

Examples of org.geoserver.catalog.Catalog.save()

        // GR: this shouldn't fail, the Catalog.save(StoreInfo) API does not declare any action in
        // case
        // of a failure!... strange, why a save can't fail?
        // Still, be cautious and wrap it in a try/catch block so the page does not blow up
        try {
            catalog.save(savedStore);
        } catch (RuntimeException e) {
            LOGGER.log(Level.INFO, "Adding the store for " + info.getURL(), e);
            throw new IllegalArgumentException(
                    "The coverage store could not be saved. Failure message: " + e.getMessage());
        }
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.