com.pramati.bfly.das.contacts.listeners
Class ShareEvent
java.lang.Object
java.util.EventObject
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 - Sharing
- To Public.
- To Dekoh Network.
- To All Contacts.
- To some contacts explicitly.
- Unsharing
- To Public.
- To Dekoh
Network.
- To All Contacts.
- To some contacts explicitly.
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
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 accountIDdekohUserId - The logged in Dekoh User IDappContextRoot - ContextRoot of the application which is shared/unsharedcontacts - List of contacts for which this event is triggered. would be empty list, is its a share to
getAppContextRoot
public String getAppContextRoot()
- Returns:
- ContextRoot of the application which is shared/unshared
getContacts
public List getContacts()
- Will return list of contacts, if this event is triggered while
sharing or unsharing an application explicitly to
some contacts.
- Will return an empty list for all other ShareListener events.
- Returns:
- List of
Contacts for which ShareEvent.getAppContextRoot() Application} is successfully
Shared/Unshared. Would be an empty list in case of Share/Unshare to All/DekohNetwork/AllContacts. For
private shares, this has list of contact for which application is successfully Shared/Unshared.
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.
© 2009 Pramati Technologies - Dekoh - Portal for Developers