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());
}
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);
}
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);
}
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);
}
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);
}
Aggregations