Package org.rhq.coregui.client.components.table

Examples of org.rhq.coregui.client.components.table.AuthorizedTableAction


                }
            });
    }

    private void addChangeOperationModeAction(final OperationMode mode, String label) {
        addTableAction(label, null, ButtonColor.BLUE, new AuthorizedTableAction(this, TableActionEnablement.ANY,
            Permission.MANAGE_SETTINGS) {
            public void executeAction(final ListGridRecord[] selections, Object actionValue) {
                List<String> selectedNames = getSelectedNames(selections);
                String message = MSG.view_adminTopology_message_setModeConfirm(selectedNames.toString(), mode.name());
                SC.ask(message, new BooleanCallback() {
View Full Code Here


        });
    }

    private void showUpdateMembersAction() {
        addTableAction(MSG.view_groupInventoryMembers_button_updateMembership(), ButtonColor.BLUE,
            new AuthorizedTableAction(this, TableActionEnablement.ALWAYS, Permission.MANAGE_SETTINGS) {
                public void executeAction(final ListGridRecord[] selections, Object actionValue) {
                    AffinityGroupServersSelector.show(id, ServerTableView.this);
                }
            });
    }
View Full Code Here

                return MSG.view_adminTopology_storageNodes_msg_undeployFailed(param[0], param[1]);
            }
        };

        addTableAction(MSG.view_adminTopology_storageNodes_run_undeploySelected(), null, ButtonColor.RED,
            new AuthorizedTableAction(this, TableActionEnablement.SINGLE, Permission.MANAGE_SETTINGS) {
           
                private String availabilityIcon = ImageManager.getAvailabilityIconFromAvailType(AvailabilityType.UP);

                @Override
                public boolean isEnabled(ListGridRecord[] selection) {
View Full Code Here

                return MSG.view_adminTopology_storageNodes_msg_deployFailed(param[0], param[1]);
            }
        };

        addTableAction(MSG.view_adminTopology_storageNodes_run_deploySelected(), null, ButtonColor.BLUE,
            new AuthorizedTableAction(this, TableActionEnablement.SINGLE, Permission.MANAGE_SETTINGS) {

                @Override
                public boolean isEnabled(ListGridRecord[] selection) {
                    return StorageNodeTableView.this.isDeployable(super.isEnabled(selection), selection);
                }
View Full Code Here

        operationsMap.put(MSG.view_adminTopology_storageNodes_run_shutdown(), "shutdown");
        operationsMap.put(MSG.view_adminTopology_storageNodes_run_restart(), "restart");
        operationsMap.put(MSG.view_adminTopology_storageNodes_run_disableDebug(), "stopRPCServer");
        operationsMap.put(MSG.view_adminTopology_storageNodes_run_enableDebug(), "startRPCServer");

        addTableAction(MSG.common_title_operation(), null, operationsMap, ButtonColor.GRAY, new AuthorizedTableAction(
            this, TableActionEnablement.ANY, Permission.MANAGE_SETTINGS) {

            @Override
            public boolean isEnabled(ListGridRecord[] selection) {
                return StorageNodeTableView.this.isEnabled(super.isEnabled(selection), selection);
View Full Code Here

    public Canvas getDetailsView(Integer id) {
        return new AffinityGroupDetailView(id);
    }

    private void showActions() {
        addTableAction(MSG.view_adminTopology_affinityGroups_createNew(), ButtonColor.BLUE, new AuthorizedTableAction(
            this, TableActionEnablement.ALWAYS, Permission.MANAGE_SETTINGS) {
            public void executeAction(final ListGridRecord[] selections, Object actionValue) {
                showCreateAffinityGroupWindow();
            }
        });

        addTableAction(MSG.view_adminTopology_server_removeSelected(), ButtonColor.RED, new AuthorizedTableAction(this,
            TableActionEnablement.ANY, Permission.MANAGE_SETTINGS) {
            public void executeAction(final ListGridRecord[] selections, Object actionValue) {
                final List<String> selectedNames = getSelectedNames(selections);
                String message = MSG.view_adminTopology_message_removeAGroupsConfirm(selectedNames.toString());
                SC.ask(message, new BooleanCallback() {
View Full Code Here

TOP

Related Classes of org.rhq.coregui.client.components.table.AuthorizedTableAction

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.