Search in sources :

Example 1 with LiberinMapping

use of org.moera.node.liberin.LiberinMapping in project moera-node by MoeraOrg.

the class SettingsReceptor method nodeMetadataChanged.

@LiberinMapping
public void nodeMetadataChanged(NodeSettingsMetadataChangedLiberin liberin) {
    send(liberin, new NodeSettingsMetaChangedEvent());
    send(liberin, new NodeSettingsChangedEvent());
}
Also used : NodeSettingsMetaChangedEvent(org.moera.node.model.event.NodeSettingsMetaChangedEvent) NodeSettingsChangedEvent(org.moera.node.model.event.NodeSettingsChangedEvent) LiberinMapping(org.moera.node.liberin.LiberinMapping)

Example 2 with LiberinMapping

use of org.moera.node.liberin.LiberinMapping in project moera-node by MoeraOrg.

the class StoryReceptor method updated.

@LiberinMapping
public void updated(StoryAddedLiberin liberin) {
    Story story = liberin.getStory();
    if (!Feed.isAdmin(story.getFeedName())) {
        send(liberin, new StoryAddedEvent(story, false));
    }
    send(liberin, new StoryAddedEvent(story, true));
    feedStatusUpdated(liberin, story);
}
Also used : StoryAddedEvent(org.moera.node.model.event.StoryAddedEvent) Story(org.moera.node.data.Story) LiberinMapping(org.moera.node.liberin.LiberinMapping)

Example 3 with LiberinMapping

use of org.moera.node.liberin.LiberinMapping in project moera-node by MoeraOrg.

the class StoryReceptor method deleted.

@LiberinMapping
public void deleted(StoryDeletedLiberin liberin) {
    Story story = liberin.getStory();
    if (!Feed.isAdmin(story.getFeedName())) {
        send(liberin, new StoryDeletedEvent(story, false));
    }
    send(liberin, new StoryDeletedEvent(story, true));
    feedStatusUpdated(liberin, story);
}
Also used : StoryDeletedEvent(org.moera.node.model.event.StoryDeletedEvent) Story(org.moera.node.data.Story) LiberinMapping(org.moera.node.liberin.LiberinMapping)

Example 4 with LiberinMapping

use of org.moera.node.liberin.LiberinMapping in project moera-node by MoeraOrg.

the class StoryReceptor method updated.

@LiberinMapping
public void updated(StoryUpdatedLiberin liberin) {
    Story story = liberin.getStory();
    if (!Feed.isAdmin(story.getFeedName())) {
        send(liberin, new StoryUpdatedEvent(story, false));
    }
    send(liberin, new StoryUpdatedEvent(story, true));
    feedStatusUpdated(liberin, story);
}
Also used : StoryUpdatedEvent(org.moera.node.model.event.StoryUpdatedEvent) Story(org.moera.node.data.Story) LiberinMapping(org.moera.node.liberin.LiberinMapping)

Example 5 with LiberinMapping

use of org.moera.node.liberin.LiberinMapping in project moera-node by MoeraOrg.

the class SubscriberReceptor method deleted.

@LiberinMapping
public void deleted(SubscriberDeletedLiberin liberin) {
    send(liberin, new SubscriberDeletedEvent(liberin.getSubscriber()));
    sendPeopleChangedEvent(liberin);
}
Also used : SubscriberDeletedEvent(org.moera.node.model.event.SubscriberDeletedEvent) LiberinMapping(org.moera.node.liberin.LiberinMapping)

Aggregations

LiberinMapping (org.moera.node.liberin.LiberinMapping)23 Posting (org.moera.node.data.Posting)12 Comment (org.moera.node.data.Comment)5 UUID (java.util.UUID)3 Story (org.moera.node.data.Story)3 AvatarImage (org.moera.node.model.AvatarImage)3 PostingCommentsChangedEvent (org.moera.node.model.event.PostingCommentsChangedEvent)3 PostingCommentsUpdatedNotification (org.moera.node.model.notification.PostingCommentsUpdatedNotification)3 PostingUpdatedNotification (org.moera.node.model.notification.PostingUpdatedNotification)3 PostingReactionsChangedEvent (org.moera.node.model.event.PostingReactionsChangedEvent)2 PostingCommentAddedNotification (org.moera.node.model.notification.PostingCommentAddedNotification)2 PostingReactionsUpdatedNotification (org.moera.node.model.notification.PostingReactionsUpdatedNotification)2 Entry (org.moera.node.data.Entry)1 Subscriber (org.moera.node.data.Subscriber)1 EmailConfirmMail (org.moera.node.mail.EmailConfirmMail)1 CommentAddedEvent (org.moera.node.model.event.CommentAddedEvent)1 CommentDeletedEvent (org.moera.node.model.event.CommentDeletedEvent)1 CommentReactionsChangedEvent (org.moera.node.model.event.CommentReactionsChangedEvent)1 CommentUpdatedEvent (org.moera.node.model.event.CommentUpdatedEvent)1 FeedStatusUpdatedEvent (org.moera.node.model.event.FeedStatusUpdatedEvent)1