public class MongoMucDAO extends tigase.muc.repository.AbstractMucDAO<MongoDataSource,byte[]>
| Modifier and Type | Field and Description |
|---|---|
protected com.mongodb.client.MongoCollection<org.bson.Document> |
roomAffilaitionsCollection |
protected com.mongodb.client.MongoCollection<org.bson.Document> |
roomsCollection |
| Constructor and Description |
|---|
MongoMucDAO() |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
calculateHash(String user) |
byte[] |
createRoom(tigase.muc.RoomWithId<byte[]> room) |
void |
destroyRoom(tigase.xmpp.jid.BareJID roomJID) |
protected byte[] |
generateId(tigase.xmpp.jid.BareJID user) |
Map<tigase.xmpp.jid.BareJID,tigase.muc.Affiliation> |
getAffiliations(tigase.muc.RoomWithId<byte[]> room) |
tigase.muc.RoomWithId<byte[]> |
getRoom(tigase.xmpp.jid.BareJID roomJID) |
ArrayList<tigase.xmpp.jid.BareJID> |
getRoomsJIDList() |
void |
setAffiliation(tigase.muc.RoomWithId<byte[]> room,
tigase.xmpp.jid.BareJID jid,
tigase.muc.Affiliation affiliation) |
void |
setDataSource(MongoDataSource dataSource) |
void |
setSubject(tigase.muc.RoomWithId<byte[]> room,
String subject,
String creatorNickname,
Date changeDate) |
void |
updateRoomConfig(tigase.muc.RoomConfig roomConfig) |
protected com.mongodb.client.MongoCollection<org.bson.Document> roomAffilaitionsCollection
protected com.mongodb.client.MongoCollection<org.bson.Document> roomsCollection
protected byte[] calculateHash(String user) throws tigase.db.TigaseDBException
tigase.db.TigaseDBExceptionpublic byte[] createRoom(tigase.muc.RoomWithId<byte[]> room)
throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic void destroyRoom(tigase.xmpp.jid.BareJID roomJID)
throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionprotected byte[] generateId(tigase.xmpp.jid.BareJID user)
throws tigase.db.TigaseDBException
tigase.db.TigaseDBExceptionpublic Map<tigase.xmpp.jid.BareJID,tigase.muc.Affiliation> getAffiliations(tigase.muc.RoomWithId<byte[]> room) throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic tigase.muc.RoomWithId<byte[]> getRoom(tigase.xmpp.jid.BareJID roomJID)
throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic ArrayList<tigase.xmpp.jid.BareJID> getRoomsJIDList() throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic void setAffiliation(tigase.muc.RoomWithId<byte[]> room,
tigase.xmpp.jid.BareJID jid,
tigase.muc.Affiliation affiliation)
throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic void setDataSource(MongoDataSource dataSource)
public void setSubject(tigase.muc.RoomWithId<byte[]> room,
String subject,
String creatorNickname,
Date changeDate)
throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionpublic void updateRoomConfig(tigase.muc.RoomConfig roomConfig)
throws tigase.component.exceptions.RepositoryException
tigase.component.exceptions.RepositoryExceptionCopyright © 2014–2019 "Tigase, Inc.". All rights reserved.