com.microsoft.tfs.core.clients.versioncontrol
Class MoveUncommittedLocalVersionUpdate

java.lang.Object
  extended by com.microsoft.tfs.core.clients.versioncontrol.MoveUncommittedLocalVersionUpdate
All Implemented Interfaces:
ILocalVersionUpdate, com.microsoft.tfs.util.Closable

public class MoveUncommittedLocalVersionUpdate
extends java.lang.Object
implements ILocalVersionUpdate, com.microsoft.tfs.util.Closable


Constructor Summary
MoveUncommittedLocalVersionUpdate(java.lang.String newTargetServerItem, java.lang.String sourceLocalItem)
           
 
Method Summary
 void close()
           
 int getItemID()
          Item ID corresponding to SourceServerItem (optional; but your calls to UpdateLocalVersion on a pre-Dev11 server will fail if this is not provided).
 java.lang.String getSourceLocalItem()
           
 java.lang.String getSourceServerItem()
          Committed server item of the item whose local version row should be updated, or the target server item if the item is uncommitted (VersionLocal == 0)
 java.lang.String getTargetLocalItem()
          The path on the local disk where this item is currently located, or null to remove it from the workspace (delete the local version row).
 int getVersionLocal()
          The version of the item in the workspace.
 boolean isCommitted()
          Shorthand property for VersionLocal != 0
 boolean isSendToServer()
          Indicates whether or not this ILocalVersionUpdate is eligible to be transformed into a LocalVersionUpdate/ServerItemLocalVersionUpdate object for use in a webmethod call to UpdateLocalVersion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveUncommittedLocalVersionUpdate

public MoveUncommittedLocalVersionUpdate(java.lang.String newTargetServerItem,
                                         java.lang.String sourceLocalItem)
Method Detail

isSendToServer

public boolean isSendToServer()
Description copied from interface: ILocalVersionUpdate
Indicates whether or not this ILocalVersionUpdate is eligible to be transformed into a LocalVersionUpdate/ServerItemLocalVersionUpdate object for use in a webmethod call to UpdateLocalVersion. If false, the object is intended to be consumed only by the local workspaces implementation of UpdateLocalVersion.

Specified by:
isSendToServer in interface ILocalVersionUpdate

isCommitted

public boolean isCommitted()
Description copied from interface: ILocalVersionUpdate
Shorthand property for VersionLocal != 0

Specified by:
isCommitted in interface ILocalVersionUpdate

getSourceServerItem

public java.lang.String getSourceServerItem()
Description copied from interface: ILocalVersionUpdate
Committed server item of the item whose local version row should be updated, or the target server item if the item is uncommitted (VersionLocal == 0)

Specified by:
getSourceServerItem in interface ILocalVersionUpdate

getItemID

public int getItemID()
Description copied from interface: ILocalVersionUpdate
Item ID corresponding to SourceServerItem (optional; but your calls to UpdateLocalVersion on a pre-Dev11 server will fail if this is not provided).

Specified by:
getItemID in interface ILocalVersionUpdate

getTargetLocalItem

public java.lang.String getTargetLocalItem()
Description copied from interface: ILocalVersionUpdate
The path on the local disk where this item is currently located, or null to remove it from the workspace (delete the local version row).

Specified by:
getTargetLocalItem in interface ILocalVersionUpdate

getVersionLocal

public int getVersionLocal()
Description copied from interface: ILocalVersionUpdate
The version of the item in the workspace. If zero, the item is uncommitted (a pending add or branch).

Specified by:
getVersionLocal in interface ILocalVersionUpdate

getSourceLocalItem

public java.lang.String getSourceLocalItem()

close

public void close()
Specified by:
close in interface com.microsoft.tfs.util.Closable


© 2015 Microsoft. All rights reserved.