public class ImportFileAction extends ServiceableAction
| Modifier and Type | Field and Description |
|---|---|
protected I18nUtils |
_i18nUtils
The i18n utils.
|
protected ContentImportManager |
_importManager
The content import manager.
|
protected SourceResolver |
_sourceResolver
The source resolver.
|
managerEMPTY_MAP| Constructor and Description |
|---|
ImportFileAction() |
| Modifier and Type | Method and Description |
|---|---|
Map |
act(Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters parameters) |
protected void |
sendMail(boolean success,
ContentImportManager.ImportResult importResult)
Send an import report as e-mail.
|
void |
service(ServiceManager serviceManager) |
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected ContentImportManager _importManager
protected SourceResolver _sourceResolver
protected I18nUtils _i18nUtils
public ImportFileAction()
public void service(ServiceManager serviceManager) throws ServiceException
service in interface Serviceableservice in class ServiceableActionServiceExceptionpublic Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exceptionprotected void sendMail(boolean success, ContentImportManager.ImportResult importResult)
success - true if the import was successful, false otherwise.importResult - the import result.