Esri Geoportal Server
1.0

com.esri.gpt.framework.jsf
Class SampleController

java.lang.Object
  extended by com.esri.gpt.framework.jsf.BaseActionListener
      extended by com.esri.gpt.framework.jsf.SampleController
All Implemented Interfaces:
EventListener, ActionListener, FacesListener

public class SampleController
extends BaseActionListener

Handles a sample action.

This class simply serves as a template for a controller.


Constructor Summary
SampleController()
          Default constructor.
 
Method Summary
 void processSecondaryAction(ActionEvent event)
          Handles a secondary action.
protected  void processSubAction(ActionEvent event, RequestContext context)
          Handles the primary action.
 
Methods inherited from class com.esri.gpt.framework.jsf.BaseActionListener
assertLoggedIn, authorizeAction, extractMessageBroker, extractRequestContext, getContextBroker, getKey, getLogger, getNavigationOutcome, getPrepareView, getSecurityRoles, getSecurityRoleSet, handleException, onExecutionPhaseCompleted, onExecutionPhaseStarted, onPrepareView, onPrepareViewCompleted, onPrepareViewStarted, processAction, setKey, setNavigationOutcome, setPrepareView, setSecurityRoles
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleController

public SampleController()
Default constructor.

Method Detail

processSecondaryAction

public void processSecondaryAction(ActionEvent event)
                            throws AbortProcessingException
Handles a secondary action.
This is a template for processing an action that is not entered through the normal JSF processAction method.

Parameters:
event - the associated JSF action event
Throws:
AbortProcessingException - if processing should be aborted

processSubAction

protected void processSubAction(ActionEvent event,
                                RequestContext context)
                         throws AbortProcessingException,
                                Exception
Handles the primary action.
This is the default entry point for a sub-class of BaseActionListener.
This BaseActionListener handles the JSF processAction method and invokes the processSubAction method of the sub-class.

Overrides:
processSubAction in class BaseActionListener
Parameters:
event - the associated JSF action event
context - the context associated with the active request
Throws:
AbortProcessingException - if processing should be aborted
Exception - if an exception occurs

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.