Package tigase.mix

Class Affiliations

  • All Implemented Interfaces:
    tigase.pubsub.repository.cached.IAffiliationsCached, tigase.pubsub.repository.IAffiliations

    public class Affiliations
    extends java.lang.Object
    implements tigase.pubsub.repository.cached.IAffiliationsCached
    • Constructor Summary

      Constructors 
      Constructor Description
      Affiliations​(tigase.xmpp.jid.BareJID serviceJID, java.lang.String nodeName, IMixRepository mixRepository)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAffiliation​(tigase.xmpp.jid.BareJID jid, tigase.pubsub.Affiliation affiliation)  
      void changeAffiliation​(tigase.xmpp.jid.BareJID jid, tigase.pubsub.Affiliation affiliation)  
      tigase.pubsub.repository.stateless.UsersAffiliation[] getAffiliations()  
      java.util.Map<tigase.xmpp.jid.BareJID,​tigase.pubsub.repository.stateless.UsersAffiliation> getChanged()  
      tigase.pubsub.repository.stateless.UsersAffiliation getSubscriberAffiliation​(tigase.xmpp.jid.BareJID jid)  
      boolean isChanged()  
      protected boolean isParticipant​(tigase.xmpp.jid.BareJID jid)  
      protected boolean isSubscribed​(tigase.xmpp.jid.BareJID jid)  
      void merge()  
      void resetChangedFlag()  
      int size()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Affiliations

        public Affiliations​(tigase.xmpp.jid.BareJID serviceJID,
                            java.lang.String nodeName,
                            IMixRepository mixRepository)
    • Method Detail

      • isChanged

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

        public java.util.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