Class InMemoryMucRepository

    • Constructor Detail

      • InMemoryMucRepository

        public InMemoryMucRepository​(MucContext mucConfig,
                                     MucDAO dao)
                              throws tigase.component.exceptions.RepositoryException
        Throws:
        tigase.component.exceptions.RepositoryException
    • Method Detail

      • createNewRoom

        public Room createNewRoom​(tigase.xmpp.BareJID roomJID,
                                  tigase.xmpp.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
      • 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.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.BareJID[] getPublicVisibleRoomsIdList()
                                                          throws tigase.component.exceptions.RepositoryException
        Specified by:
        getPublicVisibleRoomsIdList in interface IMucRepository
        Throws:
        tigase.component.exceptions.RepositoryException
      • getRoom

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

        public String getRoomName​(String jid)
                           throws tigase.component.exceptions.RepositoryException
        Specified by:
        getRoomName in interface IMucRepository
        Returns:
        Throws:
        tigase.component.exceptions.RepositoryException
      • updateDefaultRoomConfig

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

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

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