corelib.services.web.components.security
Class RestrictedWebPage

java.lang.Object
  extended by corelib.services.web.webapplications.WebPage
      extended by corelib.services.web.components.security.RestrictedWebPage

public class RestrictedWebPage
extends WebPage

Use this web page base class to control the redirection to the login web page if the current user is not authentified. To do this operation, this class search the connectedUser entry in the session object for the current user. If this session entry is not defined, the class search the LOGIN_FORM_WEB_PAGE init parameter in the web.xml file: this parameter defines the location of the login web page. The web browser is redirected to this location.

Since:
0.4.0
Author:
Alexia Ramaļoli & Dominique Liard
See Also:
LoginForm

Field Summary
 
Fields inherited from class corelib.services.web.webapplications.WebPage
application, bIsValid, out, request, response, session, traceLogger
 
Constructor Summary
RestrictedWebPage()
          This constructor checks if the user is connected.
 
Method Summary
 
Methods inherited from class corelib.services.web.webapplications.WebPage
getAliasForNamespace, getApplication, getEventDispatcher, getLocale, getNextAutoIdentifier, getOut, getRequest, getRequestedURI, getResponse, getSession, getTraceLogger, getValidators, getWebComponent, getWebComponents, isValid, page_init, page_load, page_postRender, page_preRender, page_preRepeaterDuplications, page_render, redirect, setLocale, setRequestedURI, setTraceLogger, setValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestrictedWebPage

public RestrictedWebPage()
This constructor checks if the user is connected. If not, the navigator is redirected to the login form.

Throws:
MissingInitParamException - Thrown if LOGIN_FORM_WEB_PAGE init parameter is not present in the web.xml file.


CAUTION: Ellipse is proposed to you in BETA version to allow evaluation of this framework. Infini Software is released from any responsibility for the use of Ellipse Framework.

Copyright 2012 Infini Software - All Rights Reserved.