[Nodal-cvs] nodal/j-src/storage/file FileDocument.java,1.15,1.16
Status: Pre-Alpha
Brought to you by:
leei
From: Lee I. <le...@us...> - 2004-06-02 19:02:45
|
Update of /cvsroot/nodal/nodal/j-src/storage/file In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27434/storage/file Modified Files: FileDocument.java Log Message: o Provide propertyType() and valueType(Object) shortcuts in Content interface. o Provide framework for NID maintenance on stream-based nodes. o Add first cut of DFS iterator Index: FileDocument.java =================================================================== RCS file: /cvsroot/nodal/nodal/j-src/storage/file/FileDocument.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** FileDocument.java 29 Feb 2004 19:24:06 -0000 1.15 --- FileDocument.java 2 Jun 2004 19:02:05 -0000 1.16 *************** *** 14,17 **** --- 14,18 ---- import java.net.URLConnection; import java.util.HashMap; + import java.util.List; import java.util.Map; *************** *** 19,22 **** --- 20,24 ---- import org.nodal.Types; import org.nodal.filesystem.Document; + import org.nodal.model.Node; import org.nodal.model.NodeContent; import org.nodal.model.RecordNode; *************** *** 24,27 **** --- 26,30 ---- import org.nodal.nav.Path; import org.nodal.util.ConstraintFailure; + import org.nodal.util.Name; import storage.framework.AbstractDocument; *************** *** 80,84 **** } else { SBServices services = new SBServices(repo, file); ! NodeContent.Editor docNode = StreamBasedNode.createDocNode(services); doc = DocFromNode.reuseOrCreateDoc(services.path(), docNode); } --- 83,87 ---- } else { SBServices services = new SBServices(repo, file); ! NodeContent.Editor docNode = StreamBasedNode.createDocStreamNode(services); doc = DocFromNode.reuseOrCreateDoc(services.path(), docNode); } *************** *** 166,169 **** --- 169,187 ---- return repo.nodeFactory(file); } + + /* (non-Javadoc) + * @see storage.framework.StreamBasedNode.Services#nidList() + */ + public List nidList() { + // NEXT Save and restore NID list for Files + return null; + } + + /* (non-Javadoc) + * @see storage.framework.StreamBasedNode.Services#renameNode(org.nodal.model.Node, org.nodal.util.Name) + */ + public boolean renameNode(Node node, Name nid) { + return false; + } } |