Package org.drools.guvnor.client.common

Examples of org.drools.guvnor.client.common.GenericCallback


        com.google.gwt.user.client.ui.Button save = new com.google.gwt.user.client.ui.Button(constants.SaveChanges());
        editor.addAttribute("", save);
        save.addClickListener(new ClickListener() {
          public void onClick(Widget w) {
            LoadingPopup.showMessage(constants.Updating());
            RepositoryServiceFactory.getService().updateUserPermissions(userName, perms, new GenericCallback() {
              public void onSuccess(Object a) {
                LoadingPopup.close();
                refresh();
              }
            });
View Full Code Here


                                     final String descr,
                                     final Command refresh) {
        LoadingPopup.showMessage( constants.CreatingPackagePleaseWait() );
        RepositoryServiceFactory.getService().createPackage( name,
                                                             descr,
                                                             new GenericCallback() {
                                                                 public void onSuccess(Object data) {
                                                                     RulePackageSelector.currentlySelectedPackage = name;
                                                                     LoadingPopup.close();
                                                                     refresh.execute();
                                                                 }
View Full Code Here

   
  }

    private void doLogin(final TextField userName, TextField password, final FormStylePopup pop) {
        LoadingPopup.showMessage(messages.Authenticating());
        RepositoryServiceFactory.login( userName.getText(), password.getText(), new GenericCallback() {
            public void onSuccess(Object o) {
                userNameLoggedIn = userName.getText();
                LoadingPopup.close();
                Boolean success = (Boolean) o;
                if (!success.booleanValue()) {
View Full Code Here

    });
  }

  private void cleanLog() {
      LoadingPopup.showMessage(constants.CleaningLogMessages());
    RepositoryServiceFactory.getService().cleanLog(new GenericCallback() {
      public void onSuccess(Object data) {
        refresh();
        LoadingPopup.close();
      }
    });
View Full Code Here

    private void renameSelected() {

      String name = Window.prompt(constants.CategoryNewNamePleaseEnter(), "");
      if (name != null) {
        RepositoryServiceFactory.getService().renameCategory(explorer.getSelectedPath(), name, new GenericCallback()  {
        public void onSuccess(Object data) {
          Window.alert(constants.CategoryRenamed());
          explorer.refresh();
        }
        });
View Full Code Here

    }


    private void deleteSelected() {
        if (Window.confirm(constants.AreYouSureYouWantToDeleteCategory() + explorer.getSelectedPath() )) {
            RepositoryServiceFactory.getService().removeCategory( explorer.getSelectedPath(), new GenericCallback() {

                public void onSuccess(Object data) {
                    explorer.refresh();
                }
View Full Code Here

    private void runAnalysis() {
        LoadingPopup.showMessage( constants.AnalysingPackageRunning() );
        VerificationServiceAsync verificationService = GWT.create( VerificationService.class );

        verificationService.analysePackage( packageUUID,
                                            new GenericCallback() {
                                                public void onSuccess(Object data) {
                                                    AnalysisReport rep = (AnalysisReport) data;
                                                    VerifierResultWidget w = new VerifierResultWidget( rep,
                                                                                                       true,
                                                                                                       edit );
View Full Code Here

    addAttribute("", hp);
    ins.addClickListener(new ClickListener() {
      public void onClick(Widget w) {
        if (!Window.confirm(constants.AboutToInstallSampleRepositoryAreYouSure())) return;
        LoadingPopup.showMessage(constants.ImportingAndProcessing());
        RepositoryServiceFactory.getService().installSampleRepository(new GenericCallback() {
          public void onSuccess(Object a) {
            Window.alert(constants.RepositoryInstalledSuccessfully());
            hide();
            Window.Location.reload();
          }
View Full Code Here

    private static void doCategoryNode(final TreeNode treeNode,
                                       final String path) {
        infanticide( treeNode );
        RepositoryServiceFactory.getService().loadChildCategories( path,
                                                                   new GenericCallback() {
                                                                       public void onSuccess(Object data) {
                                                                           final String value[] = (String[]) data;
                                                                           if ( value.length == 0 ) {
                                                                               if ( path.equals( "/" ) && ExplorerLayoutManager.shouldShow( Capabilities.SHOW_ADMIN ) ) {
                                                                                   RepositoryServiceFactory.getService().listPackages( new GenericCallback<PackageConfigData[]>() {
View Full Code Here

                                                    pkgName ) ) ) {
                    RepositoryServiceFactory.getService().copyOrRemoveSnapshot( pkgName,
                                                                                snapshotName,
                                                                                true,
                                                                                null,
                                                                                new GenericCallback() {
                                                                                    public void onSuccess(Object data) {
                                                                                        close.execute();
                                                                                        Window.alert( constants.SnapshotWasDeleted() );

                                                                                    }
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.common.GenericCallback

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.