public final class MultiUserChatLightManager extends Manager
Modifier and Type | Method and Description |
---|---|
void |
blockRoom(org.jxmpp.jid.DomainBareJid mucLightService,
org.jxmpp.jid.Jid roomJid)
Block a room.
|
void |
blockRooms(org.jxmpp.jid.DomainBareJid mucLightService,
List<org.jxmpp.jid.Jid> roomsJids)
Block rooms.
|
void |
blockUser(org.jxmpp.jid.DomainBareJid mucLightService,
org.jxmpp.jid.Jid userJid)
Block a user.
|
void |
blockUsers(org.jxmpp.jid.DomainBareJid mucLightService,
List<org.jxmpp.jid.Jid> usersJids)
Block users.
|
static MultiUserChatLightManager |
getInstanceFor(XMPPConnection connection)
Get a instance of a MUC Light manager for the given connection.
|
List<org.jxmpp.jid.DomainBareJid> |
getLocalServices()
Returns a collection with the XMPP addresses of the MUC Light services.
|
MultiUserChatLight |
getMultiUserChatLight(org.jxmpp.jid.EntityBareJid jid)
Obtain the MUC Light.
|
List<org.jxmpp.jid.Jid> |
getOccupiedRooms(org.jxmpp.jid.DomainBareJid mucLightService)
Returns a List of the rooms the user occupies.
|
List<org.jxmpp.jid.Jid> |
getRoomsBlocked(org.jxmpp.jid.DomainBareJid mucLightService)
Get rooms blocked.
|
List<org.jxmpp.jid.Jid> |
getUsersAndRoomsBlocked(org.jxmpp.jid.DomainBareJid mucLightService)
Get users and rooms blocked.
|
List<org.jxmpp.jid.Jid> |
getUsersBlocked(org.jxmpp.jid.DomainBareJid mucLightService)
Get users blocked.
|
boolean |
isFeatureSupported(org.jxmpp.jid.DomainBareJid mucLightService)
Returns true if Multi-User Chat Light feature is supported by the server.
|
void |
unblockRoom(org.jxmpp.jid.DomainBareJid mucLightService,
org.jxmpp.jid.Jid roomJid)
Unblock a room.
|
void |
unblockRooms(org.jxmpp.jid.DomainBareJid mucLightService,
List<org.jxmpp.jid.Jid> roomsJids)
Unblock rooms.
|
void |
unblockUser(org.jxmpp.jid.DomainBareJid mucLightService,
org.jxmpp.jid.Jid userJid)
Unblock a user.
|
void |
unblockUsers(org.jxmpp.jid.DomainBareJid mucLightService,
List<org.jxmpp.jid.Jid> usersJids)
Unblock users.
|
connection, getAuthenticatedConnectionOrThrow, schedule
public static MultiUserChatLightManager getInstanceFor(XMPPConnection connection)
connection
- public MultiUserChatLight getMultiUserChatLight(org.jxmpp.jid.EntityBareJid jid)
jid
- public boolean isFeatureSupported(org.jxmpp.jid.DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- SmackException.NotConnectedException
XMPPException.XMPPErrorException
SmackException.NoResponseException
InterruptedException
public List<org.jxmpp.jid.Jid> getOccupiedRooms(org.jxmpp.jid.DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- XMPPException.XMPPErrorException
SmackException.NoResponseException
SmackException.NotConnectedException
InterruptedException
public List<org.jxmpp.jid.DomainBareJid> getLocalServices() throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
XMPPException.XMPPErrorException
SmackException.NoResponseException
SmackException.NotConnectedException
InterruptedException
public List<org.jxmpp.jid.Jid> getUsersAndRoomsBlocked(org.jxmpp.jid.DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public List<org.jxmpp.jid.Jid> getRoomsBlocked(org.jxmpp.jid.DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public List<org.jxmpp.jid.Jid> getUsersBlocked(org.jxmpp.jid.DomainBareJid mucLightService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void blockRoom(org.jxmpp.jid.DomainBareJid mucLightService, org.jxmpp.jid.Jid roomJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- roomJid
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void blockRooms(org.jxmpp.jid.DomainBareJid mucLightService, List<org.jxmpp.jid.Jid> roomsJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- roomsJids
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void blockUser(org.jxmpp.jid.DomainBareJid mucLightService, org.jxmpp.jid.Jid userJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- userJid
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void blockUsers(org.jxmpp.jid.DomainBareJid mucLightService, List<org.jxmpp.jid.Jid> usersJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- usersJids
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void unblockRoom(org.jxmpp.jid.DomainBareJid mucLightService, org.jxmpp.jid.Jid roomJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- roomJid
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void unblockRooms(org.jxmpp.jid.DomainBareJid mucLightService, List<org.jxmpp.jid.Jid> roomsJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- roomsJids
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void unblockUser(org.jxmpp.jid.DomainBareJid mucLightService, org.jxmpp.jid.Jid userJid) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- userJid
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException
public void unblockUsers(org.jxmpp.jid.DomainBareJid mucLightService, List<org.jxmpp.jid.Jid> usersJids) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, InterruptedException
mucLightService
- usersJids
- SmackException.NoResponseException
XMPPException.XMPPErrorException
SmackException.NotConnectedException
InterruptedException