Package org.pentaho.actionsequence.dom.actions

Examples of org.pentaho.actionsequence.dom.actions.SubActionAction


  }

  @Override
  protected boolean validateAction() {
    boolean value = false;
    SubActionAction subAction = null;

    if ( getActionDefinition() instanceof SubActionAction ) {
      subAction = (SubActionAction) getActionDefinition();

      if ( ( subAction.getAction() != ActionInputConstant.NULL_INPUT )
          && ( subAction.getPath() != ActionInputConstant.NULL_INPUT )
          && ( subAction.getSolution() != ActionInputConstant.NULL_INPUT ) ) {
        value = true;
      } else if ( subAction.getPath() != ActionInputConstant.NULL_INPUT ) {
        // for backwards compatibility we will retain action/path/solution
        // however, in 5.0 and beyond we only need the path element, eg /home/user/folder/file.xaction
        value = true;
      }
    } else {
View Full Code Here


  }

  @SuppressWarnings ( "deprecation" )
  @Override
  protected boolean executeAction() throws Throwable {
    SubActionAction subAction = (SubActionAction) getActionDefinition();
    List<Object> ignoreParameters = new ArrayList<Object>();

    String actionPath = buildActionPath( subAction.getSolution().getStringValue(),
        subAction.getPath().getStringValue(),
        subAction.getAction().getStringValue() );

    // see if we are supposed to proxy the session
    IPentahoSession session = getSession();
    if ( subAction.getSessionProxy() != ActionInputConstant.NULL_INPUT ) {
      String sessionName = subAction.getSessionProxy().getStringValue();
      // TODO support user-by-user locales
      PentahoSessionParameterProvider params = new PentahoSessionParameterProvider( session );
      session = new UserSession( sessionName, LocaleHelper.getLocale(), params );
    }
View Full Code Here

TOP

Related Classes of org.pentaho.actionsequence.dom.actions.SubActionAction

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.