A new concurrency test. Fixed bug in the way that paths were being handed

back in AVMNodeDescriptors.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3255 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-06-27 17:39:27 +00:00
parent c6dfeb1c9d
commit 72f2ff989d
10 changed files with 561 additions and 19 deletions

View File

@@ -31,6 +31,11 @@ public class AVMNodeDescriptor
*/
private String fPath;
/**
* The base name of the path.
*/
private String fName;
/**
* The type of this node. AVMNodeType constants.
*/
@@ -113,22 +118,24 @@ public class AVMNodeDescriptor
* @param layerID The layer id.
* @param length The file length.
*/
public AVMNodeDescriptor(String path,
int type,
String creator,
String owner,
String lastModifier,
long createDate,
long modDate,
long accessDate,
long id,
int versionID,
String indirection,
public AVMNodeDescriptor(String path,
String name,
int type,
String creator,
String owner,
String lastModifier,
long createDate,
long modDate,
long accessDate,
long id,
int versionID,
String indirection,
boolean isPrimary,
long layerID,
long length)
long layerID,
long length)
{
fPath = path;
fName = name;
fType = type;
fCreator = creator;
fOwner = owner;
@@ -342,6 +349,14 @@ public class AVMNodeDescriptor
return fLength;
}
/**
* Get the name of the node.
*/
public String getName()
{
return fName;
}
/**
* Get a debuggable string representation of this.
* @return A string representation of this.