public class ChannelManager
extends java.lang.Object
Constructor and Description |
---|
ChannelManager(com.ircclouds.irc.api.IRCApi irc,
com.ircclouds.irc.api.state.IIRCState connectionState,
ProtocolProviderServiceIrcImpl provider,
ClientConfig config,
boolean awayNotifyCapability)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
banParticipant(ChatRoomIrcImpl chatroom,
ChatRoomMemberIrcImpl member,
java.lang.String reason)
Ban chat room member.
|
java.util.Set<java.lang.Character> |
getChannelTypes()
Get a set of channel type indicators.
|
void |
grant(ChatRoomIrcImpl chatRoom,
java.lang.String userAddress,
Mode mode)
Grant user permissions to specified user.
|
void |
invite(java.lang.String memberId,
ChatRoomIrcImpl chatroom)
Issue invite command to IRC server.
|
boolean |
isJoined(ChatRoomIrcImpl chatroom)
Check whether the user has joined a particular chat room.
|
void |
join(ChatRoomIrcImpl chatroom)
Join a particular chat room.
|
void |
join(ChatRoomIrcImpl chatroom,
java.lang.String password)
Join a particular chat room.
|
void |
kickParticipant(ChatRoomIrcImpl chatroom,
ChatRoomMember member,
java.lang.String reason)
Kick channel member.
|
void |
leave(ChatRoomIrcImpl chatroom)
Part from a joined chat room.
|
void |
revoke(ChatRoomIrcImpl chatRoom,
java.lang.String userAddress,
Mode mode)
Revoke user permissions of chat room for user.
|
void |
setSubject(ChatRoomIrcImpl chatroom,
java.lang.String subject)
Set the subject of the specified chat room.
|
public ChannelManager(com.ircclouds.irc.api.IRCApi irc, com.ircclouds.irc.api.state.IIRCState connectionState, ProtocolProviderServiceIrcImpl provider, ClientConfig config, boolean awayNotifyCapability)
irc
- thread-safe IRCApi instanceconnectionState
- the connection stateprovider
- the provider instanceconfig
- client configurationpublic java.util.Set<java.lang.Character> getChannelTypes()
public boolean isJoined(ChatRoomIrcImpl chatroom)
chatroom
- Chat room to check for.public void join(ChatRoomIrcImpl chatroom) throws OperationFailedException
chatroom
- Chat room to join.OperationFailedException
- failed to join the chat roompublic void join(ChatRoomIrcImpl chatroom, java.lang.String password) throws OperationFailedException
chatroom
- The chatroom to join.password
- Optionally, a password that may be required for some
channels.OperationFailedException
- failed to join the chat roompublic void setSubject(ChatRoomIrcImpl chatroom, java.lang.String subject)
chatroom
- The chat room for which to set the subject.subject
- The subject.public void leave(ChatRoomIrcImpl chatroom)
chatroom
- The chat room to part from.public void grant(ChatRoomIrcImpl chatRoom, java.lang.String userAddress, Mode mode)
chatRoom
- chat room to grant permissions foruserAddress
- user to grant permissions tomode
- mode to grantpublic void revoke(ChatRoomIrcImpl chatRoom, java.lang.String userAddress, Mode mode)
chatRoom
- chat roomuserAddress
- usermode
- modepublic void banParticipant(ChatRoomIrcImpl chatroom, ChatRoomMemberIrcImpl member, java.lang.String reason) throws OperationFailedException
chatroom
- chat room to ban frommember
- member to banreason
- reason for banningOperationFailedException
- throws operation failed in case of
trouble.public void kickParticipant(ChatRoomIrcImpl chatroom, ChatRoomMember member, java.lang.String reason)
chatroom
- channel to kick frommember
- member to kickreason
- kick message to deliverpublic void invite(java.lang.String memberId, ChatRoomIrcImpl chatroom)
memberId
- member to invitechatroom
- channel to invite to
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.