diff --git a/src/helma/objectmodel/INode.java b/src/helma/objectmodel/INode.java index 3f499a28..c2bbe483 100644 --- a/src/helma/objectmodel/INode.java +++ b/src/helma/objectmodel/INode.java @@ -12,15 +12,7 @@ import java.io.*; * stored in a database (either the internal Object DB or an external relational DB). */ -public interface INode { - - public final static int TRANSIENT = -3; - public final static int VIRTUAL = -2; - public final static int INVALID = -1; - public final static int CLEAN = 0; - public final static int NEW = 1; - public final static int MODIFIED = 2; - public final static int DELETED = 3; +public interface INode extends INodeState { /** @@ -34,9 +26,6 @@ public interface INode { public DbMapping getDbMapping (); public int getState (); public void setState (int s); - public String getFullName (); - public String getFullName (INode root); - public INode[] getPath (); public void setName (String name); public long lastModified (); public long created (); @@ -45,6 +34,11 @@ public interface INode { public void setPrototype (String prototype); public INode getCacheNode (); + public String getFullName (); + public String getFullName (INode root); + public INode[] getPath (); + public String getUrl (INode root, INode users, String tmpname, String rootproto); + /** * node-related methods */ @@ -89,19 +83,6 @@ public interface INode { public void unset (String name); - /** - * content-related methods - */ - - public String getContentType (); - public void setContentType (String type); - public int getContentLength (); - public void setContent (byte content[], String type); - public void setContent (String content); - public byte[] getContent (); - public String getText (); - public String getUrl (INode root, INode users, String tmpname, String rootproto); - }