Examples of update()


Examples of org.fao.geonet.kernel.harvest.harvester.AbstractHarvester.update()

        Element ownerIdE = new Element("ownerId");
        ownerIdE.setText(ownerId);
        node.addContent(ownerIdE);

    ah.update(node);
    return true;
  }

    /**
     * This method must be synchronized because it cannot run if we are updating some entries.
View Full Code Here

Examples of org.fao.geonet.repository.GroupRepository.update()

            groupRepository.save(group);

            elRes.addContent(new Element(Jeeves.Elem.OPERATION).setText(Jeeves.Text.ADDED));
        } else {
            final String finalWebsite = website;
            groupRepository.update(Integer.valueOf(id), new Updater<Group>() {
                @Override
                public void apply(final Group entity) {
                    entity.setEmail(email)
                            .setName(name)
                            .setDescription(description)
View Full Code Here

Examples of org.fao.geonet.repository.OperationRepository.update()

      Element operationEl = (Element) o;

      String  id    = Util.getAttrib(operationEl, Params.ID);
      final Element label = Util.getChild (operationEl, "label");

            operationRepository.update(Integer.valueOf(id), new Updater<Operation>() {
                @Override
                public void apply(@Nonnull Operation entity) {
                    entity.setLabelTranslations(label.getChildren());
                }
            });
View Full Code Here

Examples of org.fao.geonet.repository.SchematronCriteriaGroupRepository.update()

        String groupName = Util.getParam(params, PARAM_GROUP_NAME);
        int schematronId = Integer.parseInt(Util.getParam(params, PARAM_SCHEMATRON_ID));
        final String requirement = Util.getParam(params, PARAM_REQUIREMENT, null);

        if (requirement != null) {
            repository.update(new SchematronCriteriaGroupId(groupName, schematronId), new Updater<SchematronCriteriaGroup>() {
                @Override
                public void apply(@Nonnull SchematronCriteriaGroup entity) {
                    entity.setRequirement(SchematronRequirement.valueOf(requirement.toUpperCase()));
                }
            });
View Full Code Here

Examples of org.fao.geonet.repository.SchematronCriteriaRepository.update()

        final String uiType = Util.getParam(params, PARAM_UI_TYPE, null);
        final String uiValue = Util.getParam(params, PARAM_UI_VALUE, null);


        final SchematronCriteriaRepository criteriaRepository = context.getBean(SchematronCriteriaRepository.class);
        criteriaRepository.update(id, new Updater<SchematronCriteria>() {
            @Override
            public void apply(@Nonnull SchematronCriteria entity) {
                if (type != null) {
                    entity.setType(SchematronCriteriaType.valueOf(type.toUpperCase()));
                }
View Full Code Here

Examples of org.fcrepo.server.search.FieldSearch.update()

            DOReader reader =
                    manager.getReader(Server.USE_DEFINITIVE_STORE,
                                      m_context,
                                      obj.getPid());
            logger.info("COMMIT: Updating FieldSearch indexes...");
            fieldSearch.update(reader);

        } catch (ServerException se) {
            System.out.println("Error while replicating: "
                    + se.getClass().getName() + ": " + se.getMessage());
            se.printStackTrace();
View Full Code Here

Examples of org.fcrepo.utilities.install.container.TomcatServerXML.update()

    @Test
    public void testUpdate() throws Exception {
        TomcatServerXML serverXML;
        serverXML = new TomcatServerXML(is, installOptions);
        serverXML.update();
    }

    private InstallOptions getDefaultOptions() throws Exception {
        Map<String, String> map = new HashMap<String, String>();
        map.put(InstallOptions.TOMCAT_HTTP_PORT, "8080");
View Full Code Here

Examples of org.fenixedu.academic.domain.accounting.paymentCodes.AccountingEventPaymentCode.update()

    protected List<AccountingEventPaymentCode> updatePaymentCodes() {
        final Money totalAmount = calculateTotalAmount();
        final AccountingEventPaymentCode nonProcessedPaymentCode = getNonProcessedPaymentCode();

        if (nonProcessedPaymentCode != null) {
            nonProcessedPaymentCode.update(new YearMonthDay(), calculatePaymentCodeEndDate(), totalAmount, totalAmount);
        } else {
            final AccountingEventPaymentCode paymentCode = getCancelledPaymentCode();
            if (paymentCode != null) {
                paymentCode.update(new YearMonthDay(), calculatePaymentCodeEndDate(), totalAmount, totalAmount);
                paymentCode.setState(PaymentCodeState.NEW);
View Full Code Here

Examples of org.fenixedu.academic.domain.accounting.paymentCodes.MasterDegreeInsurancePaymentCode.update()

            return createMasterDegreeInsurancePaymentCode(executionYear);
        } else {
            final MasterDegreeInsurancePaymentCode masterDegreeInsurancePaymentCode =
                    getMasterDegreeInsurancePaymentCodeFor(executionYear);
            final Money insuranceAmount = new Money(executionYear.getInsuranceValue().getAnnualValueBigDecimal());
            masterDegreeInsurancePaymentCode.update(new YearMonthDay(),
                    calculateMasterDegreeInsurancePaymentCodeEndDate(executionYear), insuranceAmount, insuranceAmount);

            return masterDegreeInsurancePaymentCode;
        }
    }
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.scientificCouncil.curricularPlans.OfficialPublicationBean.SpecializationName.update()

        if (name.getEnName().compareTo("") == 0 || name.getPtName().compareTo("") == 0) {
            addErrorMessage(request, "error", "confirm.error.edit.name.specializationArea");
        } else {
            // update whether the names have been changed

            name.update();
        }
        request.setAttribute("officialPub", name.getSpecializationArea().getOfficialPublication());
        return preparePubs(mapping, form, request, response);
    }
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.