Merged V3.2 to HEAD

19246: ALF-1940 - case-insensitive AVM path lookups fail on a DB that is (configured by default to be) case-sensitive
    19280: AVM - preserve case on child lookup, add unit tests
    19316: AVM - fix rename (change in 'case') & add unit tests (ALF-1725 & ALF-1767)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19337 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2010-03-17 11:26:46 +00:00
parent 733cd6e02d
commit 0f0d7a2fe0
18 changed files with 680 additions and 180 deletions

View File

@@ -30,7 +30,12 @@ import org.springframework.extensions.surf.util.ISO8601DateFormat;
public class AVMStoreDescriptor implements Serializable
{
private static final long serialVersionUID = -4401863082685362175L;
/**
* The object id.
*/
private long fID;
/**
* The name.
*/
@@ -46,15 +51,16 @@ public class AVMStoreDescriptor implements Serializable
*/
private long fCreateDate;
public AVMStoreDescriptor(String name,
String creator,
long createDate)
public AVMStoreDescriptor(long id,
String name,
String creator,
long createDate)
{
fName = name;
fCreator = creator;
fCreateDate = createDate;
}
/**
* @return the fCreateDate
*/
@@ -62,7 +68,7 @@ public class AVMStoreDescriptor implements Serializable
{
return fCreateDate;
}
/**
* @return the fCreator
*/
@@ -70,7 +76,7 @@ public class AVMStoreDescriptor implements Serializable
{
return fCreator;
}
/**
* @return the fName
*/
@@ -79,8 +85,37 @@ public class AVMStoreDescriptor implements Serializable
return fName;
}
/**
* Get the object id.
* @return The object id.
*/
public long getId()
{
return fID;
}
public String toString()
{
return "[" + fName + ":" + fCreator + ":" + ISO8601DateFormat.format(new Date(fCreateDate)) + "]";
return "[" + fID + ":"+fName + ":" + fCreator + ":" + ISO8601DateFormat.format(new Date(fCreateDate)) + "]";
}
@Override
public boolean equals(Object obj)
{
if (this == obj)
{
return true;
}
if (!(obj instanceof AVMStoreDescriptor))
{
return false;
}
return fID == ((AVMStoreDescriptor)obj).fID;
}
@Override
public int hashCode()
{
return (int)fID;
}
}