Examples of execute()


Examples of org.pentaho.mantle.client.commands.RefreshSchedulesCommand.execute()

  @Bindable
  public void refreshContent() {
    if ( PerspectiveManager.SCHEDULES_PERSPECTIVE.equals( PerspectiveManager.getInstance().getActivePerspective()
        .getId() ) ) {
      Command cmd = new RefreshSchedulesCommand();
      cmd.execute();
    } else {
      Command cmd = new RefreshRepositoryCommand();
      cmd.execute();
    }
  }
View Full Code Here

Examples of org.pentaho.mantle.client.commands.SaveCommand.execute()

  }

  @Bindable
  public void executeSaveCommand() {
    SaveCommand saveCommand = new SaveCommand();
    saveCommand.execute();
  }

  @Bindable
  public void executeSaveAsCommand() {
    SaveCommand saveAsCommand = new SaveCommand( true );
View Full Code Here

Examples of org.pentaho.mantle.client.commands.ShareFileCommand.execute()

      ScheduleHelper.createSchedule( repositoryFile );
      return;
    } else if ( mode == FileCommand.COMMAND.SHARE ) {
      ShareFileCommand sfc = new ShareFileCommand();
      sfc.setSolutionPath( fileNameWithPath );
      sfc.execute();
    } else {
      String url = null;
      String extension = ""; //$NON-NLS-1$
      if ( fileNameWithPath.lastIndexOf( FILE_EXTENSION_DELIMETER ) > 0 ) { //$NON-NLS-1$
        extension = fileNameWithPath.substring( fileNameWithPath.lastIndexOf( FILE_EXTENSION_DELIMETER ) + 1 ); //$NON-NLS-1$
View Full Code Here

Examples of org.pentaho.mantle.client.commands.ShowBrowserCommand.execute()

  @Bindable
  public void showNavigatorClicked() {
    boolean show = !model.isShowNavigatorSelected();
    model.setShowNavigatorSelected( show ); // toggle first
    ShowBrowserCommand showBrowserCommand = new ShowBrowserCommand( show );
    showBrowserCommand.execute();
  }

  @Bindable
  public void setSaveEnabled( boolean flag ) {
    // called by the MainToolbarModel to change state.
View Full Code Here

Examples of org.pentaho.mondrian.publish.PublishToServerCommand.execute()

    }

    if (schemaFile != null) {
      // second, publish schema
      PublishToServerCommand command = new PublishToServerCommand();
      command.execute(this);
    }
  }

  public JFrame getFrame() {
    return (JFrame)document.getRootElement().getManagedObject();
View Full Code Here

Examples of org.pentaho.platform.api.data.IDataComponent.execute()

        dataComponent.setLoggingLevel( getLoggingLevel() );
        dataComponent.setMessages( getMessages() );
        // if that fails, then we know we messed up again.
        // Abort, we cant continue anyway.
        if ( ( dataComponent.validate() == IRuntimeContext.RUNTIME_CONTEXT_VALIDATE_OK ) && dataComponent.init()
            && ( dataComponent.execute() == IRuntimeContext.RUNTIME_STATUS_SUCCESS ) ) {
          final IPentahoResultSet resultset = dataComponent.getResultSet();
          factory =
              new PentahoTableDataFactory( AbstractJFreeReportComponent.DATACOMPONENT_DEFAULTINPUT,
                  new PentahoTableModel( resultset ) );
        } else {
View Full Code Here

Examples of org.pentaho.platform.api.engine.ISolutionEngine.execute()

      solutionEngine.setParameterXsl( parameterXsl );
    }

    dispose();
    runtime =
        solutionEngine.execute( actionPath, processId, false, instanceEnds, instanceId, true, parameterProviders,
            outputHandler, this, urlFactory, messages );

    // need to wait until this is complete
    // TODO
View Full Code Here

Examples of org.pentaho.platform.plugin.action.pentahometadata.MetadataQueryComponent.execute()

            + "[param:param1])</condition></constraint>"
            + "</constraints>" + "</mql>";

    MetadataQueryComponent component = new MetadataQueryComponent();
    component.setQuery( mql );
    component.execute();

    IPentahoResultSet rs = component.getResultSet();
    try {
      Assert.assertNotNull( rs );
      Assert.assertEquals( 16, rs.getRowCount() );
View Full Code Here

Examples of org.pentaho.platform.repository2.unified.jcr.JcrRepositoryDumpToFile.execute()

    login( USERNAME_SUZY, tenantAcme, new String[]{tenantAdminRoleName, tenantAuthenticatedRoleName} );
    logger.info( "getFile" );
    JcrRepositoryDumpToFile dumpToFile =
        new JcrRepositoryDumpToFile( testJcrTemplate, jcrTransactionTemplate, repositoryAdminUsername,
            "c:/build/testrepo_9", Mode.CUSTOM );
    dumpToFile.execute();
    RepositoryFile f = repo.getFile( ClientRepositoryPaths.getUserHomeFolderPath( USERNAME_SUZY ) );
    assertNotNull( f.getId() );
    assertEquals( ClientRepositoryPaths.getUserHomeFolderPath( USERNAME_SUZY ), f.getPath() );
    assertNotNull( f.getCreatedDate() );
    assertEquals( USERNAME_SUZY, f.getName() );
View Full Code Here

Examples of org.persvr.job.Job.execute()

    log.debug(GlobalData.webInfLocation.toString());
    global.put("coreApp", global, new DefaultHandler());
    LocalJsonFileSource.setLocalJsonPath(webappRoot);

    Job upgrade = new Upgrade();
    upgrade.execute();
    log.info("Persevere v" + Persevere.getPersevereVersion() + " Started");
    if(startConsole){
      new Console().start();
    }
    config.getServletContext().setAttribute("testrunner", new TestRunner());
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.