Package tigase.mix

Class Affiliations

java.lang.Object
tigase.mix.Affiliations
All Implemented Interfaces:
tigase.pubsub.repository.cached.IAffiliationsCached, tigase.pubsub.repository.IAffiliations

public class Affiliations extends Object implements tigase.pubsub.repository.cached.IAffiliationsCached
  • Constructor Details

    • Affiliations

      public Affiliations(tigase.xmpp.jid.BareJID serviceJID, String nodeName, IMixRepository mixRepository)
  • Method Details

    • isChanged

      public boolean isChanged()
      Specified by:
      isChanged in interface tigase.pubsub.repository.cached.IAffiliationsCached
    • getChanged

      public Map<tigase.xmpp.jid.BareJID,tigase.pubsub.repository.stateless.UsersAffiliation> getChanged()
      Specified by:
      getChanged in interface tigase.pubsub.repository.cached.IAffiliationsCached
    • resetChangedFlag

      public void resetChangedFlag()
      Specified by:
      resetChangedFlag in interface tigase.pubsub.repository.cached.IAffiliationsCached
    • merge

      public void merge()
      Specified by:
      merge in interface tigase.pubsub.repository.cached.IAffiliationsCached
    • addAffiliation

      public void addAffiliation(tigase.xmpp.jid.BareJID jid, tigase.pubsub.Affiliation affiliation)
      Specified by:
      addAffiliation in interface tigase.pubsub.repository.IAffiliations
    • changeAffiliation

      public void changeAffiliation(tigase.xmpp.jid.BareJID jid, tigase.pubsub.Affiliation affiliation)
      Specified by:
      changeAffiliation in interface tigase.pubsub.repository.IAffiliations
    • getAffiliations

      public tigase.pubsub.repository.stateless.UsersAffiliation[] getAffiliations()
      Specified by:
      getAffiliations in interface tigase.pubsub.repository.IAffiliations
    • getSubscriberAffiliation

      public tigase.pubsub.repository.stateless.UsersAffiliation getSubscriberAffiliation(tigase.xmpp.jid.BareJID jid)
      Specified by:
      getSubscriberAffiliation in interface tigase.pubsub.repository.IAffiliations
    • isParticipant

      protected boolean isParticipant(tigase.xmpp.jid.BareJID jid) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • isSubscribed

      protected boolean isSubscribed(tigase.xmpp.jid.BareJID jid) throws tigase.component.exceptions.RepositoryException
      Throws:
      tigase.component.exceptions.RepositoryException
    • size

      public int size()
      Specified by:
      size in interface tigase.pubsub.repository.IAffiliations