Package org.rhq.core.domain.configuration

Examples of org.rhq.core.domain.configuration.Configuration.addRawConfiguration()


            for (RawConfiguration rawConfig : configuration.getRawConfigurations()) {
                String contents = rawConfig.getContents();
                String sha256 = new MessageDigestGenerator(MessageDigestGenerator.SHA_256).calcDigestString(contents);
                rawConfig.setContents(contents, sha256);
                structuredConfig.addRawConfiguration(rawConfig);
                facet.mergeStructuredConfiguration(rawConfig, configuration);
            }
        }
    }
View Full Code Here


    public void setContents(String contents) {
        Configuration configuration = rawConfiguration.getConfiguration();
        configuration.removeRawConfiguration(rawConfiguration);
        String sha256 = new MessageDigestGenerator(MessageDigestGenerator.SHA_256).calcDigestString(contents);
        rawConfiguration.setContents(contents, sha256);
        configuration.addRawConfiguration(rawConfiguration);

        fireRawConfigUpdateEvent();
    }

    public void undoEdit() {
View Full Code Here

        if (rawConfigs == null) {
            rawConfigs = EMPTY_SET;
        }

        for (RawConfiguration rawConfig : rawConfigs) {
            configuration.addRawConfiguration(rawConfig);
        }

        ResourceType resourceType = componentService.getResourceType(resourceId);

        if (configuration.getNotes() == null) {
View Full Code Here

            public void execute() throws Exception {

                RawConfiguration rawConfig = createRawConfiguration();

                Configuration config = new Configuration();
                config.addRawConfiguration(rawConfig);

                em.persist(config);

                assertTrue("Failed to cascade save to " + RawConfiguration.class.getSimpleName(),
                    rawConfig.getId() != 0);
View Full Code Here

            public void execute() throws Exception {

                RawConfiguration rawConfiguration = createRawConfiguration();

                Configuration config = new Configuration();
                config.addRawConfiguration(rawConfiguration);

                em.persist(config);

                config.removeRawConfiguration(rawConfiguration);
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.