Package org.rhq.coregui.client.util.message

Examples of org.rhq.coregui.client.util.message.Message


                public void onSuccess(Subject checked) {
                    Log.info("Successfully registered LDAP subject '" + checked + "'.");
                    checked.setSessionId(Integer.valueOf(populatedForm.getValueAsString(SESSIONID)));

                    CoreGUI.getMessageCenter().notify(
                        new Message(MSG.view_login_registerLdapSuccess(), Message.Severity.Info));
                    window.destroy();
                    loginShowing = false;
                    //indicate to login callback success
                    callback.onSuccess(checked);
                }
View Full Code Here


            if (refreshInterval > 0) {
                m = MSG.view_dashboards_portlets_refresh_success1();
            } else {
                m = MSG.view_dashboards_portlets_refresh_success2();
            }
            CoreGUI.getMessageCenter().notify(new Message(m, Message.Severity.Info));
            updateRefreshMenu();
        }
View Full Code Here

            if (refreshInterval > 0) {
                m = MSG.view_dashboards_portlets_refresh_fail1();
            } else {
                m = MSG.view_dashboards_portlets_refresh_fail2();
            }
            CoreGUI.getMessageCenter().notify(new Message(m, Message.Severity.Error));
            // Revert back to our original favorite status, since the server update failed.
            updateRefreshMenu();
        }
View Full Code Here

        GWTServiceLookup.getDriftService().pinTemplate(template.getId(), getSnapshotDriftDef().getId(),
            getSnapshotVersion(), new AsyncCallback<Void>() {

                public void onSuccess(Void result) {
                    CoreGUI.getMessageCenter().notify(
                        new Message(MSG.view_drift_wizard_pinTemplate_success(template.getName()),
                            Message.Severity.Info));
                    getView().closeDialog();
                    CoreGUI.goToView(LinkManager.getDriftDefinitionsLink(getSnapshotDriftDef().getResource().getId()),
                        true);
                }
View Full Code Here

            }

            @Override
            public void onSuccess(Void result) {
                CoreGUI.getMessageCenter().notify(
                    new Message(MSG.view_drift_success_deleteTemplate(Integer.toString(records.length)),
                        Message.Severity.Info));
                DriftDefinitionTemplatesView.this.refresh();
            }
        });
    }
View Full Code Here

                    resourceManager.deleteResources(resourceIds, new AsyncCallback<List<DeleteResourceHistory>>() {
                        public void onFailure(Throwable caught) {
                            if (caught instanceof CannotConnectToAgentException) {
                                CoreGUI.getMessageCenter().notify(
                                    new Message(MSG.view_inventory_resources_deleteFailed2(), Severity.Warning));
                            } else {
                                CoreGUI.getErrorHandler().handleError(MSG.view_inventory_resources_deleteFailed(),
                                    caught);
                            }
                        }

                        public void onSuccess(List<DeleteResourceHistory> result) {
                            CoreGUI.getMessageCenter().notify(
                                new Message(MSG.view_inventory_resources_deleteSuccessful(), Severity.Info));

                            refresh(true);
                            // refresh the entire gui so it encompasses any relevant tree view. Don't just call this.refresh(),
                            // because CoreGUI.refresh is more comprehensive.
                            CoreGUI.refresh();
View Full Code Here

                    }
                    if (deletedRecordNames.size() == selectedRecordCount) {
                        // all selected schedules were successfully deleted.
                        String deletedMessage = getDeletedMessage(deletedRecordNames.size());
                        String deletedMessageDetail = deletedMessage + ": [" + deletedRecordNames.toString() + "]";
                        Message message = new Message(deletedMessage, deletedMessageDetail);
                        CoreGUI.getMessageCenter().notify(message);
                        refresh();
                    }
                }
                // TODO: Print error messages for failures or partial failures.
View Full Code Here

            message = MSG.common_msg_asyncTimeout(message);
        } else {
            severity = Message.Severity.Error;
        }

        Message errorMessage = new Message(message, t, severity);
        CoreGUI.getMessageCenter().notify(errorMessage);

        if (t != null) {
            Log.warn(message, t);
        }
View Full Code Here

        }

        GWTServiceLookup.getAlertService().deleteAlerts(alertIds, new AsyncCallback<Integer>() {
            public void onSuccess(Integer resultCount) {
                CoreGUI.getMessageCenter().notify(
                    new Message(MSG.view_alerts_delete_success(String.valueOf(resultCount)), Message.Severity.Info));
                refresh(true);
            }

            public void onFailure(Throwable caught) {
                CoreGUI.getErrorHandler()
View Full Code Here

    protected void deleteAll() {
        int rpcTimeout = 10000 + getListGrid().getTotalRows();
        GWTServiceLookup.getAlertService(rpcTimeout).deleteAlertsByContext(context, new AsyncCallback<Integer>() {
            public void onSuccess(Integer resultCount) {
                CoreGUI.getMessageCenter().notify(
                    new Message(MSG.view_alerts_delete_success(String.valueOf(resultCount)), Message.Severity.Info));
                refresh(true);
            }

            public void onFailure(Throwable caught) {
                CoreGUI.getErrorHandler().handleError(MSG.view_alerts_delete_failure_all(), caught);
View Full Code Here

TOP

Related Classes of org.rhq.coregui.client.util.message.Message

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.