Class ChatUserEventListener

    • Constructor Detail

      • ChatUserEventListener

        public ChatUserEventListener()
    • Method Detail

      • onCreation

        public void onCreation​(UserEvent event)
        A new user has been created in Silverpeas, then creates his account in the remote chat service. No account should be existing for this user in the chat service, otherwise an error is raised and the user account creation in Silverpeas fails.
        Parameters:
        event - the event on the creation of a resource.
      • onDeletion

        public void onDeletion​(UserEvent event)
        An existing user in Silverpeas has been deleted, then the account of the deleted user in the remote chat service is also deleted.
        Parameters:
        event - the event on the deletion of a resource.
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: ResourceEventListener
        Is this listener enabled? When a listener is enabled, it processes then all the incoming events it listens for. Otherwise, nothing the event isn't consumed.

        By default, the listener is enabled. If the listener has to be enabled according to some conditions, then overrides this method.

        Returns:
        true if this listener has to consume the events it listens for. False otherwise. Returns true by default.