Package org.pentaho.cdf

Examples of org.pentaho.cdf.InvalidCdfOperationException


  public JSONObject add( String page, String comment, String user ) throws JSONException, InvalidCdfOperationException,
    PluginHibernateException {

    if ( StringUtils.isEmpty( page ) || StringUtils.isEmpty( comment ) ) {
      logger.error( "Parameters 'page' and 'comment' are not optional" );
      throw new InvalidCdfOperationException( "Page cannot be null" );
    }

    logger.debug( "Adding comment" );

    CommentEntry commentEntry = new CommentEntry( page, user, comment );
View Full Code Here


      String user ) throws JSONException, InvalidCdfOperationException, PluginHibernateException {
    logger.debug( "Listing messages" );

    if ( StringUtils.isEmpty( page ) ) {
      logger.error( "Parameter 'page' is not optional" );
      throw new InvalidCdfOperationException( "Page cannot be null" );
    }
   
    final String queryName;

    if ( isDeleted || isArchived ) {
View Full Code Here

  public JSONObject store( String value, String user ) throws JSONException, InvalidCdfOperationException,
    PluginHibernateException {

    if ( StringUtils.isEmpty( value ) ) {
      logger.error( "Parameter 'storageValue' cannot be empty" );
      throw new InvalidCdfOperationException( "Parameter 'storageValue' cannot be empty" );
    }

    logger.debug( "Storing user entry" );

    // if we have one, get it. Otherwise, create a new one
View Full Code Here

    if ( access.fileExists( dashboard ) ) {

      // Check for access permissions
      if ( !access.hasAccess( dashboard, FileAccess.EXECUTE ) ) {
        throw new InvalidCdfOperationException( "Access denied" );
      }

      try {

        Document doc = XmlDom4JUtils.getDocumentFromFile( access.fetchFile( dashboard ) );

        if ( doc.selectSingleNode( NODE_TEMPLATE ) != null ) {
          template = XmlDom4JUtils.getNodeText( NODE_TEMPLATE, doc, "" );
        }else{
          template = defaultTemplate;
        }
       
        // Get message file base name if any
        if ( doc.selectSingleNode( NODE_MESSAGES ) != null ) {
          messagesBaseFilename = XmlDom4JUtils.getNodeText( NODE_MESSAGES, doc );
        }

        // If a "style" tag exists, use that one
        if ( doc.selectSingleNode( NODE_STYLES ) != null ) {
          style = XmlDom4JUtils.getNodeText( NODE_STYLES, doc );
        } else {
          style = CdfConstants.DEFAULT_DASHBOARD_STYLE;
        }
       
        success = true;

      } catch ( IOException e ) {
        logger.error( e );
        throw new InvalidCdfOperationException( e );
      }
    }

    return success;
  }
View Full Code Here

    }
    catch (NoSuchMethodException ex)
    {
      logger.error("NoSuchMethodException : " + actionParam + " - " + getExceptionDescription(ex));
      throw new InvalidCdfOperationException(ex);
    }
    catch (Exception ex)
    {
      logger.error(Messages.getErrorString("DashboardDesignerContentGenerator.ERROR_001_INVALID_METHOD_EXCEPTION") + " : " + actionParam);
      throw new InvalidCdfOperationException(ex);
    }

  }
View Full Code Here

    if (storageValue == null)
    {

      logger.error("Parameter 'storageValue' Can't be null");
      throw new InvalidCdfOperationException("Parameter 'storageValue' Can't be null");

    }

    logger.debug("Storing user entry");
View Full Code Here

    }
    catch (JSONException ex)
    {
      logger.error("JSONException while building return information: " + getExceptionDescription(ex));
      throw new InvalidCdfOperationException(ex);
    }
    catch (NoSuchMethodException ex)
    {
      logger.error("NoSuchMethodException : " + actionParam + " - " + getExceptionDescription(ex));
      throw new InvalidCdfOperationException(ex);
    }
    catch (Exception ex)
    {
      logger.error(Messages.getErrorString("DashboardDesignerContentGenerator.ERROR_001_INVALID_METHOD_EXCEPTION") + " : " + actionParam);
      throw new InvalidCdfOperationException(ex);
    }

  }
View Full Code Here

    if (page == null || page.equals("") || comment == null || comment.equals(""))
    {

      logger.error("Parameters 'page' and 'comment' are not optional");
      throw new InvalidCdfOperationException("Page cannot be null");

    }

    logger.debug("Adding comment");
View Full Code Here

    if (page == null || page.equals(""))
    {

      logger.error("Parameters 'page' and 'comment' are not optional");
      throw new InvalidCdfOperationException("Page cannot be null");

    }

    logger.debug("Adding comment");
View Full Code Here

TOP

Related Classes of org.pentaho.cdf.InvalidCdfOperationException

Copyright © 2018 www.massapicom. 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.