private void setRefreshIndexes ( Properties puProps , Map < String , Object > externalProperties ) { Object refreshIndexes = null ; /* * Check from properties set while creating emf * */ if ( externalProperties . get ( ESConstants . KUNDERA_ES_REFRESH_INDEXES ) != null ) { refreshIndexes = externalProperties . get ( ESConstants . KUNDERA_ES_REFRESH_INDEXES ) ; } /* * Check from PU Properties * */ if ( refreshIndexes == null && puProps . get ( ESConstants . KUNDERA_ES_REFRESH_INDEXES ) != null ) { refreshIndexes = puProps . get ( ESConstants . KUNDERA_ES_REFRESH_INDEXES ) ; } if ( refreshIndexes != null ) { if ( refreshIndexes instanceof Boolean ) { this . setRereshIndexes = ( boolean ) refreshIndexes ; } else { this . setRereshIndexes = Boolean . parseBoolean ( ( String ) refreshIndexes ) ; } } }
Sets the refresh indexes .