@Override public boolean consume( ChangeSetListener consumer, ChangeSet event, long position, long maxPosition ) { consumer.notify(event); return true; }
/** * Get the key of the process in which the changes were made. * * @return the process key; never null * @see org.modeshape.jcr.cache.change.ChangeSet#getProcessKey() */ public String getProcessKey() { return content.getProcessKey(); }
/** * Get the name of the workspace in which the changes were made. * * @return the workspace name; may be null only when workspaces are added or removed * @see org.modeshape.jcr.cache.change.ChangeSet#getWorkspaceName() */ public String getWorkspaceName() { return content.getWorkspaceName(); }
@Override public void nodeRenamed( NodeKey key, Path newPath, Segment oldName, Name primaryType, Set<Name> mixinTypes ) { events.add(new NodeRenamed(key, newPath, oldName, filterName(primaryType), filterNameSet(mixinTypes))); }
@Override public void propertyAdded( NodeKey key, Name nodePrimaryType, Set<Name> nodeMixinTypes, Path nodePath, Property property ) { events.add(new PropertyAdded(key, filterName(nodePrimaryType), filterNameSet(nodeMixinTypes), nodePath, property )); }
/** * Get the key of the repository in which the changes were made. * * @return the repository key; never null * @see org.modeshape.jcr.cache.change.ChangeSet#getRepositoryKey() */ public String getRepositoryKey() { return content.getRepositoryKey(); }
@Override public boolean matchesType( Name primaryType, Set<Name> mixinTypes ) { return delegate.matchesType(primaryType, mixinTypes); }
/** * Returns the ID (username) of the user which performed the changes. * * @return a {@link String} representing the username; may be {@code null} in the case of changes performed "by the system. * @see org.modeshape.jcr.cache.change.ChangeSet#getUserId() */ public String getUserId() { return content.getUserId(); }
@Override public String toString() { return "Changed node '" + this.getKey() + "' at \"" + path + "\""; } }
private boolean isQueryable( Name primaryType, Set<Name> mixinTypes ) { return predicate == null || predicate.isQueryable(primaryType, mixinTypes); }
/** * Returns the identifier of the local {@link org.modeshape.jcr.journal.ChangeJournal} instance. * * @return either a non-null {@link String} if journaling is enabled, or {@code null} if journaling isn't enabled. * @see org.modeshape.jcr.cache.change.ChangeSet#getJournalId() */ public String getJournalId() { return content.getJournalId(); }
@Override public String toString() { return "Removed node '" + this.getKey() + "' at \"" + path + "\" from under " + parentKey; } }
@Override public String toString() { return "Moved node '" + this.getKey() + "' to \"" + path + "\" (under '" + newParent + "') from \"" + oldPath + "\" (under '" + oldParent + "')"; } }
@Override public String toString() { return "Added node '" + this.getKey() + "' at \"" + path + "\" under '" + parentKey + "'"; } }
@Override public String toString() { return "Renamed node '" + this.getKey() + "' to \"" + path + "\" (was '" + oldSegment + "')"; } }
/** * Returns the set of keys for the nodes which has been changed. * * @return the set of changed node keys; never {@code null} * @see org.modeshape.jcr.cache.change.ChangeSet#changedNodes() */ public Set<NodeKey> changedNodes() { return content.changedNodes(); }
/** * Get the key of the process in which the changes were made. * * @return the process key; never null * @see org.modeshape.jcr.cache.change.ChangeSet#getProcessKey() */ public String getProcessKey() { return content.getProcessKey(); }
/** * Get the name of the workspace in which the changes were made. * * @return the workspace name; may be null only when workspaces are added or removed * @see org.modeshape.jcr.cache.change.ChangeSet#getWorkspaceName() */ public String getWorkspaceName() { return content.getWorkspaceName(); }
/** * Get the key of the repository in which the changes were made. * * @return the repository key; never null * @see org.modeshape.jcr.cache.change.ChangeSet#getRepositoryKey() */ public String getRepositoryKey() { return content.getRepositoryKey(); }
@Override public boolean matchesType( Name primaryType, Set<Name> mixinTypes ) { return delegate.matchesType(primaryType, mixinTypes); }