001/** 002 * 003 * Copyright 2003-2007 Jive Software. 004 * 005 * Licensed under the Apache License, Version 2.0 (the "License"); 006 * you may not use this file except in compliance with the License. 007 * You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017 018package org.jivesoftware.smackx.muc; 019 020import org.jxmpp.jid.EntityFullJid; 021import org.jxmpp.jid.Jid; 022import org.jxmpp.jid.parts.Resourcepart; 023 024/** 025 * Default implementation of the ParticipantStatusListener interface.<p> 026 * 027 * This class does not provide any behavior by default. It just avoids having 028 * to implement all the inteface methods if the user is only interested in implementing 029 * some of the methods. 030 * 031 * @author Gaston Dombiak 032 */ 033public class DefaultParticipantStatusListener implements ParticipantStatusListener { 034 035 @Override 036 public void joined(EntityFullJid participant) { 037 } 038 039 @Override 040 public void left(EntityFullJid participant) { 041 } 042 043 @Override 044 public void kicked(EntityFullJid participant, Jid actor, String reason) { 045 } 046 047 @Override 048 public void voiceGranted(EntityFullJid participant) { 049 } 050 051 @Override 052 public void voiceRevoked(EntityFullJid participant) { 053 } 054 055 @Override 056 public void banned(EntityFullJid participant, Jid actor, String reason) { 057 } 058 059 @Override 060 public void membershipGranted(EntityFullJid participant) { 061 } 062 063 @Override 064 public void membershipRevoked(EntityFullJid participant) { 065 } 066 067 @Override 068 public void moderatorGranted(EntityFullJid participant) { 069 } 070 071 @Override 072 public void moderatorRevoked(EntityFullJid participant) { 073 } 074 075 @Override 076 public void ownershipGranted(EntityFullJid participant) { 077 } 078 079 @Override 080 public void ownershipRevoked(EntityFullJid participant) { 081 } 082 083 @Override 084 public void adminGranted(EntityFullJid participant) { 085 } 086 087 @Override 088 public void adminRevoked(EntityFullJid participant) { 089 } 090 091 @Override 092 public void nicknameChanged(EntityFullJid participant, Resourcepart newNickname) { 093 } 094 095}