com.microsoft.tfs.core.clients.favorites
Class FavoriteItem

java.lang.Object
  extended by com.microsoft.tfs.core.clients.favorites.FavoriteItem

public class FavoriteItem
extends java.lang.Object

Represents favorite entry in Identity Favorites Store

Thread-safety:
thread-compatible

Constructor Summary
FavoriteItem()
           
 
Method Summary
static FavoriteItem deserialize(java.lang.String value)
          Deserialize JSON string to FavoriteItem class
 java.lang.String getData()
          Application specific data for the entry
 com.microsoft.tfs.util.GUID getID()
          Unique Id of the the entry
 java.lang.String getName()
          Display text for favorite entry
 com.microsoft.tfs.util.GUID getParentID()
          Id of the parent favorite folder
 java.lang.String getType()
          Application specific favorite entry specifier.
 boolean isFolder()
          Sugar to determine whether entry is a folder
 java.lang.String serialize()
          Serializes Entry in JSON format
 void setData(java.lang.String data)
           
 void setID(com.microsoft.tfs.util.GUID id)
           
 void setName(java.lang.String name)
           
 void setParentID(com.microsoft.tfs.util.GUID parentID)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FavoriteItem

public FavoriteItem()
Method Detail

getID

public com.microsoft.tfs.util.GUID getID()
Unique Id of the the entry


setID

public void setID(com.microsoft.tfs.util.GUID id)

getParentID

public com.microsoft.tfs.util.GUID getParentID()
Id of the parent favorite folder


setParentID

public void setParentID(com.microsoft.tfs.util.GUID parentID)

getName

public java.lang.String getName()
Display text for favorite entry


setName

public void setName(java.lang.String name)

getType

public java.lang.String getType()
Application specific favorite entry specifier. Empty or Null represents that Favorite item is a Folder


setType

public void setType(java.lang.String type)

getData

public java.lang.String getData()
Application specific data for the entry


setData

public void setData(java.lang.String data)

isFolder

public boolean isFolder()
Sugar to determine whether entry is a folder


serialize

public java.lang.String serialize()
Serializes Entry in JSON format


deserialize

public static FavoriteItem deserialize(java.lang.String value)
Deserialize JSON string to FavoriteItem class

Parameters:
value - JSON string (must not be null or empty)


© 2015 Microsoft. All rights reserved.