Package org.rhq.coregui.client.gwt

Examples of org.rhq.coregui.client.gwt.ConfigurationGWTServiceAsync


                        operationParameters = (defaultTemplate != null) ? defaultTemplate.createConfiguration()
                            : new Configuration();
                    }
                }

                ConfigurationGWTServiceAsync configurationService = GWTServiceLookup.getConfigurationService();
                configurationService.getOptionValuesForConfigDefinition(getResourceId(), -1, parametersDefinition,
                    new AsyncCallback<ConfigurationDefinition>() {

                        @Override
                        public void onFailure(Throwable throwable) {
                            operationParametersConfigurationEditor = new ConfigurationEditor(parametersDefinition,
View Full Code Here


            }

            @Override
            protected void executeFetch(final DSRequest request, final DSResponse response,
                final ResourceConfigurationUpdateCriteria criteria) {
                ConfigurationGWTServiceAsync configurationService = GWTServiceLookup.getConfigurationService();

                configurationService.findResourceConfigurationUpdatesByCriteria(criteria,
                    new AsyncCallback<PageList<ResourceConfigurationUpdate>>() {

                        @Override
                        public void onSuccess(final PageList<ResourceConfigurationUpdate> result) {
                            HashSet<Integer> typesSet = new HashSet<Integer>();
View Full Code Here

    }

    @Override
    protected void executeFetch(final DSRequest request, final DSResponse response,
        final GroupResourceConfigurationUpdateCriteria criteria) {
        ConfigurationGWTServiceAsync configurationService = GWTServiceLookup.getConfigurationService();

        configurationService.findGroupResourceConfigurationUpdatesByCriteria(criteria,
            new AsyncCallback<PageList<GroupResourceConfigurationUpdate>>() {

                @Override
                public void onSuccess(PageList<GroupResourceConfigurationUpdate> result) {
                    response.setData(buildRecords(result));
View Full Code Here

                public void executeAction(final ListGridRecord[] selection, Object actionValue) {
                    if (selection == null || selection.length == 0) {
                        return;
                    }

                    ConfigurationGWTServiceAsync service = GWTServiceLookup.getConfigurationService();
                    Integer groupId = HistoryGroupResourceConfigurationTable.this.group.getId();
                    Integer[] updateIds = new Integer[selection.length];
                    int i = 0;
                    for (ListGridRecord record : selection) {
                        updateIds[i++] = record.getAttributeAsInt(GroupResourceConfigurationDataSource.Field.ID);
                    }

                    service.deleteGroupResourceConfigurationUpdate(groupId, updateIds, new AsyncCallback<Void>() {
                        @Override
                        public void onSuccess(Void result) {
                            refresh();
                            Message message = new Message(MSG.view_group_resConfig_table_deleteSuccessful(String
                                .valueOf(selection.length)), Message.Severity.Info, EnumSet
View Full Code Here

                    ResourceTypeRepository.Cache.getInstance().getResourceTypes(resource.getResourceType().getId(),
                        EnumSet.of(MetadataType.resourceConfigurationDefinition), new TypeLoadedCallback() {
                            @Override
                            public void onTypesLoaded(ResourceType type) {
                                ConfigurationGWTServiceAsync configurationService = GWTServiceLookup
                                    .getConfigurationService();
                                configurationService.getOptionValuesForConfigDefinition(resource.getId(), -1,
                                    type.getResourceConfigurationDefinition(),
                                    new AsyncCallback<ConfigurationDefinition>() {
                                        @Override
                                        public void onFailure(Throwable throwable) {
                                            refreshing = false;
View Full Code Here

            @Override
            protected void executeFetch(final DSRequest request, final DSResponse response,
                final PluginConfigurationUpdateCriteria criteria) {

                ConfigurationGWTServiceAsync configurationService = GWTServiceLookup.getConfigurationService();

                configurationService.findPluginConfigurationUpdatesByCriteria(criteria,
                    new AsyncCallback<PageList<PluginConfigurationUpdate>>() {

                        @Override
                        public void onSuccess(final PageList<PluginConfigurationUpdate> result) {
                            HashSet<Integer> typesSet = new HashSet<Integer>();
View Full Code Here

                    doomedConfigEditor.destroy();
                }

                this.startingConfig = wizard.getNewResourceStartingConfiguration();

                ConfigurationGWTServiceAsync configurationService = GWTServiceLookup.getConfigurationService();
                configurationService.getOptionValuesForConfigDefinition(-1, wizard.getParentResource().getId(), def,
                    new AsyncCallback<ConfigurationDefinition>() {
                        public void onSuccess(ConfigurationDefinition result) {
                            createAndAddConfigurationEditor(result);
                        }
View Full Code Here

        private Configuration portletConfig;

        @Override
        protected void executeFetch(final DSRequest request, final DSResponse response,
            final ResourceConfigurationUpdateCriteria criteria) {
            ConfigurationGWTServiceAsync configurationService = GWTServiceLookup.getConfigurationService();
            configurationService.findResourceConfigurationUpdatesByCriteria(criteria,
                new AsyncCallback<PageList<ResourceConfigurationUpdate>>() {

                    @Override
                    public void onSuccess(PageList<ResourceConfigurationUpdate> result) {
                        response.setData(buildRecords(result));
View Full Code Here

        private Configuration portletConfig;

        @Override
        protected void executeFetch(final DSRequest request, final DSResponse response,
            final GroupResourceConfigurationUpdateCriteria criteria) {
            ConfigurationGWTServiceAsync configurationService = GWTServiceLookup.getConfigurationService();

            configurationService.findGroupResourceConfigurationUpdatesByCriteria(criteria,
                new AsyncCallback<PageList<GroupResourceConfigurationUpdate>>() {

                    @Override
                    public void onSuccess(PageList<GroupResourceConfigurationUpdate> result) {
                        response.setData(buildRecords(result));
View Full Code Here

                public void executeAction(final ListGridRecord[] selection, Object actionValue) {
                    if (selection == null || selection.length == 0) {
                        return;
                    }

                    ConfigurationGWTServiceAsync service = GWTServiceLookup.getConfigurationService();
                    Integer groupId = HistoryGroupPluginConfigurationTable.this.group.getId();
                    Integer[] updateIds = new Integer[selection.length];
                    int i = 0;
                    for (ListGridRecord record : selection) {
                        updateIds[i++] = record.getAttributeAsInt(DataSource.Field.ID);
                    }

                    service.deleteGroupPluginConfigurationUpdate(groupId, updateIds, new AsyncCallback<Void>() {
                        @Override
                        public void onSuccess(Void result) {
                            refresh();
                            Message message = new Message(MSG.view_group_pluginConfig_table_deleteSuccessful(String
                                .valueOf(selection.length)), Message.Severity.Info, EnumSet
View Full Code Here

TOP

Related Classes of org.rhq.coregui.client.gwt.ConfigurationGWTServiceAsync

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.