Package org.jboss.dna.graph.observe

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


     */
    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

Related Classes of org.jboss.dna.graph.observe.Changes

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.