Home | History | Annotate | Download | only in muc

Lines Matching refs:nickname

89     private String nickname = null;
308 * under the specified nickname as soon as the room has been created.<p>
319 * @param nickname the nickname to use.
324 public synchronized void create(String nickname) throws XMPPException {
325 if (nickname == null || nickname.equals("")) {
326 throw new IllegalArgumentException("Nickname must not be null or blank.");
329 // nickname.
336 joinPresence.setTo(room + "/" + nickname);
347 nickname),
365 this.nickname = nickname;
383 * Joins the chat room using the specified nickname. If already joined
384 * using another nickname, this method will first leave the room and then
385 * re-join using the new nickname. The default timeout of Smack for a reply
389 * @param nickname the nickname to use.
395 * 409 error can occur if someone is already in the group chat with the same nickname.
397 public void join(String nickname) throws XMPPException {
398 join(nickname, null, null, SmackConfiguration.getPacketReplyTimeout());
402 * Joins the chat room using the specified nickname and password. If already joined
403 * using another nickname, this method will first leave the room and then
404 * re-join using the new nickname. The default timeout of Smack for a reply
411 * @param nickname the nickname to use.
418 * 409 error can occur if someone is already in the group chat with the same nickname.
420 public void join(String nickname, String password) throws XMPPException {
421 join(nickname, password, null, SmackConfiguration.getPacketReplyTimeout());
425 * Joins the chat room using the specified nickname and password. If already joined
426 * using another nickname, this method will first leave the room and then
427 * re-join using the new nickname.<p>
438 * @param nickname the nickname to use.
447 * 409 error can occur if someone is already in the group chat with the same nickname.
450 String nickname,
455 if (nickname == null || nickname.equals("")) {
456 throw new IllegalArgumentException("Nickname must not be null or blank.");
459 // nickname.
464 // field is in the form "roomName@service/nickname"
466 joinPresence.setTo(room + "/" + nickname);
485 new FromMatchesFilter(room + "/" + nickname),
509 this.nickname = nickname;
533 // field is in the form "roomName@service/nickname"
535 leavePresence.setTo(room + "/" + nickname);
543 nickname = null;
652 * If the desired room nickname is already reserved for that room, the room will return a
658 * 409 error can occur if the desired room nickname is already reserved for that room;
722 nickname = null;
937 * Returns the reserved room nickname for the user in the room. A user may have a reserved
938 * nickname, for example through explicit room registration or database integration. In such
939 * cases it may be desirable for the user to discover the reserved nickname before attempting
942 * @return the reserved room nickname or <tt>null</tt> if none.
950 // Look for an Identity that holds the reserved nickname and return its name
956 // If no Identity was found then the user does not have a reserved room nickname
966 * Returns the nickname that was used to join the room, or <tt>null</tt> if not
969 * @return the nickname currently being used.
972 return nickname;
976 * Changes the occupant's nickname to a new nickname within the room. Each room occupant
977 * will receive two presence packets. One of type "unavailable" for the old nickname and one
978 * indicating availability for the new nickname. The unavailable presence will contain the new
979 * nickname and an appropriate status code (namely 303) as extended presence information. The
980 * status code 303 indicates that the occupant is changing his/her nickname.
982 * @param nickname the new nickname within the room.
983 * @throws XMPPException if the new nickname is already in use by another occupant.
985 public void changeNickname(String nickname) throws XMPPException {
986 if (nickname == null || nickname.equals("")) {
987 throw new IllegalArgumentException("Nickname must not be null or blank.");
990 // nickname.
992 throw new IllegalStateException("Must be logged into the room to change nickname.");
994 // We change the nickname by sending a presence packet where the "to"
995 // field is in the form "roomName@service/nickname"
998 joinPresence.setTo(room + "/" + nickname);
1007 new FromMatchesFilter(room + "/" + nickname),
1024 this.nickname = nickname;
1036 if (nickname == null || nickname.equals("")) {
1037 throw new IllegalArgumentException("Nickname must not be null or blank.");
1050 joinPresence.setTo(room + "/" + nickname);
1068 * @param nickname the nickname of the participant or visitor to kick from the room
1076 * 400 error can occur if the provided nickname is not present in the room.
1078 public void kickParticipant(String nickname, String reason) throws XMPPException {
1079 changeRole(nickname, "none", reason);
1091 * 400 error can occur if the provided nickname is not present in the room.
1102 * @param nickname the nickname of the visitor to grant voice in the room (e.g. "john").
1106 * 400 error can occur if the provided nickname is not present in the room.
1108 public void grantVoice(String nickname) throws XMPPException {
1109 changeRole(nickname, "participant", null);
1121 * 400 error can occur if the provided nickname is not present in the room.
1132 * @param nickname the nickname of the participant to revoke voice (e.g. "john").
1136 * 400 error can occur if the provided nickname is not present in the room.
1138 public void revokeVoice(String nickname) throws XMPPException {
1139 changeRole(nickname, "visitor", null);
1242 * @param nickname the nickname of the occupant to grant moderator privileges.
1245 public void grantModerator(String nickname) throws XMPPException {
1246 changeRole(nickname, "moderator", null);
1268 * @param nickname the nickname of the occupant to revoke moderator privileges.
1271 public void revokeModerator(String nickname) throws XMPPException {
1272 changeRole(nickname, "participant", null);
1500 private void changeRole(String nickname, String role, String reason) throws XMPPException {
1506 item.setNick(nickname);
1532 for (String nickname : nicknames) {
1535 item.setNick(nickname);
1574 * Typically, a client would only display the nickname of the occupant. To
1575 * get the nickname from the fully qualified name, use the
1592 * be: roomName@service/nickname (e.g. darkcave@macbeth.shakespeare.lit/thirdwitch).
1606 * be: roomName@service/nickname (e.g. darkcave@macbeth.shakespeare.lit/thirdwitch).
2161 String myRoomJID = room + "/" + nickname;
2492 nickname = null;
2515 nickname = null;
2536 nickname = null;
2540 // A occupant has changed his nickname in the room