Dekoh platform API

com.pramati.bfly.das.contacts.listeners
Class ShareEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.pramati.bfly.das.contacts.listeners.ShareEvent
All Implemented Interfaces:
Serializable

public class ShareEvent
extends EventObject

An event which indicates that a share operation occurred. This event is used both for sharing and unsharing operations.

This event is generated by ApplicationShareManager for

A ShareEvent object is passed to every ShareListener object which is registered to receive the share events using ApplicationShareManager registerShareListener method.

Since:
14 Jun, 2007
See Also:
ShareListener, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ShareEvent(ApplicationShareManager shareManager, String accountId, String dekohUserId, String appContextRoot, List contacts)
          Constructs a prototypical Event, passed for every ShareListener events.
 
Method Summary
 String getAccountId()
           
 String getAppContextRoot()
           
 List getContacts()
           Will return list of contacts, if this event is triggered while sharing or unsharing an application explicitly to some contacts.
 String getDekohUserId()
           
 ApplicationShareManager getShareManager()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShareEvent

public ShareEvent(ApplicationShareManager shareManager,
                  String accountId,
                  String dekohUserId,
                  String appContextRoot,
                  List contacts)
Constructs a prototypical Event, passed for every ShareListener events.

Parameters:
shareManager - ApplicationShareManager instance.
accountId - The Logged in user accountID
dekohUserId - The logged in Dekoh User ID
appContextRoot - ContextRoot of the application which is shared/unshared
contacts - List of contacts for which this event is triggered. would be empty list, is its a share to
Method Detail

getAppContextRoot

public String getAppContextRoot()
Returns:
ContextRoot of the application which is shared/unshared

getContacts

public List getContacts()

getDekohUserId

public String getDekohUserId()
Returns:
Logged In User DekohUserId, who has shared/unshared the application.

getAccountId

public String getAccountId()
Returns:
Logged In User AccountId, who has shared/unshared the application

getShareManager

public ApplicationShareManager getShareManager()
Returns:
ApplicationShareManager instance.

Dekoh platform API

© 2009 Pramati Technologies - Dekoh - Portal for Developers