Package tigase.mix.model
Class DefaultMixLogic
java.lang.Object
tigase.pubsub.utils.DefaultPubSubLogic
tigase.mix.model.DefaultMixLogic
- All Implemented Interfaces:
MixLogic,tigase.pubsub.utils.PubSubLogic
@Bean(name="logic",
parent=IMixComponent.class,
active=true)
public class DefaultMixLogic
extends tigase.pubsub.utils.DefaultPubSubLogic
implements MixLogic
-
Nested Class Summary
Nested classes/interfaces inherited from interface tigase.pubsub.utils.PubSubLogic
tigase.pubsub.utils.PubSubLogic.Action -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckNodeConfig(tigase.pubsub.AbstractNodeConfig nodeConfig) voidcheckPermission(tigase.xmpp.jid.BareJID serviceJid, String nodeName, tigase.xmpp.jid.JID senderJid, tigase.pubsub.utils.PubSubLogic.Action action) voidcheckPermission(tigase.xmpp.jid.BareJID channel, tigase.xmpp.jid.BareJID senderJid, MixAction action) voidgenerateAffiliationChangesNotifications(tigase.xmpp.jid.BareJID channelJid, ChannelConfiguration oldConfig, ChannelConfiguration newConfig, Consumer<tigase.server.Packet> packetConsumer) protected voidgenerateAffiliationChangesNotificationsForNodeUpdateRights(tigase.xmpp.jid.BareJID channelJID, ChannelConfiguration configuration, ChannelNodePermission oldPermission, ChannelNodePermission newPermission, String node, Consumer<tigase.server.Packet> packetConsumer) protected voidgenerateAffiliationNotifications(tigase.xmpp.jid.BareJID channelJID, String node, Set<tigase.xmpp.jid.BareJID> changed, Consumer<tigase.server.Packet> packetConsumer) generateParticipantId(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.BareJID participantRealJID) generateTempParticipantId(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.JID participantRealJID) booleanisChannelCreationAllowed(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.BareJID senderJID) booleanisMAMEnabled(tigase.xmpp.jid.BareJID serviceJid, String node) booleanvalidateItemId(tigase.xmpp.jid.BareJID toJid, String node, String id) Methods inherited from class tigase.pubsub.utils.DefaultPubSubLogic
getActiveSubscribers, getPubSubConfig, getRepository, hasSenderSubscription, isSenderInRosterGroup, isServiceJidPEP, prepareNotificationMessage, subscribersOfNotificationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.pubsub.utils.PubSubLogic
hasSenderSubscription, isSenderInRosterGroup, isServiceJidPEP, prepareNotificationMessage, subscribersOfNotifications
-
Constructor Details
-
DefaultMixLogic
public DefaultMixLogic()
-
-
Method Details
-
isServiceAutoCreated
public boolean isServiceAutoCreated()- Specified by:
isServiceAutoCreatedin interfacetigase.pubsub.utils.PubSubLogic- Overrides:
isServiceAutoCreatedin classtigase.pubsub.utils.DefaultPubSubLogic
-
generateParticipantId
public String generateParticipantId(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.BareJID participantRealJID) throws tigase.component.exceptions.RepositoryException - Specified by:
generateParticipantIdin interfaceMixLogic- Throws:
tigase.component.exceptions.RepositoryException
-
generateTempParticipantId
public String generateTempParticipantId(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.JID participantRealJID) throws tigase.component.exceptions.RepositoryException - Specified by:
generateTempParticipantIdin interfaceMixLogic- Throws:
tigase.component.exceptions.RepositoryException
-
checkNodeConfig
public void checkNodeConfig(tigase.pubsub.AbstractNodeConfig nodeConfig) throws tigase.pubsub.exceptions.PubSubException - Specified by:
checkNodeConfigin interfacetigase.pubsub.utils.PubSubLogic- Overrides:
checkNodeConfigin classtigase.pubsub.utils.DefaultPubSubLogic- Throws:
tigase.pubsub.exceptions.PubSubException
-
checkPermission
public void checkPermission(tigase.xmpp.jid.BareJID channel, tigase.xmpp.jid.BareJID senderJid, MixAction action) throws tigase.pubsub.exceptions.PubSubException, tigase.component.exceptions.RepositoryException - Specified by:
checkPermissionin interfaceMixLogic- Throws:
tigase.pubsub.exceptions.PubSubExceptiontigase.component.exceptions.RepositoryException
-
checkPermission
public void checkPermission(tigase.xmpp.jid.BareJID serviceJid, String nodeName, tigase.xmpp.jid.JID senderJid, tigase.pubsub.utils.PubSubLogic.Action action) throws tigase.pubsub.exceptions.PubSubException, tigase.component.exceptions.RepositoryException - Specified by:
checkPermissionin interfacetigase.pubsub.utils.PubSubLogic- Overrides:
checkPermissionin classtigase.pubsub.utils.DefaultPubSubLogic- Throws:
tigase.pubsub.exceptions.PubSubExceptiontigase.component.exceptions.RepositoryException
-
isChannelCreationAllowed
public boolean isChannelCreationAllowed(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.BareJID senderJID) - Specified by:
isChannelCreationAllowedin interfaceMixLogic
-
isMAMEnabled
public boolean isMAMEnabled(tigase.xmpp.jid.BareJID serviceJid, String node) throws tigase.component.exceptions.RepositoryException - Specified by:
isMAMEnabledin interfacetigase.pubsub.utils.PubSubLogic- Overrides:
isMAMEnabledin classtigase.pubsub.utils.DefaultPubSubLogic- Throws:
tigase.component.exceptions.RepositoryException
-
validateItemId
- Specified by:
validateItemIdin interfacetigase.pubsub.utils.PubSubLogic- Overrides:
validateItemIdin classtigase.pubsub.utils.DefaultPubSubLogic
-
generateAffiliationChangesNotifications
public void generateAffiliationChangesNotifications(tigase.xmpp.jid.BareJID channelJid, ChannelConfiguration oldConfig, ChannelConfiguration newConfig, Consumer<tigase.server.Packet> packetConsumer) - Specified by:
generateAffiliationChangesNotificationsin interfaceMixLogic
-
generateAffiliationChangesNotificationsForNodeUpdateRights
protected void generateAffiliationChangesNotificationsForNodeUpdateRights(tigase.xmpp.jid.BareJID channelJID, ChannelConfiguration configuration, ChannelNodePermission oldPermission, ChannelNodePermission newPermission, String node, Consumer<tigase.server.Packet> packetConsumer) -
generateAffiliationNotifications
-