org.deegree.ogcwebservices.csw.discovery
Class GetRecordById
java.lang.Object
org.deegree.ogcwebservices.AbstractOGCWebServiceRequest
org.deegree.ogcwebservices.csw.AbstractCSWRequest
org.deegree.ogcwebservices.csw.discovery.GetRecordById
- All Implemented Interfaces:
- Serializable, OGCWebServiceRequest
public class GetRecordById
- extends AbstractCSWRequest
The mandatory GetRecordById request retrieves the default representation of catalogue records using their identifier.
The GetRecordById operation is an implementation of the Present operation from the general model. This operation
presumes that a previous query has been performed in order to obtain the identifiers that may be used with this
operation. For example, records returned by a GetRecords operation may contain references to other records in the
catalogue that may be retrieved using the GetRecordById operation. This operation is also a subset of the GetRecords
operation, and is included as a convenient short form for retrieving and linking to records in a catalogue.
- Since:
- 2.0
- Version:
- $Revision: 31089 $, 1.0. $Revision: 31089 $, $Date: 2011-06-22 10:30:37 +0200 (Mi, 22 Jun 2011) $
- Author:
- Andreas Poth, last edited by: $Author: lbuesching $
- See Also:
- Serialized Form
Constructor Summary |
GetRecordById(String id,
String version,
Map<String,String> vendorSpecificParameters,
String[] ids,
String elementSetName)
|
GetRecordById(String id,
String version,
Map<String,String> vendorSpecificParameters,
String[] ids,
String elementSetName,
String outputSchema)
|
GetRecordById
GetRecordById(String id,
String version,
Map<String,String> vendorSpecificParameters,
String[] ids,
String elementSetName)
- Parameters:
ids
- identifiers of the requested catalogue entrieselementSetName
- requested element set (brief|summary|full). Can be null
; will be treaded as full.
GetRecordById
GetRecordById(String id,
String version,
Map<String,String> vendorSpecificParameters,
String[] ids,
String elementSetName,
String outputSchema)
- Parameters:
ids
- identifiers of the requested catalogue entrieselementSetName
- requested element set (brief|summary|full). Can be null
; will be treaded as full.
create
public static GetRecordById create(String id,
Element root)
throws MissingParameterValueException,
InvalidParameterValueException,
OGCWebServiceException
- creates a
GetRecordById
request from the XML fragment passed. The passed element must be valid
against the OGC CSW 2.0 GetRecordById schema.
- Parameters:
id
- unique ID of the requestroot
- root element of the GetRecors request
- Returns:
- a GetRecordById bean representation created from the xml fragment.
- Throws:
MissingParameterValueException
InvalidParameterValueException
OGCWebServiceException
create
public static GetRecordById create(Map<String,String> kvp)
- Creates a new
GetRecordById
instance from the values stored in the submitted Map. Keys (parameter
names) in the Map must be uppercase.
- Parameters:
kvp
- Map containing the parameters
- Returns:
- a GetRecordById bean representation, the internal request id will be set to Long.toString(
IDGenerator.getInstance().generateUniqueID() ).
- To do:
- evaluate vendorSpecificParameter
create
public static GetRecordById create(String id,
Map<String,String> kvp)
- Creates a new
GetRecordById
instance from the values stored in the submitted Map. Keys (parameter
names) in the Map must be uppercase.
- Parameters:
id
- of the request, and not the requested ids.kvp
- Map containing the parameters
- Returns:
- a GetRecordById bean representation.
- To do:
- evaluate vendorSpecificParameter
getElementSetName
public String getElementSetName()
- Returns:
- the requested element set name. If the returned value equals
null
a 'summary' request shall
be performed. possible values are:
getOutputSchema
public String getOutputSchema()
- Returns:
- the requested outputSchema. If the returned value equals
null
dublin core
(http://www.opengis.net/cat/csw/2.0.2) should be returned by the the CSW 2.02.
getIds
public String[] getIds()
- Returns:
- the requested ids as an array of strings
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org