@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof ChildReference) { ChildReference that = (ChildReference)obj; return this.key.equals(that.key); } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof ChildReference) { ChildReference that = (ChildReference)obj; return this.key.equals(that.key); } return false; }
protected boolean shouldProcessSourceKey( NodeKey sourceKey ) { return !sourceKey.equals(sourceCache.getRootKey()) && !sourceKey.getWorkspaceKey().equalsIgnoreCase(systemWorkspaceKey); } }
protected boolean shouldProcessSourceKey( NodeKey sourceKey ) { return !sourceKey.equals(sourceCache.getRootKey()) && !sourceKey.getWorkspaceKey().equalsIgnoreCase(systemWorkspaceKey); } }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof CachedNode) { CachedNode that = (CachedNode)obj; return this.getKey().equals(that.getKey()); } return false; }
@Override public boolean isCurrentRowValid( Batch batch ) { CachedNode node = batch.getNode(index); if (node == null) return false; if (isParentRoot) return true; if (parentKey.equals(node.getParentKey(cache))) return true; // Don't have to check the additional parents since we only find shared nodes in the original location ... return false; }
public ChildReference remove( NodeKey key ) { for (ChildReference ref : this.inserted) { if (ref.getKey().equals(key) && remove(ref)) return ref; } return null; }
@Override public boolean isCurrentRowValid( Batch batch ) { CachedNode node = batch.getNode(index); return node != null && nodeKey.equals(node.getKey()); }
public ChildReference remove( NodeKey key ) { for (ChildReference ref : this.inserted) { if (ref.getKey().equals(key) && remove(ref)) return ref; } return null; }
@Override public boolean isSame( Item otherItem ) throws RepositoryException { if (otherItem == this) return true; if (otherItem instanceof AbstractJcrNode) { NodeKey thatKey = ((AbstractJcrNode)otherItem).key(); if (!this.key.equals(thatKey)) return false; // Make sure they are the same repository ... return super.isSameRepository(otherItem); } return false; }
@Override public boolean isCurrentRowValid( Batch batch ) { CachedNode node = batch.getNode(index); if (node == null) return false; if (isParentRoot) return true; if (parentKey.equals(node.getParentKey(cache))) return true; // Don't have to check the additional parents since we only find shared nodes in the original location ... return false; }
@Override public boolean isCurrentRowValid( Batch batch ) { CachedNode node = batch.getNode(index); return node != null && nodeKey.equals(node.getKey()); }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof CachedNode) { CachedNode that = (CachedNode)obj; return this.getKey().equals(that.getKey()); } return false; }
@Override public boolean isSame( Item otherItem ) throws RepositoryException { if (otherItem == this) return true; if (otherItem instanceof AbstractJcrNode) { NodeKey thatKey = ((AbstractJcrNode)otherItem).key(); if (!this.key.equals(thatKey)) return false; // Make sure they are the same repository ... return super.isSameRepository(otherItem); } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof CachedNode) { CachedNode that = (CachedNode)obj; return this.getKey().equals(that.getKey()); } return false; }
@Override public boolean equals( Object obj ) { if (obj == this) return true; if (obj instanceof CachedNode) { CachedNode that = (CachedNode)obj; return this.getKey().equals(that.getKey()); } return false; }
private Set<NodeKey> filterNodeKeysForClone( Set<NodeKey> sourceKeys, SessionCache sourceCache ) { Set<NodeKey> filteredSet = new HashSet<NodeKey>(); for (NodeKey sourceKey : sourceKeys) { if (sourceKey.equals(sourceCache.getRootKey()) || sourceKey.getWorkspaceKey().equalsIgnoreCase(repository().systemWorkspaceKey())) { continue; } filteredSet.add(sourceKey); } return filteredSet; }
private Set<NodeKey> filterNodeKeysForClone( Set<NodeKey> sourceKeys, SessionCache sourceCache ) { Set<NodeKey> filteredSet = new HashSet<NodeKey>(); for (NodeKey sourceKey : sourceKeys) { if (sourceKey.equals(sourceCache.getRootKey()) || sourceKey.getWorkspaceKey().equalsIgnoreCase(repository().systemWorkspaceKey())) { continue; } filteredSet.add(sourceKey); } return filteredSet; }
@Override public boolean isCurrentRowValid( Batch batch ) { CachedNode node = batch.getNode(index); while (node != null) { NodeKey parentKey = node.getParentKey(cache); if (parentKey == null) return false; if (ancestorKey.equals(parentKey)) return true; // Don't have to check the additional parents since we only find shared nodes in the original location ... node = cache.getNode(parentKey); } return false; }
@Override public boolean isCurrentRowValid( Batch batch ) { CachedNode node = batch.getNode(index); while (node != null) { NodeKey parentKey = node.getParentKey(cache); if (parentKey == null) return false; if (ancestorKey.equals(parentKey)) return true; // Don't have to check the additional parents since we only find shared nodes in the original location ... node = cache.getNode(parentKey); } return false; }