Package org.pentaho.platform.engine.services

Examples of org.pentaho.platform.engine.services.ActionSequenceJCRHelper


  private void doParameter( final String solutionName, final String actionPath, final String actionName,
      final IParameterProvider parameterProvider, final OutputStream outputStream, final IPentahoSession userSession,
      final HttpServletResponse response ) throws IOException {

    final IActionSequence actionSequence =
        new ActionSequenceJCRHelper().getActionSequence( ActionInfo.buildSolutionPath( solutionName, actionPath,
            actionName ), PentahoSystem.loggingLevel, RepositoryFilePermission.READ );
    if ( actionSequence == null ) {
      logger.debug( Messages.getInstance().getString( "HttpWebService.ERROR_0002_NOTFOUND", solutionName, actionPath,
        actionName ) );
      response.sendError( HttpServletResponse.SC_INTERNAL_SERVER_ERROR );
View Full Code Here


    try {
      IPentahoSession userSession = getPentahoSession( request );
      if ( !doBackgroundExecution( request, response, userSession ) ) {
        OutputStream outputStream = getOutputStream( response, doMessages( request ) );
        ActionSequenceJCRHelper actionHelper = new ActionSequenceJCRHelper( userSession );
        String actionPath = request.getParameter( "path" ); //$NON-NLS-1$
        IActionSequence actionSequence =
            actionHelper.getActionSequence( actionPath, PentahoSystem.loggingLevel, RepositoryFilePermission.READ );
        String fileName = null;
        if ( actionSequence != null ) {
          String title = actionSequence.getTitle();
          if ( ( title != null ) && ( title.length() > 0 ) ) {
            fileName = title;
View Full Code Here

   * @see org.pentaho.core.ui.component.BaseUIComponent#getXmlContent()
   */
  @Override
  public Document getXmlContent() {

    ActionSequenceJCRHelper actionHelper = new ActionSequenceJCRHelper( getSession() );
    IActionSequence actionSequence =
        actionHelper.getActionSequence( ActionInfo.buildSolutionPath( solution, path, actionName ), getLoggingLevel(),
            RepositoryFilePermission.READ );

    if ( actionSequence == null ) {
      // TODO log this
      error( Messages.getInstance().getString( "InputForm.ERROR_0004_ACTION_NOT_FOUND" ) + solution + path + actionName ); //$NON-NLS-1$
View Full Code Here

    setSourcePath( definitionPath );
  }

  protected AbstractJFreeChartComponent( final IPentahoUrlFactory urlFactory, final List messages ) {
    super( urlFactory, messages );
    jcrHelper = new ActionSequenceJCRHelper( getSession() );
    AbstractChartComponent.logger = LogFactory.getLog( this.getClass() );
  }
View Full Code Here

  private static final Log logger = LogFactory.getLog( XactionUtil.class );

  @SuppressWarnings ( "rawtypes" )
  public static void createOutputFileName( RepositoryFile file, IOutputHandler outputHandler ) {
    IPentahoSession userSession = PentahoSessionHolder.getSession();
    ActionSequenceJCRHelper actionHelper = new ActionSequenceJCRHelper( userSession );
    IActionSequence actionSequence =
      actionHelper.getActionSequence( file.getPath(), PentahoSystem.loggingLevel, RepositoryFilePermission.READ );

    String fileName = "content"; //$NON-NLS-1$
    if ( actionSequence != null ) {
      String title = actionSequence.getTitle();
      if ( ( title != null ) && ( title.length() > 0 ) ) {
View Full Code Here

  }

  @SuppressWarnings ( { "unchecked", "rawtypes" } )
  public static String doParameter( final RepositoryFile file, IParameterProvider parameterProvider,
                                    final IPentahoSession userSession ) throws IOException {
    ActionSequenceJCRHelper helper = new ActionSequenceJCRHelper();
    final IActionSequence actionSequence =
      helper.getActionSequence( file.getPath(), PentahoSystem.loggingLevel, RepositoryFilePermission.READ );
    final Document document = DocumentHelper.createDocument();
    try {
      final Element parametersElement = document.addElement( "parameters" );

      // noinspection unchecked
View Full Code Here

      ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
      String solutionName = request.getParameter( "solution" ); //$NON-NLS-1$
      String actionPath = request.getParameter( "path" ); //$NON-NLS-1$
      String actionName = request.getParameter( "action" ); //$NON-NLS-1$
      IActionSequence actionSequence =
          new ActionSequenceJCRHelper().getActionSequence( ActionInfo.buildSolutionPath( solutionName, actionPath,
            actionName ), PentahoSystem.loggingLevel, RepositoryFilePermission.READ );
      String fileName = null;
      if ( actionSequence != null ) {
        String title = actionSequence.getTitle();
        if ( ( title != null ) && ( title.length() > 0 ) ) {
View Full Code Here

        new RuntimeContext( runtimeData.getInstanceId(), this, solutionName, runtimeData, session, outputHandler,
            processId, urlFactory, parameterProviders, getMessages(), createFeedbackParameterCallback );
  }

  private IActionSequence createActionSequence( final String actionPath ) {
    return new ActionSequenceJCRHelper( session ).getActionSequence( actionPath, loggingLevel,
        RepositoryFilePermission.READ );
  }
View Full Code Here

    String datasetType = ChartDefinition.CATEGORY_DATASET_STR;
    if ( ( chartTypeStr == null ) || ( chartTypeStr.length() == 0 ) ) {

      try {
        // attempt to get the chart type and possibly data type from the xml doc
        ActionSequenceJCRHelper jcrHelper = new ActionSequenceJCRHelper( userSession );
        Document chartDefinition = jcrHelper.getSolutionDocument( actionPath, RepositoryFilePermission.READ );
        Node chartAttributes = chartDefinition.selectSingleNode( "//" + AbstractChartComponent.CHART_NODE_NAME ); //$NON-NLS-1$
        chartTypeStr = chartAttributes.selectSingleNode( ChartDefinition.TYPE_NODE_NAME ).getText();
        Node datasetTypeNode = chartAttributes.selectSingleNode( ChartDefinition.DATASET_TYPE_NODE_NAME );
        if ( datasetTypeNode != null ) {
          datasetType = datasetTypeNode.getText();
View Full Code Here

TOP

Related Classes of org.pentaho.platform.engine.services.ActionSequenceJCRHelper

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.