Package org.ametys.workspaces.odf
Class AbstractODFAuthenticateAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.ametys.workspaces.odf.AbstractODFAuthenticateAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Action
- Direct Known Subclasses:
ODFAuthenticateAction
,ODFSyncAuthenticateAction
public abstract class AbstractODFAuthenticateAction extends AbstractAction
Abstract class for ODF authentication by IP (useful for CDM-fr portals).
-
-
Field Summary
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description AbstractODFAuthenticateAction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
protected void
authenticate(Request request)
Method to authenticateprotected abstract String
getConfigParameter()
Get the config parameter name contained the allowed IP adresses.protected abstract String
getExceptionMessage()
Get the exception message if the current IP is not allowed.-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Constructor Detail
-
AbstractODFAuthenticateAction
public AbstractODFAuthenticateAction()
-
-
Method Detail
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
authenticate
protected void authenticate(Request request)
Method to authenticate- Parameters:
request
- The request
-
getConfigParameter
protected abstract String getConfigParameter()
Get the config parameter name contained the allowed IP adresses.- Returns:
- The parameter name
-
getExceptionMessage
protected abstract String getExceptionMessage()
Get the exception message if the current IP is not allowed.- Returns:
- The exception message
-
-