Uses of Enum Class
org.jivesoftware.openfire.muc.Affiliation
Packages that use Affiliation
Package
Description
Implementation of Multi-User Chat (XEP-0045).
Implementation of Multi-User Chat (XEP-0045).
-
Uses of Affiliation in org.jivesoftware.openfire.muc
Methods in org.jivesoftware.openfire.muc that return AffiliationModifier and TypeMethodDescriptionMUCOccupant.getAffiliation()Obtain the affiliation state of the user, which is a long-lived association or connection with a room.MUCRoom.getAffiliation(org.xmpp.packet.JID userAddress) Returns the affiliation state of the user in the room.static AffiliationAffiliation.valueOf(int value) Returns the affiliation associated with the specified value.static AffiliationReturns the enum constant of this class with the specified name.static Affiliation[]Affiliation.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.jivesoftware.openfire.muc with parameters of type AffiliationModifier and TypeMethodDescriptionList<org.xmpp.packet.Presence>MUCRoom.addAdmin(org.xmpp.packet.JID targetUserAddress, Affiliation actorAffiliation) Adds a new user to the list of admins.List<org.xmpp.packet.Presence>MUCRoom.addAdmins(List<org.xmpp.packet.JID> targetUserAddresses, Affiliation actorAffiliation) Adds a list of users to the list of admins.List<org.xmpp.packet.Presence>MUCRoom.addMember(org.xmpp.packet.JID targetUserAddress, String nickname, Affiliation actorAffiliation) Adds a new user to the list of members.List<org.xmpp.packet.Presence>MUCRoom.addModerator(org.xmpp.packet.JID targetUserAddress, Affiliation actorAffiliation) Changes the role of the user within the room to moderator.List<org.xmpp.packet.Presence>MUCRoom.addNone(org.xmpp.packet.JID targetUserAddress, Affiliation actorAffiliation) Removes the user from all the other affiliation list thus giving the user a NONE affiliation.List<org.xmpp.packet.Presence>MUCRoom.addOutcast(org.xmpp.packet.JID targetUserAddress, String reason, org.xmpp.packet.JID actorUserAddress, Affiliation actorAffiliation, Role actorRole) Adds a new user to the list of outcast users.List<org.xmpp.packet.Presence>MUCRoom.addOwner(org.xmpp.packet.JID targetUserAddress, Affiliation actorAffiliation) Adds a new user to the list of owners.List<org.xmpp.packet.Presence>MUCRoom.addOwners(List<org.xmpp.packet.JID> targetUserAddresses, Affiliation actorAffiliation) Adds a list of users to the list of owners.List<org.xmpp.packet.Presence>MUCRoom.addParticipant(org.xmpp.packet.JID targetUserAddress, String reason, Affiliation actorAffiliation, Role actorRole) Changes the role of the user within the room to participant.List<org.xmpp.packet.Presence>MUCRoom.addVisitor(org.xmpp.packet.JID targetUserAddress, Affiliation actorAffiliation, Role actorRole) Changes the role of the user within the room to visitor.List<org.xmpp.packet.Presence>MUCRoom.kickOccupant(org.xmpp.packet.JID userAddress, Affiliation actorAffiliation, Role actorRole, org.xmpp.packet.JID actorJID, String actorNickname, String reason) Kicks a user from the room.List<org.xmpp.packet.Presence>MUCRoom.kickOccupant(org.xmpp.packet.JID userAddress, Affiliation actorAffiliation, Role actorRole, org.xmpp.packet.JID actorJID, String actorNickname, String reason, int status) Kicks a user from the room.voidMUCRoom.sendInvitation(org.xmpp.packet.JID to, String reason, Affiliation senderAffiliation, org.xmpp.packet.JID senderUserAddress, List<org.dom4j.Element> extensions) Sends an invitation to a user.List<org.xmpp.packet.Presence>MUCRoom.setMembersOnly(boolean membersOnly, Affiliation actorAffiliation, org.xmpp.packet.JID actorJid) Sets if the room requires an invitation to enter.voidMUCRoom.unlock(Affiliation actorAffiliation) Unlocks the room so that users can join the room.Constructors in org.jivesoftware.openfire.muc with parameters of type AffiliationModifierConstructorDescriptionMUCOccupant(MUCRoom chatroom, String nickname, Role role, Affiliation affiliation, org.xmpp.packet.JID userJid, org.xmpp.packet.Presence presence) Create a new instance. -
Uses of Affiliation in org.jivesoftware.openfire.muc.spi
Methods in org.jivesoftware.openfire.muc.spi with parameters of type AffiliationModifier and TypeMethodDescriptionstatic voidMUCPersistenceManager.removeAffiliationFromDB(MUCRoom room, org.xmpp.packet.JID jid, Affiliation oldAffiliation) Removes the affiliation of the user from the DB if the room is persistent.static voidMUCPersistenceManager.saveAffiliationToDB(MUCRoom room, org.xmpp.packet.JID jid, String nickname, Affiliation newAffiliation, Affiliation oldAffiliation) Update the DB with the new affiliation of the user in the room.