Package org.rhq.core.domain.resource

Examples of org.rhq.core.domain.resource.ImportResourceRequest


    @Override
    public Resource manuallyAddResource(Subject subject, int resourceTypeId, int parentResourceId,
        Configuration pluginConfiguration) throws Exception {

        return manuallyAddResource(subject,
            new ImportResourceRequest(resourceTypeId, parentResourceId, pluginConfiguration)).getResource();
    }
View Full Code Here


        return OUTCOME_SUCCESS;
    }

    public String addResource() {
        ImportResourceResponse response = null;
        ImportResourceRequest request = new ImportResourceRequest(getType().getId(), EnterpriseFacesContextUtility
            .getResource().getId(), getConfiguration());
        try {
            response = discoveryBoss.manuallyAddResource(EnterpriseFacesContextUtility.getSubject(), request);
        } catch (InvalidPluginConfigurationClientException e) {
            FacesContextUtility
View Full Code Here

    public void execute() {
        getView().closeDialog();
        getMessageCenter().notify(
            new Message(MSG.widget_resourceFactoryWizard_importSubmitted(getChildType().getName()), Severity.Info));

        ImportResourceRequest request = new ImportResourceRequest(getChildType().getId(), getParentResource().getId(),
            getNewResourceConfiguration());

        ResourceGWTServiceAsync resourceService = GWTServiceLookup.getResourceService(300000);
        final Duration duration = new Duration();
        resourceService.manuallyAddResource(request, new AsyncCallback<ImportResourceResponse>() {
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.resource.ImportResourceRequest

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.