public void saveBlacklist(ListConfigurationBean configBean) {

        if (m_dialogWindow != null) {
            m_dialogWindow.close();
            m_dialogWindow = null;
        }
        CmsObject cms = A_CmsUI.getCmsObject();

        try {
            m_lockAction = CmsLockUtil.ensureLock(cms, m_currentResource);
        } catch (CmsException e) {
            CmsErrorDialog.showErrorDialog(e);
            return;
        }

        try {
            CmsFile configFile = cms.readFile(m_currentResource);
            CmsXmlContent content = CmsXmlContentFactory.unmarshal(cms, configFile);
            // list configurations are single locale contents
            Locale locale = CmsLocaleManager.MASTER_LOCALE;
            int count = 0;
            while (content.hasValue(N_BLACKLIST, locale)) {
                content.removeValue(N_BLACKLIST, locale, 0);
            }
            for (CmsUUID hiddenId : configBean.getBlacklist()) {
                CmsXmlVfsFileValue contentVal;
                contentVal = (CmsXmlVfsFileValue)content.addValue(cms, N_BLACKLIST, locale, count);
                contentVal.setIdValue(cms, hiddenId);
                count++;
            }
            configFile.setContents(content.marshal());
            cms.writeFile(configFile);
            if (m_lockAction.getChange().equals(LockChange.locked)) {
                CmsLockUtil.tryUnlock(cms, configFile);
            }
        } catch (CmsException e) {
            e.printStackTrace();
        }
        m_currentConfig = configBean;
    }
public void saveBlacklist ( ListConfigurationBean configBean ) { if ( m_dialogWindow != null ) { m_dialogWindow . close ( ) ; m_dialogWindow = null ; } CmsObject cms = A_CmsUI . getCmsObject ( ) ; try { m_lockAction = CmsLockUtil . ensureLock ( cms , m_currentResource ) ; } catch ( CmsException e ) { CmsErrorDialog . showErrorDialog ( e ) ; return ; } try { CmsFile configFile = cms . readFile ( m_currentResource ) ; CmsXmlContent content = CmsXmlContentFactory . unmarshal ( cms , configFile ) ; Locale locale = CmsLocaleManager . MASTER_LOCALE ; int count = 0 ; while ( content . hasValue ( N_BLACKLIST , locale ) ) { content . removeValue ( N_BLACKLIST , locale , 0 ) ; } for ( CmsUUID hiddenId : configBean . getBlacklist ( ) ) { CmsXmlVfsFileValue contentVal ; contentVal = ( CmsXmlVfsFileValue ) content . addValue ( cms , N_BLACKLIST , locale , count ) ; contentVal . setIdValue ( cms , hiddenId ) ; count ++ ; } configFile . setContents ( content . marshal ( ) ) ; cms . writeFile ( configFile ) ; if ( m_lockAction . getChange ( ) . equals ( LockChange . locked ) ) { CmsLockUtil . tryUnlock ( cms , configFile ) ; } } catch ( CmsException e ) { e . printStackTrace ( ) ; } m_currentConfig = configBean ; }
Saves the blacklist from the bean in the current list configuration.<p>

@param configBean the bean whose blacklist should be saved