Class MUCItem

  • All Implemented Interfaces:
    Element, NamedElement

    public class MUCItem
    extends java.lang.Object
    implements NamedElement
    Item child that holds information about roles, affiliation, jids and nicks.
    • Method Detail

      • getActor

        public Jid getActor()
        Returns the actor (JID of an occupant in the room) that was kicked or banned.
        Returns:
        the JID of an occupant in the room that was kicked or banned.
      • getActorNick

        public Resourcepart getActorNick()
        Get the nickname of the actor.
        Returns:
        the nickname of the actor.
        Since:
        4.2
      • getReason

        public java.lang.String getReason()
        Returns the reason for the item child. The reason is optional and could be used to explain the reason why a user (occupant) was kicked or banned.
        Returns:
        the reason for the item child.
      • getAffiliation

        public MUCAffiliation getAffiliation()
        Returns the occupant's affiliation to the room. The affiliation is a semi-permanent association or connection with a room. The possible affiliations are "owner", "admin", "member", and "outcast" (naturally it is also possible to have no affiliation). An affiliation lasts across a user's visits to a room.
        Returns:
        the actor's affiliation to the room
      • getJid

        public Jid getJid()
        Returns the <room@service/nick> by which an occupant is identified within the context of a room. If the room is non-anonymous, the JID will be included in the item.
        Returns:
        the room JID by which an occupant is identified within the room.
      • getNick

        public Resourcepart getNick()
        Returns the new nickname of an occupant that is changing his/her nickname. The new nickname is sent as part of the unavailable presence.
        Returns:
        the new nickname of an occupant that is changing his/her nickname.
      • getRole

        public MUCRole getRole()
        Returns the temporary position or privilege level of an occupant within a room. The possible roles are "moderator", "participant", "visitor" and "none" (it is also possible to have no defined role). A role lasts only for the duration of an occupant's visit to a room.
        Returns:
        the privilege level of an occupant within a room.