storage.trans
Class TransientRepository

java.lang.Object
  extended bystorage.framework.AbstractRepository
      extended bystorage.trans.TransientRepository
All Implemented Interfaces:
Repository

public class TransientRepository
extends storage.framework.AbstractRepository

This class of Repository represents Nodes and their contents entirely in transient local memory. If the URL naming the repository is of the form memory://audited then the Repository provides change management facilities including Node history and undo. Otherwise, not. Created on Oct 8, 2003

Author:
leei

Field Summary
 
Fields inherited from class storage.framework.AbstractRepository
path, services
 
Method Summary
 void close()
          Close this Repository and release its resources.
 NodeContent.Editor createNode(NodeType type)
          Open up a shortcut to Node creation for bootstrapping and testing.
 Document document(Path abs, Path rel)
           
 Directory filesystem()
          Access the Directory at the root of the filesystem for this Repository.
protected  Node recoverNode(Name nid)
           
 java.lang.String toString()
           
 User user()
          The currently logged-in user for this Repository.
 
Methods inherited from class storage.framework.AbstractRepository
document, document, documentFormat, existingRepository, getNodeDocument, login, nodeNamed, path, services, setServices, uri, userNamed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createNode

public NodeContent.Editor createNode(NodeType type)
Open up a shortcut to Node creation for bootstrapping and testing.


recoverNode

protected Node recoverNode(Name nid)

filesystem

public Directory filesystem()
Description copied from interface: Repository
Access the Directory at the root of the filesystem for this Repository.


document

public Document document(Path abs,
                         Path rel)

user

public User user()
Description copied from interface: Repository
The currently logged-in user for this Repository.


close

public void close()
Description copied from interface: Repository
Close this Repository and release its resources. It is illegal to access any Node in this Repository after close() is called.


toString

public java.lang.String toString()