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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkNodeConfig
(tigase.pubsub.AbstractNodeConfig nodeConfig) void
checkPermission
(tigase.xmpp.jid.BareJID serviceJid, String nodeName, tigase.xmpp.jid.JID senderJid, tigase.pubsub.utils.PubSubLogic.Action action) void
checkPermission
(tigase.xmpp.jid.BareJID channel, tigase.xmpp.jid.BareJID senderJid, MixAction action) void
generateAffiliationChangesNotifications
(tigase.xmpp.jid.BareJID channelJid, ChannelConfiguration oldConfig, ChannelConfiguration newConfig, Consumer<tigase.server.Packet> packetConsumer) protected void
generateAffiliationChangesNotificationsForNodeUpdateRights
(tigase.xmpp.jid.BareJID channelJID, ChannelConfiguration configuration, ChannelNodePermission oldPermission, ChannelNodePermission newPermission, String node, Consumer<tigase.server.Packet> packetConsumer) protected void
generateAffiliationNotifications
(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) boolean
isChannelCreationAllowed
(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.BareJID senderJID) boolean
isMAMEnabled
(tigase.xmpp.jid.BareJID serviceJid, String node) boolean
validateItemId
(tigase.xmpp.jid.BareJID toJid, String node, String id) Methods inherited from class tigase.pubsub.utils.DefaultPubSubLogic
getActiveSubscribers, getPubSubConfig, getRepository, hasSenderSubscription, isSenderInRosterGroup, isServiceJidPEP, prepareNotificationMessage, subscribersOfNotifications
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
isServiceAutoCreated
in interfacetigase.pubsub.utils.PubSubLogic
- Overrides:
isServiceAutoCreated
in 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:
generateParticipantId
in 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:
generateTempParticipantId
in interfaceMixLogic
- Throws:
tigase.component.exceptions.RepositoryException
-
checkNodeConfig
public void checkNodeConfig(tigase.pubsub.AbstractNodeConfig nodeConfig) throws tigase.pubsub.exceptions.PubSubException - Specified by:
checkNodeConfig
in interfacetigase.pubsub.utils.PubSubLogic
- Overrides:
checkNodeConfig
in 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:
checkPermission
in interfaceMixLogic
- Throws:
tigase.pubsub.exceptions.PubSubException
tigase.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:
checkPermission
in interfacetigase.pubsub.utils.PubSubLogic
- Overrides:
checkPermission
in classtigase.pubsub.utils.DefaultPubSubLogic
- Throws:
tigase.pubsub.exceptions.PubSubException
tigase.component.exceptions.RepositoryException
-
isChannelCreationAllowed
public boolean isChannelCreationAllowed(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.BareJID senderJID) - Specified by:
isChannelCreationAllowed
in interfaceMixLogic
-
isMAMEnabled
public boolean isMAMEnabled(tigase.xmpp.jid.BareJID serviceJid, String node) throws tigase.component.exceptions.RepositoryException - Specified by:
isMAMEnabled
in interfacetigase.pubsub.utils.PubSubLogic
- Overrides:
isMAMEnabled
in classtigase.pubsub.utils.DefaultPubSubLogic
- Throws:
tigase.component.exceptions.RepositoryException
-
validateItemId
- Specified by:
validateItemId
in interfacetigase.pubsub.utils.PubSubLogic
- Overrides:
validateItemId
in classtigase.pubsub.utils.DefaultPubSubLogic
-
generateAffiliationChangesNotifications
public void generateAffiliationChangesNotifications(tigase.xmpp.jid.BareJID channelJid, ChannelConfiguration oldConfig, ChannelConfiguration newConfig, Consumer<tigase.server.Packet> packetConsumer) - Specified by:
generateAffiliationChangesNotifications
in interfaceMixLogic
-
generateAffiliationChangesNotificationsForNodeUpdateRights
protected void generateAffiliationChangesNotificationsForNodeUpdateRights(tigase.xmpp.jid.BareJID channelJID, ChannelConfiguration configuration, ChannelNodePermission oldPermission, ChannelNodePermission newPermission, String node, Consumer<tigase.server.Packet> packetConsumer) -
generateAffiliationNotifications
-