Package org.drools.guvnor.client.common

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


        view.confirmRebuild();
    }

    public void onRebuildConfirmed() {
        view.showLoadingPopUpRebuildingPackageBinaries();
        clientFactory.getPackageService().rebuildPackages( new GenericCallback() {
            public void onSuccess( Object result ) {
                view.closeLoadingPopUp();
            }
        } );
    }
View Full Code Here


                         PasswordTextBox password,
                         final FormStylePopup pop) {
        LoadingPopup.showMessage( constants.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

                         PasswordTextBox password,
                         final FormStylePopup pop) {
        LoadingPopup.showMessage(constants.Authenticating());
        SecurityServiceAsync.INSTANCE.login(userName.getText(),
                password.getText(),
                new GenericCallback() {
                    public void onSuccess(Object o) {
                        userNameLoggedIn = userName.getText();
                        LoadingPopup.close();
                        Boolean success = (Boolean) o;
                        if (!success) {
View Full Code Here

        updateGlobalAreaType(perspectiveType);
        setPerspective(clientFactory.getPerspectiveFactory().getPerspective(perspectiveType));       
    }

    public void onLogout() {
        clientFactory.getSecurityService().logout(new GenericCallback() {
            public void onSuccess(Object result) {
                Window.open(GWT.getModuleBaseURL() + "Guvnor.jsp", "_self", "");
            }
        });
    }
View Full Code Here

                         PasswordTextBox password,
                         final FormStylePopup pop) {
        LoadingPopup.showMessage( constants.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) {
View Full Code Here

                                     final String name) {
        LoadingPopup.showMessage( ((Constants) GWT.create( Constants.class )).AssemblingPackageSource() );
        DeferredCommand.addCommand( new Command() {
            public void execute() {
                RepositoryServiceFactory.getService().buildPackageSource( uuid,
                                                                          new GenericCallback() {
                                                                              public void onSuccess(Object data) {
                                                                                  String content = (String) data;
                                                                                  showSource( content,
                                                                                              name );
                                                                              }
View Full Code Here

                LoadingPopup.showMessage( constants.PleaseWaitDotDotDot() );
                RepositoryServiceFactory.getService().createPackageSnapshot( packageName,
                                                                             name,
                                                                             replace,
                                                                             comment.getText(),
                                                                             new GenericCallback() {
                                                                                 public void onSuccess(Object data) {
                                                                                     Window.alert( Format.format( constants.TheSnapshotCalled0WasSuccessfullyCreated(),
                                                                                                                  name ) );
                                                                                     form.hide();
                                                                                     LoadingPopup.close();
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

                                                    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

                                                                          newNameTextBox.getText() ) ) {
                                                            serv.copyOrRemoveSnapshot( packageName,
                                                                                       snapshotName,
                                                                                       false,
                                                                                       newNameTextBox.getText(),
                                                                                       new GenericCallback() {
                                                                                           public void onSuccess(Object data) {
                                                                                               copy.hide();
                                                                                               Window.alert( Format.format( constants.CreatedSnapshot0ForPackage1(),
                                                                                                                            newNameTextBox.getText(),
                                                                                                                            packageName ) );
                                                                                           }
                                                                                       } );
                                                        }
                                                    } else {
                                                        for ( RadioButton rb : options ) {
                                                            if ( rb.isChecked() ) {
                                                                final String newName = rb.getText();
                                                                serv.copyOrRemoveSnapshot( packageName,
                                                                                           snapshotName,
                                                                                           false,
                                                                                           newName,
                                                                                           new GenericCallback() {
                                                                                               public void onSuccess(Object data) {
                                                                                                   copy.hide();
                                                                                                   Window.alert( Format.format( constants.Snapshot0ForPackage1WasCopiedFrom2(),
                                                                                                                                newName,
                                                                                                                                packageName,
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.