|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.microsoft.tfs.core.clients.versioncontrol.offline.OfflineSynchronizer
public class OfflineSynchronizer
OfflineSynchronizer
examines a mapped folder for changes that are not
reflected on the server side. Changes that are found locally (by examining
writable files or differences, additions or deletions) will be pended to the
server.
Constructor Summary | |
---|---|
OfflineSynchronizer(Workspace workspace,
OfflineSynchronizerProvider provider)
Takes an OfflineSynchronizerProvider which provides local paths to resources to examine. |
|
OfflineSynchronizer(Workspace workspace,
OfflineSynchronizerProvider provider,
OfflineSynchronizerFilter filter)
Takes an OfflineSynchronizerProvider which provides local paths to resources to examine. |
Method Summary | |
---|---|
int |
detectChanges()
Returns online for the set of resources. |
OfflineChange[] |
getChanges()
Gets the detected offline changes. |
void |
setDetectAdded(boolean detectAdded)
Toggle whether files added locally (ie, those which exist on the local filesystem but do not exist on the server) will have adds pended for them. |
void |
setDetectDeleted(boolean detectDeleted)
Toggle whether files deleted locally (ie, those which do not exist on the local filesystem but the server expects that we have them) will have deletes pended for them. |
void |
setFilter(OfflineSynchronizerFilter filter)
Sets the resource filter used to check resources before pending changes. |
void |
setMethod(OfflineSynchronizerMethod method)
Sets the method of edited file detection. |
void |
setRecursionType(RecursionType recursionType)
Sets the recursion for this operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OfflineSynchronizer(Workspace workspace, OfflineSynchronizerProvider provider)
workspace
- an AWorkspace holding the mapped resourcesprovider
- provider of local paths for synchronizationpublic OfflineSynchronizer(Workspace workspace, OfflineSynchronizerProvider provider, OfflineSynchronizerFilter filter)
workspace
- an AWorkspace holding the mapped resourcesprovider
- provider of local paths for synchronizationfilter
- a filter which can limit resources to be pendedMethod Detail |
---|
public void setDetectAdded(boolean detectAdded)
detectAdded
- true to pend adds, false to ignore added resourcespublic void setDetectDeleted(boolean detectDeleted)
detectDeleted
- true to pend deletes, false to ignore deleted resourcespublic void setFilter(OfflineSynchronizerFilter filter)
filter
- filter to check before pending resource changespublic void setMethod(OfflineSynchronizerMethod method)
method
- method of file detectionpublic void setRecursionType(RecursionType recursionType)
recursionType
- how deep to recurse for the named pathspublic OfflineChange[] getChanges()
public final int detectChanges() throws java.lang.Exception
java.lang.Exception
- if there was an error communicating with the server
CanceledException
- if the task monitor was cancelled
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |