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 TypeMethodDescriptionvoid
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[]
Map<tigase.xmpp.jid.BareJID,
tigase.pubsub.repository.stateless.UsersAffiliation> tigase.pubsub.repository.stateless.UsersAffiliation
getSubscriberAffiliation
(tigase.xmpp.jid.BareJID jid) boolean
protected boolean
isParticipant
(tigase.xmpp.jid.BareJID jid) protected boolean
isSubscribed
(tigase.xmpp.jid.BareJID jid) void
merge()
void
int
size()
-
Constructor Details
-
Affiliations
public Affiliations(tigase.xmpp.jid.BareJID serviceJID, String nodeName, IMixRepository mixRepository)
-
-
Method Details
-
isChanged
public boolean isChanged()- Specified by:
isChanged
in interfacetigase.pubsub.repository.cached.IAffiliationsCached
-
getChanged
public Map<tigase.xmpp.jid.BareJID,tigase.pubsub.repository.stateless.UsersAffiliation> getChanged()- Specified by:
getChanged
in interfacetigase.pubsub.repository.cached.IAffiliationsCached
-
resetChangedFlag
public void resetChangedFlag()- Specified by:
resetChangedFlag
in interfacetigase.pubsub.repository.cached.IAffiliationsCached
-
merge
public void merge()- Specified by:
merge
in interfacetigase.pubsub.repository.cached.IAffiliationsCached
-
addAffiliation
public void addAffiliation(tigase.xmpp.jid.BareJID jid, tigase.pubsub.Affiliation affiliation) - Specified by:
addAffiliation
in interfacetigase.pubsub.repository.IAffiliations
-
changeAffiliation
public void changeAffiliation(tigase.xmpp.jid.BareJID jid, tigase.pubsub.Affiliation affiliation) - Specified by:
changeAffiliation
in interfacetigase.pubsub.repository.IAffiliations
-
getAffiliations
public tigase.pubsub.repository.stateless.UsersAffiliation[] getAffiliations()- Specified by:
getAffiliations
in interfacetigase.pubsub.repository.IAffiliations
-
getSubscriberAffiliation
public tigase.pubsub.repository.stateless.UsersAffiliation getSubscriberAffiliation(tigase.xmpp.jid.BareJID jid) - Specified by:
getSubscriberAffiliation
in 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:
size
in interfacetigase.pubsub.repository.IAffiliations
-