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
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
-
Method Summary
Modifier and TypeMethodDescriptionact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) protected void
authenticate
(Request request) Method to authenticateprotected abstract String
Get the config parameter name contained the allowed IP adresses.protected abstract String
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 Details
-
AbstractODFAuthenticateAction
public AbstractODFAuthenticateAction()
-
-
Method Details
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-
authenticate
Method to authenticate- Parameters:
request
- The request
-
getConfigParameter
Get the config parameter name contained the allowed IP adresses.- Returns:
- The parameter name
-
getExceptionMessage
Get the exception message if the current IP is not allowed.- Returns:
- The exception message
-