org.kuali.common.util.sync
Class DefaultSyncService

java.lang.Object
  extended by org.kuali.common.util.sync.DefaultSyncService
All Implemented Interfaces:
SyncService

public class DefaultSyncService
extends Object
implements SyncService


Constructor Summary
DefaultSyncService()
           
 
Method Summary
protected  List<CopyFileRequest> getCopyFileRequests(DirDiff diff)
          Convert the diff into requests for copying files.
protected  List<CopyFileRequest> getCopyFileRequests(DirDiff diff, List<String> relativePaths)
           
protected  List<CopyFileRequest> getCopyFileRequests(List<DirDiff> diffs)
           
protected  List<CopyFileRequest> getCopyFileRequestsForFilesThatAreDifferent(List<MD5Result> different)
           
 DirDiff getDiff(DirRequest request)
           
 List<DirDiff> getDiffs(List<DirRequest> requests)
           
protected  SyncResult getSyncResult(DirDiff diff)
           
protected  List<SyncResult> getSyncResults(List<DirDiff> diffs)
           
 SyncResult sync(DirRequest request)
           
 List<SyncResult> sync(List<DirRequest> requests)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSyncService

public DefaultSyncService()
Method Detail

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.