Package org.drools.guvnor.client.rpc

Examples of org.drools.guvnor.client.rpc.ModuleServiceAsync


        Button btn = new Button( Constants.INSTANCE.Delete() );
        btn.addClickHandler( new ClickHandler() {
            public void onClick(ClickEvent event) {
                if ( Window.confirm( Constants.INSTANCE.SnapshotDeleteConfirm( snapshotName,
                                                                               moduleName ) ) ) {
                    ModuleServiceAsync moduleService = GWT.create(ModuleService.class);
                    moduleService.copyOrRemoveSnapshot( moduleName,
                                                                                       snapshotName,
                                                                                       true,
                                                                                       null,
                                                                                       new GenericCallback<java.lang.Void>() {
                                                                                           public void onSuccess(Void v) {
View Full Code Here


                                                       snapInfo.getName() ) );
    }

    private Button getCopyButton(final String snapshotName,
                                 final String packageName) {
        final ModuleServiceAsync moduleService = GWT.create(ModuleService.class);
        Button btn = new Button( Constants.INSTANCE.Copy() );
        btn.addClickHandler( new ClickHandler() {
            public void onClick(ClickEvent event) {
                moduleService.listSnapshots( packageName,
                                    createGenericCallback( snapshotName,
                                                           packageName,
                                                           moduleService ) );
            }
        } );
View Full Code Here

    }

    public static void rebuildBinaries() {
        if ( Window.confirm( Constants.INSTANCE.SnapshotRebuildWarning() ) ) {
            LoadingPopup.showMessage( Constants.INSTANCE.RebuildingSnapshotsPleaseWaitThisMayTakeSomeTime() );
            ModuleServiceAsync moduleService = GWT.create(ModuleService.class);
            moduleService.rebuildSnapshots( new GenericCallback<java.lang.Void>() {
                public void onSuccess(Void v) {
                    LoadingPopup.close();
                    Window.alert( Constants.INSTANCE.SnapshotsWereRebuiltSuccessfully() );
                }
            } );
View Full Code Here

                                                       snapInfo.getName() ) );
    }

    private Button getCopyButton(final String snapshotName,
                                 final String packageName) {
        final ModuleServiceAsync serv = RepositoryServiceFactory.getPackageService();
        Button btn = new Button( Constants.INSTANCE.Copy() );
        btn.addClickHandler( new ClickHandler() {
            public void onClick(ClickEvent event) {
                serv.listSnapshots( packageName,
                                    createGenericCallback( snapshotName,
                                                           packageName,
                                                           serv ) );
            }
        } );
View Full Code Here

TOP

Related Classes of org.drools.guvnor.client.rpc.ModuleServiceAsync

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.