Dekoh platform API

com.pramati.bfly.cas.presence.api.ops
Class ShareInfo.BuddyShareInfo

java.lang.Object
  extended by com.pramati.bfly.cas.presence.api.ops.ShareInfo.BuddyShareInfo
Enclosing class:
ShareInfo

public static class ShareInfo.BuddyShareInfo
extends Object

Represents a DesktopUser (DekohUser's who are registered, have a valid dekohId, and installed a Dekoh desktop) who has shared some application from any of his Dekoh Desktops to this DekohUser.


Method Summary
 String getBuddyAlias()
          DesktopUser's dekohid.
 List getDesktopShares()
          Gets the list of Dekoh Desktops of the DesktopUser (Dekoh User who is registered, have a valid dekohId, and installed a Dekoh desktop), from which applications are shared to this DekohUser.
 boolean isDefaultBuddy()
          To know if this DesktopUser is a default buddy.
 boolean isOnline()
          To know if any of this DesktopUser's DekohDesktop is online and reachable.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getBuddyAlias

public String getBuddyAlias()
DesktopUser's dekohid. As DesktopUser is a registered DekohUser with a valid dekohId, this value will always be non null.

Returns:
DesktopUser's dekohid.

isDefaultBuddy

public boolean isDefaultBuddy()
To know if this DesktopUser is a default buddy. On DekohNetwork, there can be some default buddy bots, who would be hosting a help application or a chat application, which can helpful to Dekoh User for getting any useful information..

Returns:
true, if this BuddyShare is a defaultBuddy. else would return false.

getDesktopShares

public List getDesktopShares()
Gets the list of Dekoh Desktops of the DesktopUser (Dekoh User who is registered, have a valid dekohId, and installed a Dekoh desktop), from which applications are shared to this DekohUser.

Returns:
List of DekohDesktops from which this DesktopUser has shared some application to this DekohUser. will return an empty list, if this DesktopUser has no Dekoh Desktop from which he has shared an application to this DekohUser.

isOnline

public boolean isOnline()
To know if any of this DesktopUser's DekohDesktop is online and reachable.

Returns:
true, if any DesktopUser is reachable. else returns false.

toString

public String toString()
Overrides:
toString in class Object

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers