deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.portal.standard.csw.control
Class OverviewMetadataListener

java.lang.Object
  extended by org.deegree.enterprise.control.AbstractListener
      extended by org.deegree.portal.standard.csw.control.SimpleSearchListener
          extended by org.deegree.portal.standard.csw.control.OverviewMetadataListener
All Implemented Interfaces:
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 $

Field Summary
(package private) static String SESSION_METADATA
           
 
Fields inherited from class org.deegree.portal.standard.csw.control.SimpleSearchListener
config, HTML_FRAGMENT, nsContext, RESULT_SEARCH, RPC_CATALOG, RPC_FORMAT, SESSION_AVAILABLESERVICECATALOGS, SESSION_DATARECORDS, SESSION_REQUESTFORRESULTS, SESSION_RESULTFORHITS
 
Constructor Summary
OverviewMetadataListener()
           
 
Method Summary
 void actionPerformed(FormEvent event)
           
protected  List extractMetadata(Document doc)
          Extracts all Metadata nodes from the passed csw:GetRecordByIdResponse Document.
protected  String[] extractServiceCatalogs(Map catalogsMap, 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(Object result, String pathToXslFile, 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
 

Field Detail

SESSION_METADATA

static final String SESSION_METADATA
See Also:
Constant Field Values
Constructor Detail

OverviewMetadataListener

public OverviewMetadataListener()
Method Detail

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(Object result,
                            String pathToXslFile,
                            String metaVersion)
                     throws XMLParsingException,
                            CatalogClientException,
                            TransformerException,
                            IOException
Parameters:
result -
pathToXslFile - e.g. file://$iGeoPortal_home$/WEB-INF/conf/igeoportal/metaOverview2html.xsl
metaVersion - e.g. overview, detailed
Throws:
XMLParsingException
CatalogClientException
TransformerException
IOException

extractMetadata

protected List extractMetadata(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 String[] extractServiceCatalogs(Map catalogsMap,
                                          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.

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org