Package org.rhq.enterprise.server.resource

Examples of org.rhq.enterprise.server.resource.ResourceFactoryManagerLocal.createResource()


        Resource parentResource = EnterpriseFacesContextUtility.getResource();
        Configuration resourceConfiguration = getConfiguration();

        try {
            ResourceFactoryManagerLocal resourceFactoryManager = LookupUtil.getResourceFactoryManager();
            resourceFactoryManager.createResource(user, parentResource.getId(), getResourceTypeId(), getResourceName(),
                pluginConfiguration, resourceConfiguration);
        } catch (Exception e) {
            String errorMessages = ThrowableUtil.getAllMessages(e);
            FacesContextUtility.addMessage(FacesMessage.SEVERITY_ERROR,
                "Failed to send create resource request to agent. Cause: " + errorMessages);
View Full Code Here


                        // JON 2.0 RC3 - use timestamp versioning; pass null for version
                        //                resourceFactoryManager.createResource(user, parentResource.getId(), getResourceTypeId(), null,
                        //                    pluginConfiguration, packageName, null, selectedArchitectureId, deployTimeConfiguration,
                        //                    packageContentStream);
                        if (packageUploadDetails != null) {
                            resourceFactoryManager.createResource(user, parentResource.getId(), getResourceTypeId(), null,
                                pluginConfiguration, packageName, getVersion(), selectedArchitectureId,
                                deployTimeConfiguration, packageContentStream, packageUploadDetails);
                        } else {
                            resourceFactoryManager.createResource(user, parentResource.getId(), getResourceTypeId(), null,
                                pluginConfiguration, packageName, null, selectedArchitectureId, deployTimeConfiguration,
View Full Code Here

                        if (packageUploadDetails != null) {
                            resourceFactoryManager.createResource(user, parentResource.getId(), getResourceTypeId(), null,
                                pluginConfiguration, packageName, getVersion(), selectedArchitectureId,
                                deployTimeConfiguration, packageContentStream, packageUploadDetails);
                        } else {
                            resourceFactoryManager.createResource(user, parentResource.getId(), getResourceTypeId(), null,
                                pluginConfiguration, packageName, null, selectedArchitectureId, deployTimeConfiguration,
                                packageContentStream);

                        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.