@Override
    public void executeListMultiActions() {

        CmsSearchManager searchManager = OpenCms.getSearchManager();
        if (getParamListAction().equals(LIST_MACTION_DELETEFIELD)) {
            // execute the delete multiaction
            Iterator<CmsListItem> itItems = getSelectedItems().iterator();
            CmsListItem listItem;
            CmsLuceneField field;
            List<CmsSearchField> deleteFields = new ArrayList<CmsSearchField>();
            List<CmsSearchField> fields = searchManager.getFieldConfiguration(m_paramFieldconfiguration).getFields();
            Iterator<CmsSearchField> itFields;

            while (itItems.hasNext()) {
                listItem = itItems.next();
                itFields = fields.iterator();
                while (itFields.hasNext()) {
                    String item = (String)listItem.get(LIST_COLUMN_NAME);
                    CmsLuceneField curField = (CmsLuceneField)itFields.next();
                    String fieldName = curField.getName();
                    if (item.equals(fieldName)) {
                        deleteFields.add(curField);
                    }
                }

            }

            itFields = deleteFields.iterator();
            while (itFields.hasNext()) {
                field = (CmsLuceneField)itFields.next();
                searchManager.removeSearchFieldConfigurationField(
                    searchManager.getFieldConfiguration(m_paramFieldconfiguration),
                    field);
            }

            refreshList();
            if (checkWriteConfiguration(fields)) {
                writeConfiguration(false);
            }
        }
        listSave();
    }
@ Override public void executeListMultiActions ( ) { CmsSearchManager searchManager = OpenCms . getSearchManager ( ) ; if ( getParamListAction ( ) . equals ( LIST_MACTION_DELETEFIELD ) ) { Iterator < CmsListItem > itItems = getSelectedItems ( ) . iterator ( ) ; CmsListItem listItem ; CmsLuceneField field ; List < CmsSearchField > deleteFields = new ArrayList < CmsSearchField > ( ) ; List < CmsSearchField > fields = searchManager . getFieldConfiguration ( m_paramFieldconfiguration ) . getFields ( ) ; Iterator < CmsSearchField > itFields ; while ( itItems . hasNext ( ) ) { listItem = itItems . next ( ) ; itFields = fields . iterator ( ) ; while ( itFields . hasNext ( ) ) { String item = ( String ) listItem . get ( LIST_COLUMN_NAME ) ; CmsLuceneField curField = ( CmsLuceneField ) itFields . next ( ) ; String fieldName = curField . getName ( ) ; if ( item . equals ( fieldName ) ) { deleteFields . add ( curField ) ; } } } itFields = deleteFields . iterator ( ) ; while ( itFields . hasNext ( ) ) { field = ( CmsLuceneField ) itFields . next ( ) ; searchManager . removeSearchFieldConfigurationField ( searchManager . getFieldConfiguration ( m_paramFieldconfiguration ) , field ) ; } refreshList ( ) ; if ( checkWriteConfiguration ( fields ) ) { writeConfiguration ( false ) ; } } listSave ( ) ; }
@see org.opencms.workplace.list.A_CmsListDialog#executeListMultiActions()