Package org.ametys.web.frontoffice
Class FrontLoginScreenRedirectAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.web.frontoffice.FrontLoginScreenRedirectAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class FrontLoginScreenRedirectAction extends ServiceableAction
This action redirects to the login page Can be /LANG/login.html if it does exist Otherwise redirects to cocoon://SITE/LANG/_plugins/web/page/frontoffice-formbasedauthentication/default-display/ACTION.html The LANG is determined from the requested url*, otherwise "en" is selected, otherwise the first available language is selected. Parameters are action: login or failed, transmitted to render. site: the current site. siteContextPath: the site's context path. requestedURL: the requestedURL for authentication, starting with the site's context path.
-
-
Field Summary
Fields Modifier and Type Field Description private SiteManager
_siteManager
private SkinsManager
_skinsManager
private UserSignupManager
_userSignupManager
private static Pattern
URL_PATTERN
-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description FrontLoginScreenRedirectAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
service(ServiceManager smanager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
URL_PATTERN
private static final Pattern URL_PATTERN
-
_siteManager
private SiteManager _siteManager
-
_skinsManager
private SkinsManager _skinsManager
-
_userSignupManager
private UserSignupManager _userSignupManager
-
-
Constructor Detail
-
FrontLoginScreenRedirectAction
public FrontLoginScreenRedirectAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
-