(subscriptionListeners);
}
if (logger.isDebugEnabled())
logger.debug("Dispatching a Subscription Event to" + listeners.size()
+ " listeners. Evt=" + evt);
for (SubscriptionListener listener : listeners)
listener.subscriptionMoved(evt);
}
/**
* Removes the specified listener so that it won't receive any further
* updates on contact presence status changes
*
* @param listener the listener to remove.
*/
public void removeContactPresenceStatusListener(
ContactPresenceStatusListener listener)
{
synchronized (contactPresenceStatusListeners)
{
contactPresenceStatusListeners.remove(listener);
}
}
/**
* Unregisters the specified listener so that it does not receive further
* events upon changes in local presence status.
*
* @param listener
* ProviderPresenceStatusListener
*/
public void removeProviderPresenceStatusListener(
ProviderPresenceStatusListener listener)
{
synchronized (providerPresenceStatusListeners)
{
providerPresenceStatusListeners.remove(listener);
}
}
/**
* Removes the specified group change listener so that it won't receive
* any further events.
*
* @param listener the ServerStoredGroupChangeListener to remove
*/
public void removeServerStoredGroupChangeListener(
ServerStoredGroupListener listener)
{
synchronized (serverStoredGroupListeners)
{
serverStoredGroupListeners.remove(listener);
}
}
/**
* Removes the specified subscription listener.
*
* @param listener the listener to remove.
*/
public void removeSubscriptionListener(SubscriptionListener listener)
{
synchronized (subscriptionListeners)
{
subscriptionListeners.remove(listener);
}
}
/**
* Sets the display name for contact to be newName.
*
* @param contact the Contact that we are renaming
* @param newName a String containing the new display name for
* metaContact.
* @throws IllegalArgumentException if contact is not an
* instance that belongs to the underlying implementation.
*/
public void setDisplayName(Contact contact, String newName)
throws IllegalArgumentException
{
}
/**
* Returns the protocol specific contact instance representing the local
* user or null if it is not supported.
*
* @return the Contact that the Provider implementation is communicating
* on behalf of or null if not supported.
*/
public Contact getLocalContact()
{
return null;
}
}