// check if user is attempting to save settings over a new (non yet saved) dashboard/widget/template
if( StringUtils.isEmpty( file ) || file.equals( UNSAVED_FILE_PATH ) ) {
logger.warn( getMessage( "CdfTemplates.ERROR_003_SAVE_DASHBOARD_FIRST" ) );
return JsonUtils.getJsonResult( false, getMessage( "CdfTemplates.ERROR_003_SAVE_DASHBOARD_FIRST" ) );
}
dashboardStructure.savesettings( params );
} else {
logger.error( "Unknown operation: " + operation );
}
return JsonUtils.getJsonResult( true, result );
} catch ( Exception e ) {