Package org.ametys.plugins.contentio.in
Class ImportFileAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.apache.cocoon.acting.ServiceableAction
org.ametys.plugins.contentio.in.ImportFileAction
- All Implemented Interfaces:
Component,LogEnabled,Serviceable,Action
- Direct Known Subclasses:
ImportPostBodyAction
Import contents from an uploaded file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected I18nUtilsThe i18n utils.protected ContentImportManagerThe content import manager.protected SourceResolverThe source resolver.Fields inherited from class org.apache.cocoon.acting.ServiceableAction
managerFields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionact(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) protected voidsendMail(boolean success, ContentImportManager.ImportResult importResult) Send an import report as e-mail.voidservice(ServiceManager serviceManager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
_importManager
The content import manager. -
_sourceResolver
The source resolver. -
_i18nUtils
The i18n utils.
-
-
Constructor Details
-
ImportFileAction
public ImportFileAction()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classServiceableAction- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception - Throws:
Exception
-
sendMail
Send an import report as e-mail.- Parameters:
success- true if the import was successful, false otherwise.importResult- the import result.
-