com.microsoft.tfs.core.clients.versioncontrol.offline
Class OfflineSynchronizerFilter

java.lang.Object
  extended by com.microsoft.tfs.core.clients.versioncontrol.offline.OfflineSynchronizerFilter

public class OfflineSynchronizerFilter
extends java.lang.Object

OfflineSynchronizerFilter provides an interface to limiting ("filtering") the resources that will be addressed by the OfflineSynchronizer. This class is an interface to be subclassed by the various clients to handle exclusions or ignores.

Since:
TEE-SDK-10.1
Thread-safety:
thread-compatible

Constructor Summary
OfflineSynchronizerFilter()
           
 
Method Summary
 boolean shouldPend(java.io.File file, OfflineChangeType changeType, ItemType serverItemType)
          Returns true if changes should be pended for the given file.
 boolean shouldRecurse(java.io.File file)
          Returns true if we should recurse into the given directory when examining changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfflineSynchronizerFilter

public OfflineSynchronizerFilter()
Method Detail

shouldPend

public boolean shouldPend(java.io.File file,
                          OfflineChangeType changeType,
                          ItemType serverItemType)
Returns true if changes should be pended for the given file.

Parameters:
file - the File which was detected as changed (won't exist in the case of OfflineChangeType.DELETE)
changeType - type of change detected (add, edit, delete)
serverItemType - if the changeType is OfflineChangeType.DELETE, this is type of the server item which corresponds to the given file, it is null otherwise
Returns:
true to pend the change for this file, false to ignore

shouldRecurse

public boolean shouldRecurse(java.io.File file)
Returns true if we should recurse into the given directory when examining changes.

Parameters:
file - a File representing the directory in question
Returns:
true to recurse into the directory, false to skip


© 2015 Microsoft. All rights reserved.