|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.provider.xmpp.container.XMPPPresenceSharedObject
public class XMPPPresenceSharedObject
Field Summary | |
---|---|
protected org.jivesoftware.smack.packet.Message.Type[] |
ALLOWED_MESSAGES
|
static Trace |
trace
|
Constructor Summary | |
---|---|
XMPPPresenceSharedObject()
|
Method Summary | |
---|---|
protected void |
addInvitationListener(IInvitationListener listener)
|
protected void |
addMessageListener(IMessageListener listener)
|
protected void |
addPresenceListener(IPresenceListener listener)
|
protected void |
addSharedObjectMessageListener(ISharedObjectMessageListener listener)
|
protected void |
addSubscribeListener(ISubscribeListener listener)
|
protected java.lang.String |
canonicalizePresenceFrom(java.lang.String from)
|
boolean |
changePassword(java.lang.String newpassword)
Change account password to use new password. |
boolean |
createAccount(java.lang.String username,
java.lang.String password,
java.util.Map attributes)
Create a new account. |
protected ID |
createIDFromName(java.lang.String name)
|
protected IRosterEntry.InterestType |
createInterestType(org.jivesoftware.smack.packet.RosterPacket.ItemType itemType)
|
protected IPresence |
createIPresence(org.jivesoftware.smack.packet.Presence xmppPresence)
|
protected IPresence.Mode |
createIPresenceMode(org.jivesoftware.smack.packet.Presence xmppPresence)
|
protected IPresence.Type |
createIPresenceType(org.jivesoftware.smack.packet.Presence xmppPresence)
|
protected IMessageListener.Type |
createMessageType(org.jivesoftware.smack.packet.Message.Type type)
|
protected org.jivesoftware.smack.packet.Presence |
createPresence(IPresence ipresence)
|
protected org.jivesoftware.smack.packet.Presence.Mode |
createPresenceMode(IPresence ipresence)
|
protected org.jivesoftware.smack.packet.Presence.Type |
createPresenceType(IPresence ipresence)
|
protected ID |
createRoomIDFromName(java.lang.String from)
|
protected IRosterEntry |
createRosterEntry(org.jivesoftware.smack.RosterEntry entry)
|
protected IRosterEntry |
createRosterEntry(org.jivesoftware.smack.packet.RosterPacket.Item entry)
|
protected IRosterGroup |
createRosterGroup(org.jivesoftware.smack.RosterGroup grp)
|
protected IRosterGroup |
createRosterGroup(java.lang.String grp)
|
protected ID |
createUserIDFromName(java.lang.String name)
|
protected void |
debug(java.lang.String msg)
|
boolean |
deleteAccount()
Delete an account. |
protected void |
disconnect()
|
void |
dispose(ID containerID)
Method called by the ISharedObjectContainer upon ISharedObject destruction. |
protected void |
dumpStack(java.lang.String msg,
java.lang.Throwable e)
|
protected org.jivesoftware.smack.packet.Message |
filterMessageType(org.jivesoftware.smack.packet.Message msg)
|
protected void |
fireContainerDeparted(ID departed)
|
protected void |
fireContainerJoined(ID containerJoined)
|
protected void |
fireInvitationReceived(ID roomID,
ID fromID,
ID toID,
java.lang.String subject,
java.lang.String body)
|
protected void |
fireMessage(ID from,
ID to,
IMessageListener.Type type,
java.lang.String subject,
java.lang.String body)
|
protected void |
firePresence(ID fromID,
IPresence presence)
|
protected void |
fireRosterEntry(IRosterEntry entry)
|
protected void |
fireSetRosterEntry(IRosterEntry entry)
|
protected void |
fireSharedObjectMessage(ISharedObjectMessageEvent event)
|
protected void |
fireSubscribe(ID fromID,
IPresence presence)
|
java.lang.Object |
getAccountAttribute(java.lang.String name)
Get the value of given |
java.lang.String[] |
getAccountAttributeNames()
Get account attribute names for this account |
java.lang.String |
getAccountInstructions()
Get any instructions for account |
java.lang.Object |
getAdapter(java.lang.Class clazz)
|
protected org.jivesoftware.smack.XMPPConnection |
getConnection()
|
protected ISharedObjectContext |
getContext()
|
protected java.lang.String |
getUserNameFromXMPPAddress(XMPPID userID)
|
protected void |
handleContainerDepartedEvent(IContainerDisconnectedEvent event)
|
protected void |
handleDeactivatedEvent(ISharedObjectDeactivatedEvent event)
|
void |
handleEvent(Event event)
Handle Event passed to this ISharedObject. |
void |
handleEvents(Event[] events)
Handle Events passed to this ISharedObject. |
protected void |
handleInvitationEvent(InvitationReceivedEvent event)
|
protected void |
handleIQEvent(IQEvent evt)
|
protected void |
handleJoin(IContainerConnectedEvent event)
|
protected void |
handleMessageEvent(MessageEvent evt)
|
protected void |
handlePresenceEvent(PresenceEvent evt)
|
protected void |
handleRoster(org.jivesoftware.smack.Roster roster)
|
void |
init(ISharedObjectConfig initData)
Initialize this ISharedObject. |
boolean |
isAccountCreationSupported()
Determine whether account creation is supported for this account manager |
protected void |
removeInvitationListener(IInvitationListener listener)
|
protected void |
removeMessageListener(IMessageListener listener)
|
protected void |
removePresenceListener(IPresenceListener listener)
|
protected void |
removeSharedObjectMessageListener(ISharedObjectMessageListener listener)
|
protected void |
removeSubscribeListener(ISubscribeListener listener)
|
protected void |
setConnection(org.jivesoftware.smack.XMPPConnection connection)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Trace trace
protected org.jivesoftware.smack.packet.Message.Type[] ALLOWED_MESSAGES
Constructor Detail |
---|
public XMPPPresenceSharedObject()
Method Detail |
---|
protected void fireInvitationReceived(ID roomID, ID fromID, ID toID, java.lang.String subject, java.lang.String body)
protected void addInvitationListener(IInvitationListener listener)
protected void removeInvitationListener(IInvitationListener listener)
protected void addPresenceListener(IPresenceListener listener)
protected void removePresenceListener(IPresenceListener listener)
protected void addMessageListener(IMessageListener listener)
protected void removeMessageListener(IMessageListener listener)
protected void addSharedObjectMessageListener(ISharedObjectMessageListener listener)
protected void removeSharedObjectMessageListener(ISharedObjectMessageListener listener)
protected void addSubscribeListener(ISubscribeListener listener)
protected void removeSubscribeListener(ISubscribeListener listener)
protected java.lang.String canonicalizePresenceFrom(java.lang.String from)
protected void debug(java.lang.String msg)
protected void disconnect()
public void dispose(ID containerID)
ISharedObject
dispose
in interface ISharedObject
containerID
- the ID of the container that is disposing this ISharedObjectprotected void dumpStack(java.lang.String msg, java.lang.Throwable e)
protected void fireContainerDeparted(ID departed)
protected void fireContainerJoined(ID containerJoined)
protected void fireMessage(ID from, ID to, IMessageListener.Type type, java.lang.String subject, java.lang.String body)
protected void firePresence(ID fromID, IPresence presence)
protected void fireSubscribe(ID fromID, IPresence presence)
protected void fireSetRosterEntry(IRosterEntry entry)
protected void fireRosterEntry(IRosterEntry entry)
protected void fireSharedObjectMessage(ISharedObjectMessageEvent event)
public java.lang.Object getAdapter(java.lang.Class clazz)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
protected org.jivesoftware.smack.XMPPConnection getConnection()
protected ISharedObjectContext getContext()
protected java.lang.String getUserNameFromXMPPAddress(XMPPID userID)
protected void handleContainerDepartedEvent(IContainerDisconnectedEvent event)
protected void handleDeactivatedEvent(ISharedObjectDeactivatedEvent event)
public void handleEvent(Event event)
IEventHandler
handleEvent
in interface IEventHandler
event
- the Event for the ISharedObject to handleprotected ID createRoomIDFromName(java.lang.String from)
protected ID createUserIDFromName(java.lang.String name)
protected void handleInvitationEvent(InvitationReceivedEvent event)
public void handleEvents(Event[] events)
IEventHandler
handleEvents
in interface IEventHandler
events
- the Events [] for the ISharedObject to handleprotected void handleIQEvent(IQEvent evt)
protected void handleJoin(IContainerConnectedEvent event)
protected org.jivesoftware.smack.packet.Message filterMessageType(org.jivesoftware.smack.packet.Message msg)
protected void handleMessageEvent(MessageEvent evt)
protected void handlePresenceEvent(PresenceEvent evt)
protected void handleRoster(org.jivesoftware.smack.Roster roster)
public void init(ISharedObjectConfig initData) throws SharedObjectInitException
ISharedObject
init
in interface ISharedObject
initData
- the initialization data passed by the ISharedObjectContainer
upon initialization
SharedObjectInitException
- thrown by ISharedObject to halt initialization.
ISharedObjectContainers must respond to such an exception
by halting the addition of the ISharedObject instance and
treating it as not in the container.protected ID createIDFromName(java.lang.String name)
protected IRosterEntry.InterestType createInterestType(org.jivesoftware.smack.packet.RosterPacket.ItemType itemType)
protected IMessageListener.Type createMessageType(org.jivesoftware.smack.packet.Message.Type type)
protected IPresence createIPresence(org.jivesoftware.smack.packet.Presence xmppPresence)
protected org.jivesoftware.smack.packet.Presence createPresence(IPresence ipresence)
protected IPresence.Mode createIPresenceMode(org.jivesoftware.smack.packet.Presence xmppPresence)
protected org.jivesoftware.smack.packet.Presence.Mode createPresenceMode(IPresence ipresence)
protected IPresence.Type createIPresenceType(org.jivesoftware.smack.packet.Presence xmppPresence)
protected org.jivesoftware.smack.packet.Presence.Type createPresenceType(IPresence ipresence)
protected IRosterEntry createRosterEntry(org.jivesoftware.smack.RosterEntry entry)
protected IRosterEntry createRosterEntry(org.jivesoftware.smack.packet.RosterPacket.Item entry)
protected IRosterGroup createRosterGroup(org.jivesoftware.smack.RosterGroup grp)
protected IRosterGroup createRosterGroup(java.lang.String grp)
protected void setConnection(org.jivesoftware.smack.XMPPConnection connection)
public boolean changePassword(java.lang.String newpassword) throws ECFException
IAccountManager
changePassword
in interface IAccountManager
newpassword
- new password to use for this account
ECFException
- thrown if not connected, or if password change fails due to
network failure or server failurepublic boolean createAccount(java.lang.String username, java.lang.String password, java.util.Map attributes) throws ECFException
IAccountManager
createAccount
in interface IAccountManager
username
- the fully qualified username to use for the new accountpassword
- the password to use with the new accountattributes
- attributes to associate with the new account
ECFException
- thrown if account creation is not supported, or if fails for
some reason (network failure or server failure)public boolean deleteAccount() throws ECFException
IAccountManager
deleteAccount
in interface IAccountManager
ECFException
- thrown if account deletion is not supported, or if fails for
some reason (network failure or server failure)public java.lang.String getAccountInstructions()
IAccountManager
getAccountInstructions
in interface IAccountManager
public java.lang.String[] getAccountAttributeNames()
IAccountManager
getAccountAttributeNames
in interface IAccountManager
public java.lang.Object getAccountAttribute(java.lang.String name)
IAccountManager
getAccountAttribute
in interface IAccountManager
name
- the attribute name to return the value for
public boolean isAccountCreationSupported()
IAccountManager
isAccountCreationSupported
in interface IAccountManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |