Class MongoMucDAO

java.lang.Object
tigase.muc.repository.AbstractMucDAO<MongoDataSource, byte[]>
tigase.mongodb.muc.MongoMucDAO
All Implemented Interfaces:
tigase.db.DataSourceAware<MongoDataSource>, tigase.muc.repository.IMucDAO<MongoDataSource, byte[]>

@Deprecated public class MongoMucDAO extends tigase.muc.repository.AbstractMucDAO<MongoDataSource, byte[]>
Deprecated.
Created by andrzej on 20.10.2016.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.mongodb.client.MongoCollection<org.bson.Document>
    Deprecated.
     
    protected com.mongodb.client.MongoCollection<org.bson.Document>
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected byte[]
    Deprecated.
     
    byte[]
    createRoom(tigase.muc.RoomWithId<byte[]> room)
    Deprecated.
     
    void
    destroyRoom(tigase.xmpp.jid.BareJID roomJID)
    Deprecated.
     
    protected byte[]
    generateId(tigase.xmpp.jid.BareJID user)
    Deprecated.
     
    Map<tigase.xmpp.jid.BareJID, tigase.muc.RoomAffiliation>
    getAffiliations(tigase.muc.RoomWithId<byte[]> room)
    Deprecated.
     
    tigase.muc.RoomWithId<byte[]>
    getRoom(tigase.xmpp.jid.BareJID roomJID)
    Deprecated.
     
    getRoomAvatar(tigase.muc.RoomWithId<byte[]> room)
    Deprecated.
     
    ArrayList<tigase.xmpp.jid.BareJID>
    Deprecated.
     
    void
    setAffiliation(tigase.muc.RoomWithId<byte[]> room, tigase.xmpp.jid.BareJID jid, tigase.muc.RoomAffiliation affiliation)
    Deprecated.
     
    void
    Deprecated.
     
    void
    setSubject(tigase.muc.RoomWithId<byte[]> room, String subject, String creatorNickname, Date changeDate)
    Deprecated.
     
    void
    updateRoomAvatar(tigase.muc.RoomWithId<byte[]> room, String encodedAvatar, String hash)
    Deprecated.
     
    void
    updateRoomConfig(tigase.muc.RoomConfig roomConfig)
    Deprecated.
     

    Methods inherited from class tigase.muc.repository.AbstractMucDAO

    parseConfigElement

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • roomAffilaitionsCollection

      protected com.mongodb.client.MongoCollection<org.bson.Document> roomAffilaitionsCollection
      Deprecated.
    • roomsCollection

      protected com.mongodb.client.MongoCollection<org.bson.Document> roomsCollection
      Deprecated.
  • Constructor Details

    • MongoMucDAO

      public MongoMucDAO()
      Deprecated.
  • Method Details

    • calculateHash

      protected byte[] calculateHash(String user) throws tigase.db.TigaseDBException
      Deprecated.
      Throws:
      tigase.db.TigaseDBException
    • createRoom

      public byte[] createRoom(tigase.muc.RoomWithId<byte[]> room) throws tigase.component.exceptions.RepositoryException
      Deprecated.
      Throws:
      tigase.component.exceptions.RepositoryException
    • destroyRoom

      public void destroyRoom(tigase.xmpp.jid.BareJID roomJID) throws tigase.component.exceptions.RepositoryException
      Deprecated.
      Throws:
      tigase.component.exceptions.RepositoryException
    • generateId

      protected byte[] generateId(tigase.xmpp.jid.BareJID user) throws tigase.db.TigaseDBException
      Deprecated.
      Throws:
      tigase.db.TigaseDBException
    • getAffiliations

      public Map<tigase.xmpp.jid.BareJID, tigase.muc.RoomAffiliation> getAffiliations(tigase.muc.RoomWithId<byte[]> room) throws tigase.component.exceptions.RepositoryException
      Deprecated.
      Throws:
      tigase.component.exceptions.RepositoryException
    • getRoom

      public tigase.muc.RoomWithId<byte[]> getRoom(tigase.xmpp.jid.BareJID roomJID) throws tigase.component.exceptions.RepositoryException
      Deprecated.
      Throws:
      tigase.component.exceptions.RepositoryException
    • getRoomsJIDList

      public ArrayList<tigase.xmpp.jid.BareJID> getRoomsJIDList() throws tigase.component.exceptions.RepositoryException
      Deprecated.
      Throws:
      tigase.component.exceptions.RepositoryException
    • setAffiliation

      public void setAffiliation(tigase.muc.RoomWithId<byte[]> room, tigase.xmpp.jid.BareJID jid, tigase.muc.RoomAffiliation affiliation) throws tigase.component.exceptions.RepositoryException
      Deprecated.
      Throws:
      tigase.component.exceptions.RepositoryException
    • setDataSource

      public void setDataSource(MongoDataSource dataSource)
      Deprecated.
    • getRoomAvatar

      public String getRoomAvatar(tigase.muc.RoomWithId<byte[]> room) throws tigase.component.exceptions.RepositoryException
      Deprecated.
      Throws:
      tigase.component.exceptions.RepositoryException
    • updateRoomAvatar

      public void updateRoomAvatar(tigase.muc.RoomWithId<byte[]> room, String encodedAvatar, String hash) throws tigase.component.exceptions.RepositoryException
      Deprecated.
      Throws:
      tigase.component.exceptions.RepositoryException
    • setSubject

      public void setSubject(tigase.muc.RoomWithId<byte[]> room, String subject, String creatorNickname, Date changeDate) throws tigase.component.exceptions.RepositoryException
      Deprecated.
      Throws:
      tigase.component.exceptions.RepositoryException
    • updateRoomConfig

      public void updateRoomConfig(tigase.muc.RoomConfig roomConfig) throws tigase.component.exceptions.RepositoryException
      Deprecated.
      Throws:
      tigase.component.exceptions.RepositoryException