moved Node constants into a separate interface which we
inherit
This commit is contained in:
parent
c9068187c8
commit
7ef38c647c
1 changed files with 6 additions and 25 deletions
|
@ -12,15 +12,7 @@ import java.io.*;
|
||||||
* stored in a database (either the internal Object DB or an external relational DB).
|
* stored in a database (either the internal Object DB or an external relational DB).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public interface INode {
|
public interface INode extends INodeState {
|
||||||
|
|
||||||
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;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,9 +26,6 @@ public interface INode {
|
||||||
public DbMapping getDbMapping ();
|
public DbMapping getDbMapping ();
|
||||||
public int getState ();
|
public int getState ();
|
||||||
public void setState (int s);
|
public void setState (int s);
|
||||||
public String getFullName ();
|
|
||||||
public String getFullName (INode root);
|
|
||||||
public INode[] getPath ();
|
|
||||||
public void setName (String name);
|
public void setName (String name);
|
||||||
public long lastModified ();
|
public long lastModified ();
|
||||||
public long created ();
|
public long created ();
|
||||||
|
@ -45,6 +34,11 @@ public interface INode {
|
||||||
public void setPrototype (String prototype);
|
public void setPrototype (String prototype);
|
||||||
public INode getCacheNode ();
|
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
|
* node-related methods
|
||||||
*/
|
*/
|
||||||
|
@ -89,19 +83,6 @@ public interface INode {
|
||||||
|
|
||||||
public void unset (String name);
|
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);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue