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 Summary
ConstructorsConstructorDescriptionAffiliations(tigase.xmpp.jid.BareJID serviceJID, String nodeName, IMixRepository mixRepository) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAffiliation(tigase.xmpp.jid.BareJID jid, tigase.pubsub.Affiliation affiliation) voidchangeAffiliation(tigase.xmpp.jid.BareJID jid, tigase.pubsub.Affiliation affiliation) tigase.pubsub.repository.stateless.UsersAffiliation[]Map<tigase.xmpp.jid.BareJID,tigase.pubsub.repository.stateless.UsersAffiliation> tigase.pubsub.repository.stateless.UsersAffiliationgetSubscriberAffiliation(tigase.xmpp.jid.BareJID jid) booleanprotected booleanisParticipant(tigase.xmpp.jid.BareJID jid) protected booleanisSubscribed(tigase.xmpp.jid.BareJID jid) voidmerge()voidintsize()
-
Constructor Details
-
Affiliations
public Affiliations(tigase.xmpp.jid.BareJID serviceJID, String nodeName, IMixRepository mixRepository)
-
-
Method Details
-
isChanged
public boolean isChanged()- Specified by:
isChangedin interfacetigase.pubsub.repository.cached.IAffiliationsCached
-
getChanged
public Map<tigase.xmpp.jid.BareJID,tigase.pubsub.repository.stateless.UsersAffiliation> getChanged()- Specified by:
getChangedin interfacetigase.pubsub.repository.cached.IAffiliationsCached
-
resetChangedFlag
public void resetChangedFlag()- Specified by:
resetChangedFlagin interfacetigase.pubsub.repository.cached.IAffiliationsCached
-
merge
public void merge()- Specified by:
mergein interfacetigase.pubsub.repository.cached.IAffiliationsCached
-
addAffiliation
public void addAffiliation(tigase.xmpp.jid.BareJID jid, tigase.pubsub.Affiliation affiliation) - Specified by:
addAffiliationin interfacetigase.pubsub.repository.IAffiliations
-
changeAffiliation
public void changeAffiliation(tigase.xmpp.jid.BareJID jid, tigase.pubsub.Affiliation affiliation) - Specified by:
changeAffiliationin interfacetigase.pubsub.repository.IAffiliations
-
getAffiliations
public tigase.pubsub.repository.stateless.UsersAffiliation[] getAffiliations()- Specified by:
getAffiliationsin interfacetigase.pubsub.repository.IAffiliations
-
getSubscriberAffiliation
public tigase.pubsub.repository.stateless.UsersAffiliation getSubscriberAffiliation(tigase.xmpp.jid.BareJID jid) - Specified by:
getSubscriberAffiliationin interfacetigase.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:
sizein interfacetigase.pubsub.repository.IAffiliations
-