org.deegree_impl.clients.wcasclient.control
Class AddToShoppingCartListener

java.lang.Object
  extended byorg.deegree_impl.enterprise.control.AbstractListener
      extended byorg.deegree_impl.clients.wcasclient.control.AddToShoppingCartListener
All Implemented Interfaces:
java.util.EventListener, WebListener

public class AddToShoppingCartListener
extends AbstractListener

adds an entray to the selection/shoppingcard of a user. the required informations are contained in the RPCWebEvent passed to the actionPerformed method.

Version:
$Revision: 1.4 $ $Date: 2004/04/07 06:43:48 $
Author:
Andreas Poth

Field Summary
 
Fields inherited from class org.deegree_impl.enterprise.control.AbstractListener
 
Constructor Summary
AddToShoppingCartListener()
           
 
Method Summary
 void actionPerformed(FormEvent ev)
           
private  SelectionEntry createSelectionEntry(RPCWebEvent we)
          creates a SelectionEntry from the incomming RPCWebEvent and the contained data/parameters.
protected  java.lang.String isAuthorizied(java.lang.String id, int access)
          validates if the current user iss allowed to display the selected datasets with a WMS
 
Methods inherited from class org.deegree_impl.enterprise.control.AbstractListener
getAlternativeNextPage, 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
 

Constructor Detail

AddToShoppingCartListener

public AddToShoppingCartListener()
Method Detail

actionPerformed

public void actionPerformed(FormEvent ev)
Specified by:
actionPerformed in interface WebListener
Specified by:
actionPerformed in class AbstractListener
Parameters:
ev -

createSelectionEntry

private SelectionEntry createSelectionEntry(RPCWebEvent we)
                                     throws CatalogClientException
creates a SelectionEntry from the incomming RPCWebEvent and the contained data/parameters.

Parameters:
we -
Returns:
SelectionEntry
Throws:
CatalogClientException

isAuthorizied

protected java.lang.String isAuthorizied(java.lang.String id,
                                         int access)
                                  throws CatalogClientException
validates if the current user iss allowed to display the selected datasets with a WMS

Returns:
Throws:
CatalogClientException