com.microsoft.tfs.core.clients.webservices
Class IdentityDescriptor

java.lang.Object
  extended by com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper
      extended by com.microsoft.tfs.core.clients.webservices.IdentityDescriptor

public class IdentityDescriptor
extends com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper

Wrapper for an identity type and a unique identifier.

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

Field Summary
 
Fields inherited from class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper
webServiceObject
 
Constructor Summary
IdentityDescriptor(ms.ws._IdentityDescriptor id)
           
IdentityDescriptor(java.lang.String identityType, java.lang.String identifier)
          Constructs an IdentityDescriptor of the given type for the given identity.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.Object getData()
           
 java.lang.String getIdentifier()
           
 java.lang.String getIdentityType()
           
 ms.ws._IdentityDescriptor getWebServiceObject()
          Gets the web service object this class wraps.
 int hashCode()
           
 void setData(java.lang.Object data)
          Sets miscellaenous data not sent to TFS.
 
Methods inherited from class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper
toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IdentityDescriptor

public IdentityDescriptor(java.lang.String identityType,
                          java.lang.String identifier)
Constructs an IdentityDescriptor of the given type for the given identity.

Parameters:
identityType - the type of identity (must be one of the types from IdentityType) (must not be null or empty)
identifier - the identifier, usually a SID from GroupWellKnownSIDConstants (must not be null or empty)

IdentityDescriptor

public IdentityDescriptor(ms.ws._IdentityDescriptor id)
Method Detail

getWebServiceObject

public ms.ws._IdentityDescriptor getWebServiceObject()
Gets the web service object this class wraps. The returned object should not be modified.

Returns:
the web service object this class wraps.

getIdentityType

public java.lang.String getIdentityType()
Returns:
the type of identifier

getIdentifier

public java.lang.String getIdentifier()
Returns:
the identifier

getData

public java.lang.Object getData()
Returns:
the miscellaneous data not sent to TFS

setData

public void setData(java.lang.Object data)
Sets miscellaenous data not sent to TFS.

Parameters:
data - the data (may be null)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper

hashCode

public int hashCode()
Overrides:
hashCode in class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper


© 2015 Microsoft. All rights reserved.