Examples of Changes


Examples of org.infinispan.schematic.document.Changes

        // Set the new value ...
        sequencerA.setArray(FieldName.PATH_EXPRESSIONS, "//*.ddl", "//*.xml");

        // And apply the changes to the repository's configuration ...
        Changes changes = editor.getChanges();
        engine.update(config.getName(), changes).get(); // don't forget to wait!

        // Verify the configuration was changed successfully ...
        RepositoryConfiguration config2 = engine.getRepositoryConfiguration(config.getName());
        Document sequencerA2 = (Document)config2.getDocument()
View Full Code Here

Examples of org.infinispan.schematic.document.Changes

        }

        indexes.set(definitionName, indexDefinition);

        // Get the changes and validate them ...
        Changes changes = editor.getChanges();
        Problems validationResults = repositoryConfig.validate(changes);

        if (validationResults.hasErrors()) {
            String msg = JcrI18n.errorsInRepositoryConfiguration.text(this.repositoryName,
                                                                      validationResults.errorCount(),
View Full Code Here

Examples of org.infinispan.schematic.document.Changes

        }

        extractors.set(extractorName, extractor);

        // Get the changes and validate them ...
        Changes changes = configEditor.getChanges();
        Problems validationResults = repositoryConfig.validate(changes);

        if (validationResults.hasErrors()) {
            String msg = JcrI18n.errorsInRepositoryConfiguration.text(this.repositoryName,
                                                                      validationResults.errorCount(),
View Full Code Here

Examples of org.infinispan.schematic.document.Changes

        }

        sequencers.set(sequencerName, seq);

        // Get the changes and validate them ...
        Changes changes = editor.getChanges();
        Problems validationResults = repositoryConfig.validate(changes);

        if (validationResults.hasErrors()) {
            String msg = JcrI18n.errorsInRepositoryConfiguration.text(this.repositoryName,
                                                                      validationResults.errorCount(),
View Full Code Here

Examples of org.infinispan.schematic.document.Changes

        }

        providers.set(providerName, provider);

        // Get the changes and validate them ...
        Changes changes = editor.getChanges();
        Problems validationResults = repositoryConfig.validate(changes);

        if (validationResults.hasErrors()) {
            String msg = JcrI18n.errorsInRepositoryConfiguration.text(this.repositoryName,
                                                                      validationResults.errorCount(),
View Full Code Here

Examples of org.infinispan.schematic.document.Changes

        EditableDocument workspaces = editor.getOrCreateDocument("workspaces");
        EditableArray predefined = workspaces.getOrCreateArray("predefined");
        predefined.addStringIfAbsent(workspaceName);

        // And apply the changes ...
        Changes changes = editor.getChanges();
        if (changes.isEmpty()) return;
        try {
            repository.apply(changes);
        } catch (Exception e) {
            e.printStackTrace();
            throw new AssertionFailedError("Unexpected error while predefining the \"" + workspaceName + "\" workspace:"
View Full Code Here

Examples of org.jboss.dna.graph.observe.Changes

        // then publish any changes ...
        String userName = context.getSecurityContext() != null ? context.getSecurityContext().getUserName() : null;
        if (userName == null) userName = "";
        String contextId = context.getId();
        String processId = null;
        Changes changes = new Changes(processId, contextId, userName, getSourceName(), getNowInUtc(), this.changes);
        observer.notify(changes);
        // Null the list, since this should have been closed
        this.changes = null;
    }
View Full Code Here

Examples of org.jboss.dna.graph.observe.Changes

     */
    public void close() {
        // Publish any changes ...
        if (observer != null && !this.changes.isEmpty()) {
            String userName = context.getSecurityContext() != null ? context.getSecurityContext().getUserName() : null;
            Changes changes = new Changes(userName, getSourceName(), getNowInUtc(), this.changes);
            observer.notify(changes);
        }
    }
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.