org.kuali.common.util.sync
Class DefaultSyncService
java.lang.Object
org.kuali.common.util.sync.DefaultSyncService
- All Implemented Interfaces:
- SyncService
public class DefaultSyncService
- extends Object
- implements SyncService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSyncService
public DefaultSyncService()
getDiff
public DirDiff getDiff(DirRequest request)
- Specified by:
getDiff
in interface SyncService
getDiffs
public List<DirDiff> getDiffs(List<DirRequest> requests)
- Specified by:
getDiffs
in interface SyncService
sync
public SyncResult sync(DirRequest request)
- Specified by:
sync
in interface SyncService
sync
public List<SyncResult> sync(List<DirRequest> requests)
- Specified by:
sync
in interface SyncService
getSyncResults
protected List<SyncResult> getSyncResults(List<DirDiff> diffs)
getSyncResult
protected SyncResult getSyncResult(DirDiff diff)
getCopyFileRequests
protected List<CopyFileRequest> getCopyFileRequests(List<DirDiff> diffs)
getCopyFileRequests
protected List<CopyFileRequest> getCopyFileRequests(DirDiff diff)
- Convert the diff into requests for copying files.
getCopyFileRequestsForFilesThatAreDifferent
protected List<CopyFileRequest> getCopyFileRequestsForFilesThatAreDifferent(List<MD5Result> different)
getCopyFileRequests
protected List<CopyFileRequest> getCopyFileRequests(DirDiff diff,
List<String> relativePaths)
Copyright © 2010-2013 The Kuali Foundation. All Rights Reserved.