com.microsoft.tfs.core.clients.webservices
Class IdentityDescriptor
java.lang.Object
com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper
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
Fields inherited from class com.microsoft.tfs.core.internal.wrappers.WebServiceObjectWrapper |
webServiceObject |
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 |
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)
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.