mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added getCommonAncestor to AVMService + test. Added to console test app.
Changed createSnapshot flavors to return version ids just created instead of void. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3270 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -393,4 +393,33 @@ public class AVMNodeDescriptor
|
||||
throw new AVMException("Internal Error.");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Equals override.
|
||||
* @param obj
|
||||
* @return Equality.
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object obj)
|
||||
{
|
||||
if (this == obj)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof AVMNodeDescriptor))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return fID == ((AVMNodeDescriptor)obj).fID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hashcode override.
|
||||
* @return The objid as hashcode.
|
||||
*/
|
||||
@Override
|
||||
public int hashCode()
|
||||
{
|
||||
return (int)fID;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user