public class AVMSyncServiceTransportImpl extends java.lang.Object implements AVMSyncServiceTransport
| Constructor and Description |
|---|
AVMSyncServiceTransportImpl()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
compare(java.lang.String ticket,
int srcVersion,
java.lang.String srcPath,
int dstVersion,
java.lang.String dstPath,
org.alfresco.util.NameMatcher excluder)
Get a difference list between two corresponding node trees.
|
java.util.List |
compare(java.lang.String ticket,
int srcVersion,
java.lang.String srcPath,
int dstVersion,
java.lang.String dstPath,
org.alfresco.util.NameMatcher excluder,
boolean expandDirs)
Get a difference list between two corresponding node trees.
|
void |
flatten(java.lang.String ticket,
java.lang.String layerPath,
java.lang.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(java.lang.String ticket,
java.lang.String layerPath)
Takes a layer, deletes it and recreates it pointing at the same underlying
node.
|
void |
setAuthenticationService(AuthenticationService service) |
void |
setAvmSyncService(AVMSyncService service) |
void |
update(java.lang.String ticket,
java.util.List diffList,
org.alfresco.util.NameMatcher excluder,
boolean ignoreConflicts,
boolean ignoreOlder,
boolean overrideConflicts,
boolean overrideOlder,
java.lang.String tag,
java.lang.String description)
Updates the destination nodes in the AVMDifferences
with the source nodes.
|
public AVMSyncServiceTransportImpl()
public void setAvmSyncService(AVMSyncService service)
public void setAuthenticationService(AuthenticationService service)
public java.util.List compare(java.lang.String ticket,
int srcVersion,
java.lang.String srcPath,
int dstVersion,
java.lang.String dstPath,
org.alfresco.util.NameMatcher excluder)
AVMSyncServiceTransportcompare in interface AVMSyncServiceTransportsrcVersion - 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.public java.util.List compare(java.lang.String ticket,
int srcVersion,
java.lang.String srcPath,
int dstVersion,
java.lang.String dstPath,
org.alfresco.util.NameMatcher excluder,
boolean expandDirs)
AVMSyncServiceTransportcompare in interface AVMSyncServiceTransportsrcVersion - 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.expandDirs - Boolean value that determines whether new/modified children in new/modified directories be included into resultpublic void flatten(java.lang.String ticket,
java.lang.String layerPath,
java.lang.String underlyingPath)
AVMSyncServiceTransportlayerPath become translucent to any nodes in the
corresponding location under and including underlyingPath
that are the same version.flatten in interface AVMSyncServiceTransportlayerPath - The overlying layer path.underlyingPath - The underlying path.public void resetLayer(java.lang.String ticket,
java.lang.String layerPath)
AVMSyncServiceTransportresetLayer in interface AVMSyncServiceTransportpublic void update(java.lang.String ticket,
java.util.List diffList,
org.alfresco.util.NameMatcher excluder,
boolean ignoreConflicts,
boolean ignoreOlder,
boolean overrideConflicts,
boolean overrideOlder,
java.lang.String tag,
java.lang.String description)
AVMSyncServiceTransportupdate in interface AVMSyncServiceTransportdiffList - A List of AVMDifference structs.excluder - A NameMatcher to exclude undesired updates.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.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.