public interface AVMSyncService
| Modifier and Type | Method and Description |
|---|---|
List<AVMDifference> |
compare(int srcVersion,
String srcPath,
int dstVersion,
String dstPath,
org.alfresco.util.NameMatcher excluder)
Get a difference list between two corresponding node trees.
|
List<AVMDifference> |
compare(int srcVersion,
String srcPath,
int dstVersion,
String dstPath,
org.alfresco.util.NameMatcher excluder,
boolean expandDirs)
Get a difference list between two corresponding node trees
Note: new/modified directories can be optionally expanded to include new/modified children
|
void |
flatten(String layerPath,
String underlyingPath)
Flattens a layer so that all all nodes under and including
layerPath become translucent to any nodes in the
corresponding location under and including underlyingPath
that are the same version. |
void |
resetLayer(String layerPath)
Takes a layer, deletes it and recreates it pointing at the same underlying
node.
|
void |
update(List<AVMDifference> diffList,
org.alfresco.util.NameMatcher excluder,
boolean ignoreConflicts,
boolean ignoreOlder,
boolean overrideConflicts,
boolean overrideOlder,
String tag,
String description)
Updates the destination nodes in the AVMDifferences
with the source nodes.
|
List<AVMDifference> compare(int srcVersion, String srcPath, int dstVersion, String dstPath, org.alfresco.util.NameMatcher excluder)
srcVersion - The version id for the source tree.srcPath - The avm path to the source tree.dstVersion - The version id for the destination tree.dstPath - The avm path to the destination tree.excluder - A NameMatcher used to exclude files from consideration.List<AVMDifference> compare(int srcVersion, String srcPath, int dstVersion, String dstPath, org.alfresco.util.NameMatcher excluder, boolean expandDirs)
void update(List<AVMDifference> diffList, org.alfresco.util.NameMatcher excluder, boolean ignoreConflicts, boolean ignoreOlder, boolean overrideConflicts, boolean overrideOlder, String tag, String description)
diffList - A List of AVMDifference structs.ignoreConflicts - If this is true the update will skip those
AVMDifferences which are in conflict with
the destination.ignoreOlder - If this is true the update will skip those
AVMDifferences which have the source older than the destination.overrideConflicts - If this is true the update will override conflicting
AVMDifferences and replace the destination with the conflicting source.overrideOlder - If this is true the update will override AVMDifferences
in which the source is older than the destination and overwrite the destination.tag - Short comment.description - Full update blurb.void flatten(String layerPath, String underlyingPath)
layerPath become translucent to any nodes in the
corresponding location under and including underlyingPath
that are the same version.layerPath - The overlying layer path.underlyingPath - The underlying path.void resetLayer(String layerPath)
layerPath - Copyright © 2005–2014 Alfresco Software. All rights reserved.