public interface MessagerConnector
Interface for integrating several instant messagers.
Modifier and Type | Method and Description |
---|---|
void |
disableUser(String username)
This method is called if a user disables this connector.
|
void |
enableUser(String username)
This method is called if a user enables this connector.
|
String |
getBlogMessagerId(long blogId)
returns the blog in the messages format.
|
String |
getClientId(String client) |
String |
getClientMessagerId(String clientId)
Returns the client in the messagers format.
|
String |
getDescription()
Returns a description for this messager.
|
String |
getId()
Returns a unique messager id.
|
String |
getName()
Returns the connectors name.
|
String |
getUserAlias(String username)
This method extracts the correct user alias for this connector.
|
String |
getUserMessagerId(long userId)
Returns the user in the messagers format.
|
boolean |
isAvailable(String username)
This method checks if the user is available or not.
|
boolean |
isConnected() |
void |
sendMessage(Message message)
New messages are send to the connector via this method.
|
void |
start()
Call this to start the connector.
|
void |
stop()
Should be called before the connector is removed.
|
void disableUser(String username)
This method is called if a user disables this connector.
void enableUser(String username)
This method is called if a user enables this connector.
String getBlogMessagerId(long blogId) throws BlogNotFoundException, BlogAccessException
returns the blog in the messages format.
String getClientMessagerId(String clientId)
Returns the client in the messagers format.
String getDescription()
Returns a description for this messager.
String getId()
Returns a unique messager id.
String getName()
Returns the connectors name.
String getUserAlias(String username)
This method extracts the correct user alias for this connector.
String getUserMessagerId(long userId)
Returns the user in the messagers format.
boolean isAvailable(String username)
This method checks if the user is available or not.
boolean isConnected()
void sendMessage(Message message) throws MessagerException
New messages are send to the connector via this method.
MessagerException
void start()
Call this to start the connector.
void stop()
Should be called before the connector is removed.
Copyright © 2019 Communote team. All rights reserved.