mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
This checkin does two things:
1. Refines the semantics of ghost creation, so that they only appear when warranted. 2. Implements a mechanism for filtering out files which should not appear in comparison results or be pushed along by updates. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4525 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -9,6 +9,7 @@ import org.alfresco.service.cmr.avmsync.AVMDifference;
|
||||
import org.alfresco.service.cmr.avmsync.AVMSyncService;
|
||||
import org.alfresco.service.cmr.remote.AVMSyncServiceTransport;
|
||||
import org.alfresco.service.cmr.security.AuthenticationService;
|
||||
import org.alfresco.util.NameMatcher;
|
||||
|
||||
/**
|
||||
* Server side implementation of the remote wrapper of AVMSyncService.
|
||||
@@ -47,10 +48,10 @@ public class AVMSyncServiceTransportImpl implements AVMSyncServiceTransport
|
||||
* @see org.alfresco.service.cmr.avmsync.AVMSyncServiceTransport#compare(java.lang.String, int, java.lang.String, int, java.lang.String)
|
||||
*/
|
||||
public List<AVMDifference> compare(String ticket, int srcVersion,
|
||||
String srcPath, int dstVersion, String dstPath)
|
||||
String srcPath, int dstVersion, String dstPath, NameMatcher excluder)
|
||||
{
|
||||
fAuthenticationService.validate(ticket);
|
||||
return fSyncService.compare(srcVersion, srcPath, dstVersion, dstPath);
|
||||
return fSyncService.compare(srcVersion, srcPath, dstVersion, dstPath, excluder);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
@@ -74,12 +75,12 @@ public class AVMSyncServiceTransportImpl implements AVMSyncServiceTransport
|
||||
/* (non-Javadoc)
|
||||
* @see org.alfresco.service.cmr.avmsync.AVMSyncServiceTransport#update(java.lang.String, java.util.List, boolean, boolean, boolean, boolean, java.lang.String, java.lang.String)
|
||||
*/
|
||||
public void update(String ticket, List<AVMDifference> diffList,
|
||||
public void update(String ticket, List<AVMDifference> diffList, NameMatcher excluder,
|
||||
boolean ignoreConflicts, boolean ignoreOlder,
|
||||
boolean overrideConflicts, boolean overrideOlder, String tag,
|
||||
String description)
|
||||
{
|
||||
fAuthenticationService.validate(ticket);
|
||||
fSyncService.update(diffList, ignoreConflicts, ignoreOlder, overrideConflicts, overrideOlder, tag, description);
|
||||
fSyncService.update(diffList, excluder, ignoreConflicts, ignoreOlder, overrideConflicts, overrideOlder, tag, description);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user