result = dashboardStructure.save( file, cdfStructure );
} else if ( OPERATION_SAVE_AS.equalsIgnoreCase( operation ) ) {
if ( StringUtils.isEmpty( title ) ) {
title = FilenameUtils.getBaseName( file );
}
result = dashboardStructure.saveAs( file, title, description, cdfStructure, isPreview );
} else if ( OPERATION_NEW_FILE.equalsIgnoreCase( operation ) ) {
dashboardStructure.newfile( params );
} else if ( OPERATION_SAVE_SETTINGS.equalsIgnoreCase( operation ) ) {
// check if user is attempting to save settings over a new (non yet saved) dashboard/widget/template