org.priha.core
Interface ItemStore

All Known Implementing Classes:
ProviderManager

public interface ItemStore


Method Summary
 void addNode(StoreTransaction tx, NodeImpl ni)
           
 void close(WorkspaceImpl ws)
           
 void copy(WorkspaceImpl ws, Path srcpath, Path destpath)
           
 NodeImpl findByUUID(WorkspaceImpl ws, java.lang.String uuid)
           
 ItemImpl getItem(WorkspaceImpl ws, Path path)
           
 java.util.Collection<? extends PropertyImpl> getReferences(WorkspaceImpl w, java.lang.String uuid)
          Locate all properties of type REFERENCE with the content of the particular UUID.
 boolean itemExists(WorkspaceImpl m_workspace, Path path, ItemType type)
           
 java.util.List<? extends Path> listNodes(WorkspaceImpl m_workspace, Path parentpath)
           
 java.util.List<QName> listProperties(WorkspaceImpl ws, Path path)
           
 java.util.Collection<? extends java.lang.String> listWorkspaces()
           
 void open(javax.jcr.Credentials credentials, java.lang.String workspaceName)
           
 void putProperty(StoreTransaction tx, Path path, ValueContainer value)
           
 void remove(StoreTransaction tx, Path path)
           
 void reorderNodes(StoreTransaction tx, Path internalPath, java.util.List<Path> childOrder)
           
 void stop()
           
 void storeCancelled(StoreTransaction tx)
           
 void storeFinished(StoreTransaction tx)
           
 StoreTransaction storeStarted(WorkspaceImpl ws)
           
 

Method Detail

open

void open(javax.jcr.Credentials credentials,
          java.lang.String workspaceName)
          throws javax.jcr.NoSuchWorkspaceException,
                 javax.jcr.RepositoryException
Throws:
javax.jcr.NoSuchWorkspaceException
javax.jcr.RepositoryException

stop

void stop()

close

void close(WorkspaceImpl ws)

copy

void copy(WorkspaceImpl ws,
          Path srcpath,
          Path destpath)
          throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

findByUUID

NodeImpl findByUUID(WorkspaceImpl ws,
                    java.lang.String uuid)
                    throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getItem

ItemImpl getItem(WorkspaceImpl ws,
                 Path path)
                 throws InvalidPathException,
                        javax.jcr.RepositoryException
Throws:
InvalidPathException
javax.jcr.RepositoryException

listNodes

java.util.List<? extends Path> listNodes(WorkspaceImpl m_workspace,
                                         Path parentpath)
                                         throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

listWorkspaces

java.util.Collection<? extends java.lang.String> listWorkspaces()
                                                                throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

itemExists

boolean itemExists(WorkspaceImpl m_workspace,
                   Path path,
                   ItemType type)
                   throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

remove

void remove(StoreTransaction tx,
            Path path)
            throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

addNode

void addNode(StoreTransaction tx,
             NodeImpl ni)
             throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

putProperty

void putProperty(StoreTransaction tx,
                 Path path,
                 ValueContainer value)
                 throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getReferences

java.util.Collection<? extends PropertyImpl> getReferences(WorkspaceImpl w,
                                                           java.lang.String uuid)
                                                           throws javax.jcr.RepositoryException
Locate all properties of type REFERENCE with the content of the particular UUID.

Parameters:
m_workspace -
uuid -
Returns:
Throws:
javax.jcr.RepositoryException

listProperties

java.util.List<QName> listProperties(WorkspaceImpl ws,
                                     Path path)
                                     throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

storeStarted

StoreTransaction storeStarted(WorkspaceImpl ws)
                              throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

storeFinished

void storeFinished(StoreTransaction tx)
                   throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

storeCancelled

void storeCancelled(StoreTransaction tx)
                    throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

reorderNodes

void reorderNodes(StoreTransaction tx,
                  Path internalPath,
                  java.util.List<Path> childOrder)
                  throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException