com.microsoft.tfs.core.clients.versioncontrol.events
Class GetEvent

java.lang.Object
  extended by com.microsoft.tfs.core.clients.CoreClientEvent
      extended by com.microsoft.tfs.core.clients.versioncontrol.events.GetEvent

public class GetEvent
extends CoreClientEvent

Event fired when file is retrieved from the server.

Since:
TEE-SDK-10.1

Constructor Summary
GetEvent(EventSource source, com.microsoft.tfs.core.clients.versioncontrol.engines.internal.AsyncGetOperation asyncOp, OperationStatus status, GetOperation action, java.lang.String targetLocalItem, ChangeType targetChangeType, PropertyValue[] targetPropertyValues)
           
 
Method Summary
 ChangeType getChangeType()
           
 int getDeletionID()
           
 int getItemID()
           
 ItemType getItemType()
           
 java.lang.String getMessage(java.lang.String targetName, java.util.concurrent.atomic.AtomicReference<java.lang.String> error)
          Converts this event into a displayable message.
 GetOperation getOperation()
           
 java.lang.String getServerItem()
           
 java.lang.String getSourceLocalItem()
           
 OperationStatus getStatus()
           
 java.lang.String getTargetLocalItem()
           
 PropertyValue[] getTargetPropertyValues()
           
 int getVersion()
           
 Workspace getWorkspace()
           
 boolean isDelete()
           
 boolean isDiskUpdateAttempted()
           
 boolean isLatest()
           
 
Methods inherited from class com.microsoft.tfs.core.clients.CoreClientEvent
getEventSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetEvent

public GetEvent(EventSource source,
                com.microsoft.tfs.core.clients.versioncontrol.engines.internal.AsyncGetOperation asyncOp,
                OperationStatus status,
                GetOperation action,
                java.lang.String targetLocalItem,
                ChangeType targetChangeType,
                PropertyValue[] targetPropertyValues)
Method Detail

getMessage

public java.lang.String getMessage(java.lang.String targetName,
                                   java.util.concurrent.atomic.AtomicReference<java.lang.String> error)
Converts this event into a displayable message.

Parameters:
targetName - the path to the target, perhaps relative to another directory
error - the error message, if any, that is also a result of this event
Returns:
the displayable message for a successful action, if any

getWorkspace

public Workspace getWorkspace()

getStatus

public OperationStatus getStatus()

isLatest

public boolean isLatest()

getSourceLocalItem

public java.lang.String getSourceLocalItem()

getTargetLocalItem

public java.lang.String getTargetLocalItem()

getVersion

public int getVersion()

getDeletionID

public int getDeletionID()

getServerItem

public java.lang.String getServerItem()

getItemID

public int getItemID()

getItemType

public ItemType getItemType()

isDelete

public boolean isDelete()

getChangeType

public ChangeType getChangeType()

isDiskUpdateAttempted

public boolean isDiskUpdateAttempted()

getOperation

public GetOperation getOperation()

getTargetPropertyValues

public PropertyValue[] getTargetPropertyValues()


© 2015 Microsoft. All rights reserved.