Package org.ametys.runtime.maintenance
Class MaintenanceAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.runtime.maintenance.MaintenanceAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
This action will stop user during the maintenance mode (except administrators)
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final Collection<Pattern>
url requires for authenticationFields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
acceptedUrl
(Request request) Determine if the request is one of the maintenance processact
(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 Details
-
ACCEPTED_URL_PATTERNS
url requires for authentication
-
-
Constructor Details
-
MaintenanceAction
public MaintenanceAction()
-
-
Method Details
-
service
- 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
-
acceptedUrl
Determine if the request is one of the maintenance process- Parameters:
request
- The request- Returns:
- true to allow even in maintenance
-