com.atlassian.bamboo.instantmessagingserver
Class InstantMessagingServerManagerImpl

java.lang.Object
  extended by com.atlassian.bamboo.instantmessagingserver.InstantMessagingServerManagerImpl
All Implemented Interfaces:
InstantMessagingServerManager

public class InstantMessagingServerManagerImpl
extends java.lang.Object
implements InstantMessagingServerManager


Constructor Summary
InstantMessagingServerManagerImpl()
           
 
Method Summary
 java.util.Collection<InstantMessagingServerDefinition> getAllInstantMessagingServers()
          Returns all InstantMessagingServerDefinition objects
 InstantMessagingServerDefinition getInstantMessagingServer(long instantMessagingServerId)
          Returns the InstantMessagingServerDefinition that matches the passed id
 void removeInstantMessagingServer(long instantMessagingServerId)
          Removes the InstantMessagingServerDefinition with the matching id
 void saveInstantMessagingServer(InstantMessagingServerDefinition instantMessagingServer)
          Stores the InstantMessagingServerDefinition.
 void sendMessage(InstantMessagingServerDefinition server, java.util.Set recipients, java.lang.String message)
          Deprecated. since 1.0 Use BambooSmackClient.send(Message) instead
 void setInstantMessagingServerDao(InstantMessagingServerDao instantMessagingServerDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstantMessagingServerManagerImpl

public InstantMessagingServerManagerImpl()
Method Detail

getAllInstantMessagingServers

@NotNull
public java.util.Collection<InstantMessagingServerDefinition> getAllInstantMessagingServers()
Description copied from interface: InstantMessagingServerManager
Returns all InstantMessagingServerDefinition objects

Specified by:
getAllInstantMessagingServers in interface InstantMessagingServerManager
Returns:
An unmodifiable collection of InstantMessagingServerDefinition objects, Collections.EMPTY_LIST if none exists.

saveInstantMessagingServer

public void saveInstantMessagingServer(InstantMessagingServerDefinition instantMessagingServer)
Description copied from interface: InstantMessagingServerManager
Stores the InstantMessagingServerDefinition.

Specified by:
saveInstantMessagingServer in interface InstantMessagingServerManager
Parameters:
instantMessagingServer - - Must not be null

getInstantMessagingServer

public InstantMessagingServerDefinition getInstantMessagingServer(long instantMessagingServerId)
Description copied from interface: InstantMessagingServerManager
Returns the InstantMessagingServerDefinition that matches the passed id

Specified by:
getInstantMessagingServer in interface InstantMessagingServerManager
Returns:
Matching InstantMessagingServerDefinition object. Null if the server does not exist

removeInstantMessagingServer

public void removeInstantMessagingServer(long instantMessagingServerId)
Description copied from interface: InstantMessagingServerManager
Removes the InstantMessagingServerDefinition with the matching id

Specified by:
removeInstantMessagingServer in interface InstantMessagingServerManager

sendMessage

@Deprecated
public void sendMessage(InstantMessagingServerDefinition server,
                                   java.util.Set recipients,
                                   java.lang.String message)
                 throws org.jivesoftware.smack.XMPPException
Deprecated. since 1.0 Use BambooSmackClient.send(Message) instead

Description copied from interface: InstantMessagingServerManager
Sends a test message

Specified by:
sendMessage in interface InstantMessagingServerManager
Parameters:
server -
recipients -
message -
Throws:
org.jivesoftware.smack.XMPPException

setInstantMessagingServerDao

public void setInstantMessagingServerDao(InstantMessagingServerDao instantMessagingServerDao)


Copyright © 2011 Atlassian. All Rights Reserved.