Examples of saveRepositoryArchive()


Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.saveRepositoryArchive()

                Map devices = new HashMap();
                devices.put("PC", device);
                ArrayList list = new ArrayList(1);
                list.add(device);
                accessor.writeDeviceElements(devices);
                accessor.saveRepositoryArchive();

                ZipArchive archive = (ZipArchive)
                        PrivateAccessor.getField(accessor, "repositoryArchive");
                device = retrieveCustomDeviceElement(accessor, archive, "PC");
                Element policy = retrievePolicy(device, "custom.mypolicy");
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.saveRepositoryArchive()

                    // and copy it to /tmp/r1.zip. This was added to help debug
                    // problems with committing VBM:2004110904.
                    dumpFile(repository, new File("/tmp/r1.zip"));
                }

                writeRepository.saveRepositoryArchive();

                if (logger.isDebugEnabled()) {
                    // Print out details about the modifed repository archive
                    // and copy it to /tmp/r2.zip. This was added to help debug
                    // problems with committing VBM:2004110904.
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.saveRepositoryArchive()

                Element newDevice = new Element("device", root.getNamespace());
                newDevice.setAttribute("name", "FakeDevice");
                master.addContent(newDevice);

                accessor.writeHierarchy();
                accessor.saveRepositoryArchive();

                ZipArchive archive = (ZipArchive)
                        PrivateAccessor.getField(accessor, "repositoryArchive");
                InputStream input = archive.getInputFrom("hierarchy.xml");
                if (input != null) {
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.saveRepositoryArchive()

                Element bool = new Element("boolean", root.getNamespace());
                type.addContent(bool);
                customCat.addContent(policy);

                accessor.writeDefinitions();
                accessor.saveRepositoryArchive();

                boolean savedNewDefinition = false;
                root = accessor.getDevicePolicyDefinitions().getRootElement();
                children = root.getChildren();
                for (int i = 0; i < children.size(); i++) {
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.saveRepositoryArchive()

                Element policy = retrievePolicy(device, "rendermode");
                policy.setAttribute("value", "wibble");
                devices.put("PC", device);

                accessor.writeDeviceElements(devices);
                accessor.saveRepositoryArchive();

                // now retrieve the policy from the repository again to see if we
                // actually wrote it out.
                device = accessor.retrieveDeviceElement("PC");
                policy = retrievePolicy(device, "rendermode");
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.saveRepositoryArchive()

                        new EclipseDeviceRepository(repository.getPath(),
                                transformerMetaFactory, jdomFactory, true, true, null);

                // write out the fred device
                accessor.writeDeviceElements(deviceMap);
                accessor.saveRepositoryArchive();

                ZipFile afterZip = new ZipFile(repository);
                try {
                    assertNotNull("standard device should exist",
                            afterZip.getEntry("standard/devices/NewDevice.xml"));
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.saveRepositoryArchive()

                        new EclipseDeviceRepository(repository.getPath(),
                                transformerMetaFactory, jdomFactory, true, true, null);

                // write out the fred device
                accessor.writeDeviceElements(deviceMap);
                accessor.saveRepositoryArchive();

                ZipFile afterZip = new ZipFile(repository);
                try {
                    assertNotNull("standard device should exist",
                            afterZip.getEntry("standard/devices/NewDevice.xml"));
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.saveRepositoryArchive()

                        new EclipseDeviceRepository(repository.getPath(),
                                transformerMetaFactory, jdomFactory, true, true, null);

                // write out the fred device
                accessor.writeDeviceElements(deviceMap);
                accessor.saveRepositoryArchive();

                ZipFile afterZip = new ZipFile(repository);
                try {
                    assertNotNull("standard NewDevice device should exist",
                            afterZip.getEntry("standard/devices/NewDevice.xml"));
View Full Code Here

Examples of com.volantis.devrep.repository.accessors.EclipseDeviceRepository.saveRepositoryArchive()

            devices.put(deviceName, deviceElement);
            accessor.writeDeviceElements(devices);
            accessor.writeHierarchy();
        }

        accessor.saveRepositoryArchive();

        // Connect to a single file XML repository.
        HashMap repositoryProps = new HashMap();
        repositoryProps.put(XMLRepository.DEVICE_REPOSITORY_PROPERTY,
                            deviceRepository.getPath());
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.