method for returning builds as per buildtype . concode_field_sep String PLUGIN_JS_URL concode_elem_sep String buildType concode_elem_sep AbstractProject project concode_elem_sep String NON_SCANNED concode_field_sep String getUrlName concode_elem_sep List<AbstractBuild> getNotScannedBuilds concode_elem_sep void doSelectBuildType concode_elem_sep void setBuildType concode_elem_sep void doPerformScan concode_elem_sep List<AbstractBuild> getAllBuilds concode_elem_sep void checkPermission concode_elem_sep String getDisplayName concode_elem_sep String getIconFileName concode_elem_sep boolean hasPermission concode_elem_sep String getJsUrl concode_elem_sep AbstractProject<?,?> getProject concode_elem_sep void removeRunActions concode_elem_sep String getBuildType
List < AbstractBuild > function ( ) { buildType = getBuildType ( ) ; if ( buildType != null ) { if ( buildType . length ( ) == 0 || buildType . equals ( NON_SCANNED ) ) { return getNotScannedBuilds ( ) ; } else { return getAllBuilds ( ) ; } } else { return getNotScannedBuilds ( ) ; } }