to.etc.domui.login
Interface ILoginDialogFactory


public interface ILoginDialogFactory

This must be used when the application uses demand-based logins. It provides a function which returns the URL of the login page, and it has a function which defines the URL of the "access denied" page when a resource gets accessed which is not allowed by rights.

Author:
Frits Jalvingh Created on Apr 17, 2009

Method Summary
 java.lang.String getAccessDeniedURL()
          Must return the RURL of the page/JSP to use as an "access denied" page.
 java.lang.String getLoginRURL(java.lang.String originalTarget)
          Return the URL of a page/JSP to use as a login page.
 

Method Detail

getLoginRURL

java.lang.String getLoginRURL(java.lang.String originalTarget)
Return the URL of a page/JSP to use as a login page. The page must cause PageContext.login() to be called in whatever way. After a succesful login this page must also redirect to the specified target URL. The URL returned must be an URL relative to the webapp root or the properly defined name of a Page class.

Parameters:
originalTarget -
Returns:

getAccessDeniedURL

java.lang.String getAccessDeniedURL()
Must return the RURL of the page/JSP to use as an "access denied" page. The URL returned here must be a webapp relative URL. The resource accessed there will get the failed page class AND the list of rights that is needed to access that page as parameters.

Returns: