org.deegree.services.csw.profile
Interface ServiceProfile

All Known Implementing Classes:
CommonCSWProfile, EbrimProfile

public interface ServiceProfile

Bundles the differences of different CSW implemantations.

Version:
$Revision: $, $Date: $
Author:
Lyn Goltz, last edited by: $Author: lyn $

Method Summary
 Version checkVersion(Version version)
          Checks is the version is supported and must be handled as another version.
 String getAcceptFormat(GetCapabilities getCapabilitiesRequest)
           
 CapabilitiesHandler getCapabilitiesHandler(XMLStreamWriter writer, DeegreeServicesMetadataType mainControllerConf, DeegreeServiceControllerType mainConf, Set<CSWConstants.Sections> sections, ServiceIdentificationType identification, Version version, boolean isTransactionEnabled, boolean isEnabledInspireExtension, ServiceProviderType provider, URL extendedCapabilities)
          TODO
 QName[] getDefaultTypeNames()
           
 String getGetRecordByIdSchemaLocation(Version version)
           
 ImplementationMetadata<CSWConstants.CSWRequestType> getImplementationMetadata()
           
 URL getSchema(QName typeName)
           
 List<URL> getSchemaReferences(QName typeName)
           
 String[] getSupportedServiceNames()
           
 List<String> getSupportedVersions()
           
 boolean isStrict()
           
 boolean returnAsDC(URI outputSchema)
          Determine if the given outputSchema should be handled as DublinCore.
 boolean supportsOperation(CSWConstants.CSWRequestType type)
          Checks if the given CSWConstants.CSWRequestType is supported by this service
 

Method Detail

getImplementationMetadata

ImplementationMetadata<CSWConstants.CSWRequestType> getImplementationMetadata()
Returns:
the ImplementationMetadata instance of the service

getSupportedVersions

List<String> getSupportedVersions()
Returns:
all versions supported of the service

getSupportedServiceNames

String[] getSupportedServiceNames()
Returns:
all service names supported of the service

getAcceptFormat

String getAcceptFormat(GetCapabilities getCapabilitiesRequest)
                       throws OWSException
Parameters:
getCapabilitiesRequest -
Returns:
the format accepted of the service dependent of the GetCapabilities request, never null. If the format os not accepted a OWSException is thrown.
Throws:
OWSException - if the format is not accepted

getCapabilitiesHandler

CapabilitiesHandler getCapabilitiesHandler(XMLStreamWriter writer,
                                           DeegreeServicesMetadataType mainControllerConf,
                                           DeegreeServiceControllerType mainConf,
                                           Set<CSWConstants.Sections> sections,
                                           ServiceIdentificationType identification,
                                           Version version,
                                           boolean isTransactionEnabled,
                                           boolean isEnabledInspireExtension,
                                           ServiceProviderType provider,
                                           URL extendedCapabilities)
TODO

Parameters:
writer -
mainControllerConf -
mainConf -
sections -
identification -
version -
isTransactionEnabled -
isEnabledInspireExtension -
extendedCapabilities -
Returns:
an instance of a GetCapabilitiesHandler to hanlde the a GetCapabilities request

getDefaultTypeNames

QName[] getDefaultTypeNames()
Returns:
the defaultTypeNames supported for a DescribeRecord request

getSchema

URL getSchema(QName typeName)
Parameters:
typeName -
Returns:
the URL of the schema assigned to the type name, null if no schema can be found

getSchemaReferences

List<URL> getSchemaReferences(QName typeName)
Parameters:
typeName - a list of schema references assigned to the type name, null if no schema reference can be found
Returns:

checkVersion

Version checkVersion(Version version)
Checks is the version is supported and must be handled as another version. This can be required if two version should be handled equal.

Parameters:
version - the version to check
Returns:
the version to use instead (often the same as the given one)

supportsOperation

boolean supportsOperation(CSWConstants.CSWRequestType type)
Checks if the given CSWConstants.CSWRequestType is supported by this service

Parameters:
type -
Returns:
true, if the request is supported, false otherwise

getGetRecordByIdSchemaLocation

String getGetRecordByIdSchemaLocation(Version version)
Parameters:
version -
Returns:
the schemalocation for the a GetRecordById request

isStrict

boolean isStrict()
Returns:
true if the service handles unknown ids requestes by a GetRecordById strict, false otherwise

returnAsDC

boolean returnAsDC(URI outputSchema)
                   throws MetadataStoreException
Determine if the given outputSchema should be handled as DublinCore.

Parameters:
outputSchema - the outputsschema, can be null
Returns:
true, if dublinCore should be forced, false otherwise
Throws:
MetadataStoreException


Copyright © 2011. All Rights Reserved.