org.jboss.dna.connector.store.jpa.util
Class RequestProcessorCache

java.lang.Object
  extended by org.jboss.dna.connector.store.jpa.util.RequestProcessorCache

@NotThreadSafe
public class RequestProcessorCache
extends Object

Represents a cache of the known node information, including a node's actual Location and the complete set of children.


Nested Class Summary
 class RequestProcessorCache.WorkspaceCache
           
 
Constructor Summary
RequestProcessorCache(PathFactory pathFactory)
           
 
Method Summary
 void addNewNode(Long workspaceId, Location location)
           
 void clear(Long workspaceId)
           
 LinkedList<Location> getAllChildren(Long workspaceId, Path parent)
           
 Location getLocationFor(Long workspaceId, Path node)
           
 String getString(NamespaceRegistry namespaces)
           
 boolean moveNode(Long workspaceId, Location oldLocation, int oldIndexInParent, Location newLocation)
           
 boolean removeBranch(Long workspaceId, Iterable<Location> locations)
           
 void setAllChildren(Long workspaceId, Path parent, LinkedList<Location> children)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestProcessorCache

public RequestProcessorCache(PathFactory pathFactory)
Method Detail

getLocationFor

public Location getLocationFor(Long workspaceId,
                               Path node)

addNewNode

public void addNewNode(Long workspaceId,
                       Location location)

clear

public void clear(Long workspaceId)

getAllChildren

public LinkedList<Location> getAllChildren(Long workspaceId,
                                           Path parent)

setAllChildren

public void setAllChildren(Long workspaceId,
                           Path parent,
                           LinkedList<Location> children)

moveNode

public boolean moveNode(Long workspaceId,
                        Location oldLocation,
                        int oldIndexInParent,
                        Location newLocation)

removeBranch

public boolean removeBranch(Long workspaceId,
                            Iterable<Location> locations)

getString

public String getString(NamespaceRegistry namespaces)

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2008-2009 JBoss, a division of Red Hat. All Rights Reserved.