Class ModeratorModule

java.lang.Object
tigase.component.modules.AbstractModule
tigase.muc.modules.AbstractMucModule
tigase.muc.modules.ModeratorModule
All Implemented Interfaces:
tigase.component.modules.Module

@Bean(name="admin", active=true) public class ModeratorModule extends AbstractMucModule
Author:
bmalkow
  • Field Details

  • Constructor Details

    • ModeratorModule

      public ModeratorModule()
  • Method Details

    • getAffiliation

      protected static Affiliation getAffiliation(tigase.xml.Element item) throws MUCException
      Throws:
      MUCException
    • getReason

      protected static String getReason(tigase.xml.Element item)
    • getRole

      protected static Role getRole(tigase.xml.Element item)
    • getFeatures

      public String[] getFeatures()
    • getModuleCriteria

      public tigase.criteria.Criteria getModuleCriteria()
    • kickWithoutBroadcast

      public void kickWithoutBroadcast(Room room, String occupantNick, String reason, String actor) throws tigase.util.stringprep.TigaseStringprepException
      Kicking user without sending presence to all other occupant. Used only to inform occupants that component is stopping.
      Throws:
      tigase.util.stringprep.TigaseStringprepException
    • process

      public void process(tigase.server.Packet element) throws MUCException
      Throws:
      MUCException
    • checkItem

      protected void checkItem(Room room, tigase.xml.Element item, tigase.xmpp.jid.JID senderJid, Affiliation senderaAffiliation, Role senderRole) throws MUCException, tigase.util.stringprep.TigaseStringprepException
      Throws:
      MUCException
      tigase.util.stringprep.TigaseStringprepException
    • makePresence

      protected tigase.server.Packet makePresence(tigase.xmpp.jid.JID destinationJid, tigase.xmpp.jid.BareJID roomJID, Room room, tigase.xmpp.jid.BareJID occupantJid, boolean unavailable, Affiliation affiliation, Role role, String nick, String reason, String actor, String... codes) throws tigase.util.stringprep.TigaseStringprepException
      Throws:
      tigase.util.stringprep.TigaseStringprepException
    • processGet

      protected void processGet(tigase.server.Packet element) throws tigase.component.exceptions.RepositoryException, MUCException
      Throws:
      tigase.component.exceptions.RepositoryException
      MUCException
    • processMatchingItems

      protected void processMatchingItems(tigase.server.Packet iq, Room room, Affiliation filterAffiliation, Role filterRole, Collection<tigase.muc.modules.ModeratorModule.Item> resultItems) throws tigase.component.exceptions.RepositoryException, MUCException
      Throws:
      tigase.component.exceptions.RepositoryException
      MUCException
    • processSet

      protected void processSet(tigase.server.Packet element) throws tigase.component.exceptions.RepositoryException, MUCException
      Throws:
      tigase.component.exceptions.RepositoryException
      MUCException
    • processSetAffiliation

      protected void processSetAffiliation(Room room, tigase.xml.Element item, Affiliation newAffiliation, Role newRole, String reason, String actor) throws tigase.component.exceptions.RepositoryException, tigase.util.stringprep.TigaseStringprepException
      Throws:
      tigase.component.exceptions.RepositoryException
      tigase.util.stringprep.TigaseStringprepException
    • processSetRole

      protected void processSetRole(Room room, String occupantNick, Role newRole, String reason, String actor) throws tigase.util.stringprep.TigaseStringprepException
      Throws:
      tigase.util.stringprep.TigaseStringprepException
    • sendInvitation

      protected void sendInvitation(Room room, tigase.xmpp.jid.BareJID occupantBareJid, String actor) throws tigase.util.stringprep.TigaseStringprepException
      Throws:
      tigase.util.stringprep.TigaseStringprepException