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.
|
manager
EMPTY_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, setupLogger
protected ContentImportManager _importManager
protected SourceResolver _sourceResolver
protected I18nUtils _i18nUtils
public ImportFileAction()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class ServiceableAction
ServiceException
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
Exception
protected void sendMail(boolean success, ContentImportManager.ImportResult importResult)
success
- true if the import was successful, false otherwise.importResult
- the import result.