@Override
    public void run() {

        CmsImportParameters parameters = new CmsImportParameters(m_importFile, "/", m_keepPermissions);
        boolean indexingAlreadyPaused = OpenCms.getSearchManager().isOfflineIndexingPaused();
        try {
            if (!indexingAlreadyPaused) {
                OpenCms.getSearchManager().pauseOfflineIndexing();
            }
            OpenCms.getImportExportManager().importData(getCms(), getReport(), parameters);
        } catch (Throwable e) {
            getReport().println(e);
            if (LOG.isErrorEnabled()) {
                LOG.error(Messages.get().getBundle().key(Messages.ERR_DB_IMPORT_0), e);
            }
        } finally {
            if (!indexingAlreadyPaused) {
                OpenCms.getSearchManager().resumeOfflineIndexing();
            }
        }
    }
@ Override public void run ( ) { CmsImportParameters parameters = new CmsImportParameters ( m_importFile , "/" , m_keepPermissions ) ; boolean indexingAlreadyPaused = OpenCms . getSearchManager ( ) . isOfflineIndexingPaused ( ) ; try { if ( ! indexingAlreadyPaused ) { OpenCms . getSearchManager ( ) . pauseOfflineIndexing ( ) ; } OpenCms . getImportExportManager ( ) . importData ( getCms ( ) , getReport ( ) , parameters ) ; } catch ( Throwable e ) { getReport ( ) . println ( e ) ; if ( LOG . isErrorEnabled ( ) ) { LOG . error ( Messages . get ( ) . getBundle ( ) . key ( Messages . ERR_DB_IMPORT_0 ) , e ) ; } } finally { if ( ! indexingAlreadyPaused ) { OpenCms . getSearchManager ( ) . resumeOfflineIndexing ( ) ; } } }
@see java.lang.Runnable#run()