org.deegree.portal.standard.csw.control
Class OverviewMetadataListener
java.lang.Object
org.deegree.enterprise.control.AbstractListener
org.deegree.portal.standard.csw.control.SimpleSearchListener
org.deegree.portal.standard.csw.control.OverviewMetadataListener
- All Implemented Interfaces:
- java.util.EventListener, WebListener
- Direct Known Subclasses:
- DetailedMetadataListener, SingleLayerSearchListener
public class OverviewMetadataListener
- extends SimpleSearchListener
A ${type_name}
class.
TODO class description
- Version:
- $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
- Author:
- Judit Mays, last edited by: $Author: mschneider $
Method Summary |
void |
actionPerformed(FormEvent event)
|
protected java.util.List |
extractMetadata(org.w3c.dom.Document doc)
Extracts all Metadata nodes from the passed csw:GetRecordByIdResponse Document. |
protected java.lang.String[] |
extractServiceCatalogs(java.util.Map catalogsMap,
java.lang.String title)
Extracts a List of available service catalogues from the Map in the session and returns its contents as an Array
of Strings. |
protected void |
handleResult(java.lang.Object result,
java.lang.String pathToXslFile,
java.lang.String metaVersion)
|
protected void |
validateRequest(RPCWebEvent rpcEvent)
Validates the rpc request and makes sure that all the needed parameters are included |
Methods inherited from class org.deegree.portal.standard.csw.control.SimpleSearchListener |
createDataSessionRecords, createRequest, createRpcStructForServiceSearch, doServiceSearch, extractRPCCatalogs, extractRPCMember, extractRPCParameters, extractRPCStruct, extractValue, getMetadataType, getXPathToId, getXPathToTitle, handleResult, isKnownMetadataType, performRequest |
Methods inherited from class org.deegree.enterprise.control.AbstractListener |
getAlternativeNextPage, getHomePath, getInitParameter, getInitParameterList, getNextPage, getRequest, getReturnValue, gotoErrorPage, handle, setAlternativeNextPage, setDefaultAlternativeNextPage, setDefaultNextPage, setNextPage, setReturnValue, toModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SESSION_METADATA
static final java.lang.String SESSION_METADATA
- See Also:
- Constant Field Values
OverviewMetadataListener
public OverviewMetadataListener()
actionPerformed
public void actionPerformed(FormEvent event)
- Specified by:
actionPerformed
in interface WebListener
- Overrides:
actionPerformed
in class SimpleSearchListener
validateRequest
protected void validateRequest(RPCWebEvent rpcEvent)
throws CatalogClientException
- Description copied from class:
SimpleSearchListener
- Validates the rpc request and makes sure that all the needed parameters are included
- Overrides:
validateRequest
in class SimpleSearchListener
- Throws:
CatalogClientException
handleResult
protected void handleResult(java.lang.Object result,
java.lang.String pathToXslFile,
java.lang.String metaVersion)
throws XMLParsingException,
CatalogClientException,
javax.xml.transform.TransformerException,
java.io.IOException
- Parameters:
result
- pathToXslFile
- e.g. file://$iGeoPortal_home$/WEB-INF/conf/igeoportal/metaOverview2html.xslmetaVersion
- e.g. overview, detailed
- Throws:
XMLParsingException
CatalogClientException
javax.xml.transform.TransformerException
java.io.IOException
extractMetadata
protected java.util.List extractMetadata(org.w3c.dom.Document doc)
throws CatalogClientException,
XMLParsingException
- Extracts all Metadata nodes from the passed csw:GetRecordByIdResponse Document.
- Overrides:
extractMetadata
in class SimpleSearchListener
- Parameters:
doc
- The csw:GetRecordByIdResponse Document from which to extract the Metadata nodes.
- Returns:
- Returns a NodeList of Metadata Elements for the passed Document.
- Throws:
CatalogClientException
- if metadata nodes could not be extracted from the passed Document.
XMLParsingException
extractServiceCatalogs
protected java.lang.String[] extractServiceCatalogs(java.util.Map catalogsMap,
java.lang.String title)
- Extracts a List of available service catalogues from the Map in the session and returns its contents as an Array
of Strings.
- Parameters:
catalogsMap
- The Map containing the data title (as key) and the List of available service catalogues names (as
value)title
- The key for the value in the passed Map.
- Returns:
- Returns an Array of Strings for the available service catalogues. If no service catalogues are available,
an Array of one empty String is returned.
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org