Package tigase.muc.repository
Class MucDAOMDBean
- java.lang.Object
-
- tigase.db.beans.MDRepositoryBean<T>
-
- tigase.db.beans.MDRepositoryBeanWithStatistics<IMucDAO>
-
- tigase.muc.repository.MucDAOMDBean
-
- All Implemented Interfaces:
tigase.db.DataSourceAware,tigase.kernel.beans.Initializable,tigase.kernel.beans.RegistrarBean,tigase.kernel.beans.RegistrarBeanWithDefaultBeanClass,tigase.kernel.beans.UnregisterAware,IMucDAO,tigase.stats.ComponentStatisticsProvider,tigase.stats.StatisticsProviderIfc
@Bean(name="muc-dao", parent=MUCComponent.class, active=true) public class MucDAOMDBean extends tigase.db.beans.MDRepositoryBeanWithStatistics<IMucDAO> implements IMucDAOCreated by andrzej on 16.10.2016.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMucDAOMDBean.MucDAOProviderConfigBean
-
Constructor Summary
Constructors Constructor Description MucDAOMDBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbelongsTo(java.lang.Class<? extends tigase.server.BasicComponent> component)java.lang.ObjectcreateRoom(RoomWithId room)voiddestroyRoom(tigase.xmpp.jid.BareJID roomJID)protected java.lang.Class<? extends IMucDAO>findClassForDataSource(tigase.db.DataSource dataSource)java.util.Map<tigase.xmpp.jid.BareJID,RoomAffiliation>getAffiliations(RoomWithId room)java.lang.Class<?>getDefaultBeanClass()protected IMucDAOgetRepository(java.lang.String domain)RoomWithIdgetRoom(tigase.xmpp.jid.BareJID roomJID)java.lang.StringgetRoomAvatar(RoomWithId room)java.util.List<tigase.xmpp.jid.BareJID>getRoomsJIDList()voidsetAffiliation(RoomWithId room, tigase.xmpp.jid.BareJID jid, RoomAffiliation affiliation)voidsetDataSource(tigase.db.DataSource dataSource)voidsetSubject(RoomWithId room, java.lang.String subject, java.lang.String creatorNickname, java.util.Date changeDate)voidupdateRoomAvatar(RoomWithId room, java.lang.String encodedAvatar, java.lang.String hash)voidupdateRoomConfig(RoomConfig roomConfig)-
Methods inherited from class tigase.db.beans.MDRepositoryBeanWithStatistics
everyHour, everyMinute, everySecond, getRepositories, getStatistics, setStatisticsEnabled, updateDataSourceAware, wrapInProxy
-
-
-
-
Method Detail
-
belongsTo
public boolean belongsTo(java.lang.Class<? extends tigase.server.BasicComponent> component)
- Specified by:
belongsToin interfacetigase.stats.ComponentStatisticsProvider
-
createRoom
public java.lang.Object createRoom(RoomWithId room) throws tigase.component.exceptions.RepositoryException
- Specified by:
createRoomin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
destroyRoom
public void destroyRoom(tigase.xmpp.jid.BareJID roomJID) throws tigase.component.exceptions.RepositoryException- Specified by:
destroyRoomin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
getAffiliations
public java.util.Map<tigase.xmpp.jid.BareJID,RoomAffiliation> getAffiliations(RoomWithId room) throws tigase.component.exceptions.RepositoryException
- Specified by:
getAffiliationsin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
getRoom
public RoomWithId getRoom(tigase.xmpp.jid.BareJID roomJID) throws tigase.component.exceptions.RepositoryException
-
getRoomsJIDList
public java.util.List<tigase.xmpp.jid.BareJID> getRoomsJIDList() throws tigase.component.exceptions.RepositoryException- Specified by:
getRoomsJIDListin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
setAffiliation
public void setAffiliation(RoomWithId room, tigase.xmpp.jid.BareJID jid, RoomAffiliation affiliation) throws tigase.component.exceptions.RepositoryException
- Specified by:
setAffiliationin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
updateRoomAvatar
public void updateRoomAvatar(RoomWithId room, java.lang.String encodedAvatar, java.lang.String hash) throws tigase.component.exceptions.RepositoryException
- Specified by:
updateRoomAvatarin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
getRoomAvatar
public java.lang.String getRoomAvatar(RoomWithId room) throws tigase.component.exceptions.RepositoryException
- Specified by:
getRoomAvatarin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
setSubject
public void setSubject(RoomWithId room, java.lang.String subject, java.lang.String creatorNickname, java.util.Date changeDate) throws tigase.component.exceptions.RepositoryException
- Specified by:
setSubjectin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
updateRoomConfig
public void updateRoomConfig(RoomConfig roomConfig) throws tigase.component.exceptions.RepositoryException
- Specified by:
updateRoomConfigin interfaceIMucDAO- Throws:
tigase.component.exceptions.RepositoryException
-
getDefaultBeanClass
public java.lang.Class<?> getDefaultBeanClass()
- Specified by:
getDefaultBeanClassin interfacetigase.kernel.beans.RegistrarBeanWithDefaultBeanClass
-
setDataSource
public void setDataSource(tigase.db.DataSource dataSource)
- Specified by:
setDataSourcein interfacetigase.db.DataSourceAware
-
getRepository
protected IMucDAO getRepository(java.lang.String domain)
- Overrides:
getRepositoryin classtigase.db.beans.MDRepositoryBeanWithStatistics<IMucDAO>
-
-