Checkpoint for AVMSyncService. Update (that's promote to use

preferred parlance or submit if you have a certain background) is
substantially working, passing a handful of basic tests. Compare
harmlessly returns no differences always, so Kev can program against
it if he's so inclined.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@3785 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2006-09-14 00:28:16 +00:00
parent 7fd363c599
commit bf1fdd9cd6
5 changed files with 382 additions and 42 deletions

View File

@@ -32,6 +32,8 @@ public class AVMDifference implements Serializable
public static final int NEWER = 0;
public static final int OLDER = 1;
public static final int CONFLICT = 2;
public static final int DIRECTORY = 3;
public static final int SAME = 4;
/**
* Version number of the source node.
@@ -120,4 +122,13 @@ public class AVMDifference implements Serializable
{
return fDiffCode;
}
/**
* Check for improperly initialized instances.
* @return Whether source and destination are non null.
*/
public boolean isValid()
{
return fSourcePath != null && fDestPath != null;
}
}