Package org.fao.geonet.csw.common

Examples of org.fao.geonet.csw.common.ElementSetName


     */
    private List<Element> getResultsFromConstraints(ServiceContext context, Element constr) throws CatalogException {
        Element filterExpr = getFilterExpression(constr);
        String filterVersion = getFilterVersion(constr);

        ElementSetName setName = ElementSetName.BRIEF;

        Pair<Element, Element> results = _searchController.search(context, 1, 100, ResultType.RESULTS,
                OutputSchema.OGC_CORE, setName, filterExpr, filterVersion, null, null, null, 0, null, null);

        @SuppressWarnings("unchecked")
View Full Code Here


    //-- Added for CSW 2.0.2 compliance by warnock@awcubed.com
    checkOutputFormat(request);
    OutputSchema outSchema = OutputSchema.parse(request.getAttributeValue("outputSchema"));
    //--------------------------------------------------------

    ElementSetName setName = getElementSetName(request, ElementSetName.SUMMARY);

    Element response = new Element(getName() +"Response", Csw.NAMESPACE_CSW);

    @SuppressWarnings("unchecked")
        Iterator<Element> ids = request.getChildren("Id", Csw.NAMESPACE_CSW).iterator();
View Full Code Here

        Set<String> elemNames = getElementNames(query);

        // If any element names are specified, it's an ad hoc query and overrides the element set name default. In that
        // case, we set setName to FULL instead of SUMMARY so that we can retrieve a CSW:Record and trim out the
        // elements that aren't in the elemNames set.
        ElementSetName setName = ElementSetName.FULL;

        //
        // no ElementNames requested: use ElementSetName
        //
        if((elemNames == null)) {
            setName = getElementSetName(query , ElementSetName.SUMMARY);
            // elementsetname is FULL: use customized elementset if defined
            if(setName.equals(ElementSetName.FULL)) {
                final List<CustomElementSet> customElementSets = context.getBean(CustomElementSetRepository.class).findAll();
                // custom elementset defined
                if(!CollectionUtils.isEmpty(customElementSets)) {
                    elemNames = new HashSet<String>();
                    for(CustomElementSet customElementSet : customElementSets) {
View Full Code Here

TOP

Related Classes of org.fao.geonet.csw.common.ElementSetName

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.