Package org.fao.geonet.repository

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


    private Element renameGroup(Element params, ServiceContext context) {
        final SchematronCriteriaGroupRepository repository = context.getBean(SchematronCriteriaGroupRepository.class);
        String groupName = Util.getParam(params, PARAM_GROUP_NAME);
        int schematronId = Integer.parseInt(Util.getParam(params, PARAM_SCHEMATRON_ID));
        String newRequirement = Util.getParam(params, PARAM_REQUIREMENT, null);
        final SchematronCriteriaGroup group = repository.findOne(new SchematronCriteriaGroupId(groupName, schematronId));

        SchematronRequirement finalRequirement = group.getRequirement();
        if (newRequirement != null) {
            finalRequirement = SchematronRequirement.valueOf(newRequirement.toUpperCase());
        }
View Full Code Here


        final String value = Util.getParam(params, PARAM_VALUE, "");
        final String uitype = Util.getParam(params, PARAM_UI_TYPE);
        final String uivalue = Util.getParam(params, PARAM_UI_VALUE, "");

        final SchematronCriteriaGroupId id = new SchematronCriteriaGroupId(groupName, schematronId);
        SchematronCriteriaGroup group = criteriaGroupRepository.findOne(id);
        if (group == null) {
            group = new SchematronCriteriaGroup();
            group.setId(id);
            group.setRequirement(SchematronRequirement.REQUIRED);
        }
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.