Esri Geoportal Server
1.0

com.esri.gpt.control.identity
Class LoginController

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

public class LoginController
extends BaseActionListener

Handles login and logout actions.


Constructor Summary
LoginController()
          Default constructor.
 
Method Summary
 UsernamePasswordCredentials getCredentials()
          Gets the credentials.
protected  void onPrepareView(RequestContext context)
          Fired when the getPrepareView() property is accessed.
 void processLogout(ActionEvent event)
          Handles a logout action.
protected  void processSubAction(ActionEvent event, RequestContext context)
          Handles a login 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, 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

LoginController

public LoginController()
Default constructor.

Method Detail

getCredentials

public UsernamePasswordCredentials getCredentials()
Gets the credentials.

Returns:
the credentials

onPrepareView

protected void onPrepareView(RequestContext context)
                      throws Exception
Fired when the getPrepareView() property is accessed.
This event is triggered from the page during the render response phase of the JSF cycle.

Overrides:
onPrepareView in class BaseActionListener
Parameters:
context - the context associated with the active request
Throws:
Exception - if an exception occurs

processLogout

public void processLogout(ActionEvent event)
                   throws AbortProcessingException
Handles a logout action.

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 a login 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.