Examples of filtervalue


Examples of uk.gov.nationalarchives.droid.core.interfaces.filter.FilterValue

    /** */
    public ExtensionMismatchMetadata() {
        super(CriterionFieldEnum.EXTENSION_MISMATCH);
        addOperation(CriterionOperator.EQ);

        addPossibleValue(new FilterValue(1, Boolean.toString(Boolean.TRUE), Boolean.toString(Boolean.TRUE)));
        addPossibleValue(new FilterValue(2, Boolean.toString(Boolean.FALSE), Boolean.toString(Boolean.FALSE)));
    }
View Full Code Here

Examples of uk.gov.nationalarchives.droid.core.interfaces.filter.FilterValue

            } else {
                formatWithVersion = " (" + format.getName() + ")";
            }

            if (format.getPuid() != null) {
                addPossibleValue(new FilterValue(index++, format.getPuid() + formatWithVersion, format.getPuid()));
            }
        }
    }
View Full Code Here

Examples of uk.gov.nationalarchives.droid.core.interfaces.filter.FilterValue

        int index = 0;
        for (Format format : data) {

            if (StringUtils.isNotBlank(format.getMimeType())) {
                if (!isExists(getPossibleValues(), format.getMimeType())) {
                    addPossibleValue(new FilterValue(index++,
                            format.getMimeType(), format.getMimeType()));
                }
            }
        }
    }
View Full Code Here

Examples of uk.gov.nationalarchives.droid.core.interfaces.filter.FilterValue

        FilterCriterionImpl criterion = new FilterCriterionImpl();
        criterion.setSelectedValues(new ArrayList<FilterValue>());
       
        criterion.setField(CriterionFieldEnum.PUID);
        criterion.setOperator(CriterionOperator.ANY_OF);
        criterion.addSelectedValue(new FilterValue(0, "", "fmt/alok"));
       
        filter.addFilterCiterion(criterion, 0);
       
        List<ProfileResourceNode> nodes = profileDao.findProfileResourceNodes(null);
        assertEquals(1, nodes.size());
View Full Code Here

Examples of uk.gov.nationalarchives.droid.core.interfaces.filter.FilterValue

       
        FilterCriterionImpl criterion = new FilterCriterionImpl();
        criterion.setField(CriterionFieldEnum.PUID);
        criterion.setOperator(CriterionOperator.ANY_OF);
        criterion.setSelectedValues(new ArrayList<FilterValue>());
        criterion.addSelectedValue(new FilterValue(1, "puid", "fmt/101"));
       
        FilterImpl filter = new FilterImpl();
        filter.setEnabled(true);
        filter.addFilterCiterion(criterion, 0);
       
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.