Class InMemoryMucRepository

java.lang.Object
tigase.muc.repository.inmemory.InMemoryMucRepository
All Implemented Interfaces:
tigase.kernel.beans.Initializable, IMucRepository

@Bean(name="mucRepository", parent=MUCComponent.class, active=true) public class InMemoryMucRepository extends Object implements IMucRepository, tigase.kernel.beans.Initializable
Author:
bmalkow
  • Field Details

  • Constructor Details

    • InMemoryMucRepository

      public InMemoryMucRepository()
  • Method Details

    • getRoomAvatar

      public String getRoomAvatar(Room room) throws tigase.component.exceptions.RepositoryException
      Specified by:
      getRoomAvatar in interface IMucRepository
      Throws:
      tigase.component.exceptions.RepositoryException
    • updateRoomAvatar

      public void updateRoomAvatar(Room room, String encodedAvatar, String hash) throws tigase.component.exceptions.RepositoryException
      Specified by:
      updateRoomAvatar in interface IMucRepository
      Throws:
      tigase.component.exceptions.RepositoryException
    • createNewRoom

      public Room createNewRoom(tigase.xmpp.jid.BareJID roomJID, tigase.xmpp.jid.JID senderJid) throws tigase.component.exceptions.RepositoryException
      Specified by:
      createNewRoom in interface IMucRepository
      Throws:
      tigase.component.exceptions.RepositoryException
    • destroyRoom

      public void destroyRoom(Room room, tigase.xml.Element destroyElement) throws tigase.component.exceptions.RepositoryException
      Specified by:
      destroyRoom in interface IMucRepository
      Throws:
      tigase.component.exceptions.RepositoryException
    • getActiveRooms

      public Map<tigase.xmpp.jid.BareJID,Room> getActiveRooms()
      Specified by:
      getActiveRooms in interface IMucRepository
    • getDefaultRoomConfig

      public RoomConfig getDefaultRoomConfig() throws tigase.component.exceptions.RepositoryException
      Specified by:
      getDefaultRoomConfig in interface IMucRepository
      Throws:
      tigase.component.exceptions.RepositoryException
    • getPublicVisibleRooms

      public Map<tigase.xmpp.jid.BareJID,String> getPublicVisibleRooms(String domain) throws tigase.component.exceptions.RepositoryException
      Specified by:
      getPublicVisibleRooms in interface IMucRepository
      Throws:
      tigase.component.exceptions.RepositoryException
    • getPublicVisibleRoomsIdList

      public tigase.xmpp.jid.BareJID[] getPublicVisibleRoomsIdList() throws tigase.component.exceptions.RepositoryException
      Specified by:
      getPublicVisibleRoomsIdList in interface IMucRepository
      Throws:
      tigase.component.exceptions.RepositoryException
    • getRoom

      public Room getRoom(tigase.xmpp.jid.BareJID roomJID) throws tigase.component.exceptions.RepositoryException
      Specified by:
      getRoom in interface IMucRepository
      Throws:
      tigase.component.exceptions.RepositoryException
    • initialize

      public void initialize()
      Specified by:
      initialize in interface tigase.kernel.beans.Initializable
    • isRoomIdExists

      public boolean isRoomIdExists(String newRoomName)
      Specified by:
      isRoomIdExists in interface IMucRepository
      Returns:
    • leaveRoom

      public void leaveRoom(Room room)
      Specified by:
      leaveRoom in interface IMucRepository
    • updateDefaultRoomConfig

      public void updateDefaultRoomConfig(RoomConfig config) throws tigase.component.exceptions.RepositoryException
      Specified by:
      updateDefaultRoomConfig in interface IMucRepository
      Throws:
      tigase.component.exceptions.RepositoryException
    • addToAllRooms

      protected void addToAllRooms(tigase.xmpp.jid.BareJID roomJid, InMemoryMucRepository.InternalRoom internalRoom)
    • removeFromAllRooms

      protected void removeFromAllRooms(tigase.xmpp.jid.BareJID roomJid)
    • roomConfigChanged

      protected void roomConfigChanged(RoomConfig roomConfig, Set<String> modifiedVars)