Search in sources :

Example 1 with ServiceIdentification

use of org.geotoolkit.ows.xml.v110.ServiceIdentification in project geotoolkit by Geomatys.

the class CapabilitiesType method applySections.

@Override
public CapabilitiesType applySections(Sections sections) {
    if (sections == null) {
        sections = new SectionsType("All");
    }
    ServiceIdentification si = null;
    ServiceProvider sp = null;
    OperationsMetadata om = null;
    ContentsType ct = null;
    // we add the static sections if the are included in the requested sections
    if (sections.containsSection("ServiceProvider") || sections.containsSection("All")) {
        sp = getServiceProvider();
    }
    if (sections.containsSection("ServiceIdentification") || sections.containsSection("All")) {
        si = getServiceIdentification();
    }
    if (sections.containsSection("OperationsMetadata") || sections.containsSection("All")) {
        om = getOperationsMetadata();
    }
    // if the user does not request the contents section we can return the result.
    if (sections.containsSection("Contents") || sections.containsSection("All")) {
        ct = contents;
    }
    return new CapabilitiesType(si, sp, om, "2.0.1", getUpdateSequence(), ct, getServiceMetadata());
}
Also used : OperationsMetadata(org.geotoolkit.ows.xml.v200.OperationsMetadata) SectionsType(org.geotoolkit.ows.xml.v200.SectionsType) ServiceProvider(org.geotoolkit.ows.xml.v200.ServiceProvider) ServiceIdentification(org.geotoolkit.ows.xml.v200.ServiceIdentification)

Example 2 with ServiceIdentification

use of org.geotoolkit.ows.xml.v110.ServiceIdentification in project geotoolkit by Geomatys.

the class Capabilities method applySections.

@Override
public AbstractCapabilitiesCore applySections(final Sections sections) {
    // we prepare the different parts response document
    ServiceIdentification si = null;
    ServiceProvider sp = null;
    OperationsMetadata om = null;
    FilterCapabilities fc = null;
    Contents cont = null;
    // we enter the information for service identification.
    if (sections.containsSection("ServiceIdentification") || sections.containsSection("All")) {
        si = getServiceIdentification();
    }
    // we enter the information for service provider.
    if (sections.containsSection("ServiceProvider") || sections.containsSection("All")) {
        sp = getServiceProvider();
    }
    // we enter the operation Metadata
    if (sections.containsSection("OperationsMetadata") || sections.containsSection("All")) {
        om = getOperationsMetadata();
    }
    // we enter the information filter capablities.
    if (sections.containsSection("Filter_Capabilities") || sections.containsSection("All")) {
        fc = filterCapabilities;
    }
    if (sections.containsSection("Contents") || sections.containsSection("All")) {
        cont = contents;
    }
    // we build and normalize the document
    return new Capabilities(si, sp, om, "1.0.0", getUpdateSequence(), fc, cont);
}
Also used : OperationsMetadata(org.geotoolkit.ows.xml.v110.OperationsMetadata) ServiceProvider(org.geotoolkit.ows.xml.v110.ServiceProvider) ServiceIdentification(org.geotoolkit.ows.xml.v110.ServiceIdentification)

Example 3 with ServiceIdentification

use of org.geotoolkit.ows.xml.v110.ServiceIdentification in project geotoolkit by Geomatys.

the class CapabilitiesType method applySections.

@Override
public AbstractCapabilitiesCore applySections(final Sections sections) {
    // we prepare the different parts response document
    ServiceIdentification si = null;
    ServiceProvider sp = null;
    OperationsMetadata om = null;
    FilterCapabilities fc = null;
    ContentsType cont = null;
    // we enter the information for service identification.
    if (sections.containsSection("ServiceIdentification") || sections.containsSection("All")) {
        si = getServiceIdentification();
    }
    // we enter the information for service provider.
    if (sections.containsSection("ServiceProvider") || sections.containsSection("All")) {
        sp = getServiceProvider();
    }
    // we enter the operation Metadata
    if (sections.containsSection("OperationsMetadata") || sections.containsSection("All")) {
        om = getOperationsMetadata();
    }
    // we enter the information filter capablities.
    if (sections.containsSection("Filter_Capabilities") || sections.containsSection("All")) {
        fc = filterCapabilities;
    }
    if (sections.containsSection("Contents") || sections.containsSection("All")) {
        if (contents != null) {
            cont = contents.contents;
        }
    }
    // we build and normalize the document
    return new CapabilitiesType(si, sp, om, "2.0.0", getUpdateSequence(), fc, cont, extension);
}
Also used : OperationsMetadata(org.geotoolkit.ows.xml.v110.OperationsMetadata) ServiceProvider(org.geotoolkit.ows.xml.v110.ServiceProvider) ServiceIdentification(org.geotoolkit.ows.xml.v110.ServiceIdentification)

Example 4 with ServiceIdentification

use of org.geotoolkit.ows.xml.v110.ServiceIdentification in project geotoolkit by Geomatys.

the class CapabilitiesType method applySections.

@Override
public CapabilitiesType applySections(final Sections sections) {
    ServiceIdentification si = null;
    ServiceProvider sp = null;
    OperationsMetadata om = null;
    // we enter the information for service identification.
    if (sections.containsSection("ServiceIdentification") || sections.containsSection("All")) {
        si = getServiceIdentification();
    }
    // we enter the information for service provider.
    if (sections.containsSection("ServiceProvider") || sections.containsSection("All")) {
        sp = getServiceProvider();
    }
    // we enter the operation Metadata
    if (sections.containsSection("OperationsMetadata") || sections.containsSection("All")) {
        om = getOperationsMetadata();
    }
    return new CapabilitiesType(si, sp, om, "2.0.2", getUpdateSequence());
}
Also used : OperationsMetadata(org.geotoolkit.ows.xml.v100.OperationsMetadata) ServiceProvider(org.geotoolkit.ows.xml.v100.ServiceProvider) ServiceIdentification(org.geotoolkit.ows.xml.v100.ServiceIdentification)

Example 5 with ServiceIdentification

use of org.geotoolkit.ows.xml.v110.ServiceIdentification in project geotoolkit by Geomatys.

the class Capabilities method applySections.

@Override
public AbstractCapabilitiesBase applySections(final Sections sections) {
    ServiceIdentification si = null;
    ServiceProvider sp = null;
    OperationsMetadata om = null;
    ContentsType cont = null;
    List<Themes> th = null;
    if (sections.containsSection("ServiceIdentification") || sections.containsSection("All")) {
        si = getServiceIdentification();
    }
    if (sections.containsSection("ServiceProvider") || sections.containsSection("All")) {
        sp = getServiceProvider();
    }
    if (sections.containsSection("OperationsMetadata") || sections.containsSection("All")) {
        om = getOperationsMetadata();
    }
    if (sections.containsSection("Contents") || sections.containsSection("All")) {
        cont = contents;
    }
    if (sections.containsSection("Themes") || sections.containsSection("All")) {
        th = themes;
    }
    return new Capabilities(si, sp, om, "1.0.0", getUpdateSequence(), cont, th);
}
Also used : OperationsMetadata(org.geotoolkit.ows.xml.v110.OperationsMetadata) ServiceProvider(org.geotoolkit.ows.xml.v110.ServiceProvider) ServiceIdentification(org.geotoolkit.ows.xml.v110.ServiceIdentification)

Aggregations

OperationsMetadata (org.geotoolkit.ows.xml.v110.OperationsMetadata)5 ServiceIdentification (org.geotoolkit.ows.xml.v110.ServiceIdentification)5 ServiceProvider (org.geotoolkit.ows.xml.v110.ServiceProvider)5 ServiceIdentification (net.opengis.ows.v_1_0_0.ServiceIdentification)4 OperationsMetadata (org.geotoolkit.ows.xml.v100.OperationsMetadata)3 ServiceIdentification (org.geotoolkit.ows.xml.v100.ServiceIdentification)3 ServiceProvider (org.geotoolkit.ows.xml.v100.ServiceProvider)3 OperationsMetadata (org.geotoolkit.ows.xml.v200.OperationsMetadata)2 ServiceIdentification (org.geotoolkit.ows.xml.v200.ServiceIdentification)2 ServiceProvider (org.geotoolkit.ows.xml.v200.ServiceProvider)2 Metacard (ddf.catalog.data.Metacard)1 MetacardImpl (ddf.catalog.data.impl.MetacardImpl)1 ArrayList (java.util.ArrayList)1 CapabilitiesType (net.opengis.cat.csw.v_2_0_2.CapabilitiesType)1 GetRecordsType (net.opengis.cat.csw.v_2_0_2.GetRecordsType)1 SearchResultsType (net.opengis.cat.csw.v_2_0_2.SearchResultsType)1 ComparisonOperatorType (net.opengis.filter.v_1_1_0.ComparisonOperatorType)1 ComparisonOperatorsType (net.opengis.filter.v_1_1_0.ComparisonOperatorsType)1 FilterCapabilities (net.opengis.filter.v_1_1_0.FilterCapabilities)1 LogicalOperators (net.opengis.filter.v_1_1_0.LogicalOperators)1