Package pt.webdetails.cdf.dd.structure

Examples of pt.webdetails.cdf.dd.structure.DashboardStructure.newfile()


      } else if ( OPERATION_SAVE_AS.equalsIgnoreCase( operation ) ) {
        boolean isPreview = ( path.indexOf( "_tmp.cdfde" ) > -1 || path.indexOf( "_tmp.wcdf" ) > -1 );
        dashboardStructure.saveAs( path, title, description, cdfStructure, isPreview );

      } else if ( OPERATION_NEW_FILE.equalsIgnoreCase( operation ) ) {
        dashboardStructure.newfile( toHashMap( getRequestParameters() ) );

      } else if ( OPERATION_SAVE_SETTINGS.equalsIgnoreCase( operation ) ) {
        // check if user is attempting to save settings over a new (non yet saved) dashboard/widget/template
        String file = getRequestParameters().getStringParameter( "file", null );
        if ( StringUtils.isEmpty( file ) || UNSAVED_FILE_PATH.equals( file ) ) {
View Full Code Here


        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
        if( StringUtils.isEmpty( file ) || file.equals( UNSAVED_FILE_PATH ) ) {
          logger.warn( getMessage( "CdfTemplates.ERROR_003_SAVE_DASHBOARD_FIRST" ) );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.