public void cmsEvent(CmsEvent event) {

        switch (event.getType()) {
            case I_CmsEventListener.EVENT_REBUILD_SEARCHINDEXES:
                List<String> indexNames = null;
                if ((event.getData() != null)
                    && CmsStringUtil.isNotEmptyOrWhitespaceOnly(
                        (String)event.getData().get(I_CmsEventListener.KEY_INDEX_NAMES))) {
                    indexNames = CmsStringUtil.splitAsList(
                        (String)event.getData().get(I_CmsEventListener.KEY_INDEX_NAMES),
                        ",",
                        true);
                }
                try {
                    if (LOG.isDebugEnabled()) {
                        LOG.debug(
                            Messages.get().getBundle().key(
                                Messages.LOG_EVENT_REBUILD_SEARCHINDEX_1,
                                indexNames == null ? "" : CmsStringUtil.collectionAsString(indexNames, ",")),
                            new Exception());
                    }
                    if (indexNames == null) {
                        rebuildAllIndexes(getEventReport(event));
                    } else {
                        rebuildIndexes(indexNames, getEventReport(event));
                    }
                } catch (CmsException e) {
                    if (LOG.isErrorEnabled()) {
                        LOG.error(
                            Messages.get().getBundle().key(
                                Messages.ERR_EVENT_REBUILD_SEARCHINDEX_1,
                                indexNames == null ? "" : CmsStringUtil.collectionAsString(indexNames, ",")),
                            e);
                    }
                }
                break;
            case I_CmsEventListener.EVENT_CLEAR_CACHES:
                if (LOG.isDebugEnabled()) {
                    LOG.debug(Messages.get().getBundle().key(Messages.LOG_EVENT_CLEAR_CACHES_0), new Exception());
                }
                break;
            case I_CmsEventListener.EVENT_PUBLISH_PROJECT:
                // event data contains a list of the published resources
                CmsUUID publishHistoryId = new CmsUUID((String)event.getData().get(I_CmsEventListener.KEY_PUBLISHID));
                if (LOG.isDebugEnabled()) {
                    LOG.debug(Messages.get().getBundle().key(Messages.LOG_EVENT_PUBLISH_PROJECT_1, publishHistoryId));
                }
                updateAllIndexes(m_adminCms, publishHistoryId, getEventReport(event));
                if (LOG.isDebugEnabled()) {
                    LOG.debug(
                        Messages.get().getBundle().key(
                            Messages.LOG_EVENT_PUBLISH_PROJECT_FINISHED_1,
                            publishHistoryId));
                }
                break;
            default:
                // no operation
        }
    }
public void cmsEvent ( CmsEvent event ) { switch ( event . getType ( ) ) { case I_CmsEventListener . EVENT_REBUILD_SEARCHINDEXES : List < String > indexNames = null ; if ( ( event . getData ( ) != null ) && CmsStringUtil . isNotEmptyOrWhitespaceOnly ( ( String ) event . getData ( ) . get ( I_CmsEventListener . KEY_INDEX_NAMES ) ) ) { indexNames = CmsStringUtil . splitAsList ( ( String ) event . getData ( ) . get ( I_CmsEventListener . KEY_INDEX_NAMES ) , "," , true ) ; } try { if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_EVENT_REBUILD_SEARCHINDEX_1 , indexNames == null ? "" : CmsStringUtil . collectionAsString ( indexNames , "," ) ) , new Exception ( ) ) ; } if ( indexNames == null ) { rebuildAllIndexes ( getEventReport ( event ) ) ; } else { rebuildIndexes ( indexNames , getEventReport ( event ) ) ; } } catch ( CmsException e ) { if ( LOG . isErrorEnabled ( ) ) { LOG . error ( Messages . get ( ) . getBundle ( ) . key ( Messages . ERR_EVENT_REBUILD_SEARCHINDEX_1 , indexNames == null ? "" : CmsStringUtil . collectionAsString ( indexNames , "," ) ) , e ) ; } } break ; case I_CmsEventListener . EVENT_CLEAR_CACHES : if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_EVENT_CLEAR_CACHES_0 ) , new Exception ( ) ) ; } break ; case I_CmsEventListener . EVENT_PUBLISH_PROJECT : CmsUUID publishHistoryId = new CmsUUID ( ( String ) event . getData ( ) . get ( I_CmsEventListener . KEY_PUBLISHID ) ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_EVENT_PUBLISH_PROJECT_1 , publishHistoryId ) ) ; } updateAllIndexes ( m_adminCms , publishHistoryId , getEventReport ( event ) ) ; if ( LOG . isDebugEnabled ( ) ) { LOG . debug ( Messages . get ( ) . getBundle ( ) . key ( Messages . LOG_EVENT_PUBLISH_PROJECT_FINISHED_1 , publishHistoryId ) ) ; } break ; default : } }
Implements the event listener of this class.<p>

@see org.opencms.main.I_CmsEventListener#cmsEvent(org.opencms.main.CmsEvent)