|
Dekoh platform API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pramati.bfly.cas.presence.api.ops.ShareInfo
public final class ShareInfo
A DataObject having the shared applications information of a DekohUser. This object encapsulates all the shared information to a DekohUser, from other DesktopUser's (DekohUser's who are registered, have a valid dekohId, and installed a Dekoh desktop).
It has information of shared application from both online and offline DekohDesktops. See example below to figure out whether a DesktopUser has any of his DekohDesktop online (i.e connected to central server), and if online how to generate a url to access that application. For Example:
// refers to the accountId and name of the user who would be accessing this link.
// On Dekoh Desktops DesktopUser would give this information.
// Can set these to null, if unknown.
String loggedinUserAccountId;
String loggedInUserName;
for (ShareInfo.BuddyShareInfo buddyShare : shareInfo.getBuddyShares()) {
String buddyName = buddyShare.getBuddyAlias();
if (buddyShare.isOnline()) {
for (ShareInfo.DesktopShareInfo desktopShare : buddyShare.getDesktopShares()) {
if (desktopShare.isOnline()) {
String dasId = desktopShare.getDasIdentifier();
int desktopNo = desktopShare.getDesktopNo();
String desktopName = desktopShare.getDesktopName();
for (ShareInfo.AppShareInfo appShare : desktopShare.getAppShares()) {
String appName = appShare.getAppName();
String appUrl = SessionUtil.getViewLink(DesktopUser, buddyName, dasId, desktopNo,
desktopName, appName);
}
}
}
}
| Nested Class Summary | |
|---|---|
static class |
ShareInfo.AppShareInfo
|
static class |
ShareInfo.BuddyShareInfo
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. |
static class |
ShareInfo.DesktopShareInfo
Represents a Dekoh Desktop of a DesktopUser, from which he has shared some application to this DekohUser. |
| Method Summary | |
|---|---|
List |
getBuddyShares()
Gets the list of DesktopUser's (DekohUser's who are registered, have a valid dekohId, and installed a Dekoh desktop) and the application they have shared to this DekohUser. |
String |
getUserAlias()
A dummy value. |
boolean |
hasOnlineBuddies()
To know if any DesktopUser (DekohUser's who are registered, have a valid dekohId, and installed a Dekoh desktop) who has shared an application to this Dekoh user are online and reachable. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public String getUserAlias()
public List getBuddyShares()
public boolean hasOnlineBuddies()
public String toString()
toString in class Object
|
Dekoh platform API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
© 2009 Pramati Technologies - Dekoh - Portal for Developers