private List < I_CmsSearchFieldMapping > getMappings ( ) { CmsSearchManager manager = OpenCms . getSearchManager ( ) ; I_CmsSearchFieldConfiguration fieldConfig = manager . getFieldConfiguration ( getParamFieldconfiguration ( ) ) ; CmsLuceneField field ; List < I_CmsSearchFieldMapping > result = null ; Iterator < CmsSearchField > itFields ; if ( fieldConfig != null ) { itFields = fieldConfig . getFields ( ) . iterator ( ) ; while ( itFields . hasNext ( ) ) { field = ( CmsLuceneField ) itFields . next ( ) ; if ( field . getName ( ) . equals ( getParamField ( ) ) ) { result = field . getMappings ( ) ; } } } else { result = Collections . emptyList ( ) ; if ( LOG . isErrorEnabled ( ) ) { LOG . error ( Messages . get ( ) . getBundle ( ) . key ( Messages . ERR_SEARCHINDEX_EDIT_MISSING_PARAM_1 , A_CmsFieldConfigurationDialog . PARAM_FIELDCONFIGURATION ) ) ; } } return result ; }
Returns the configured mappings of the current field .