Package com.saasovation.collaboration.domain.model.forum

Examples of com.saasovation.collaboration.domain.model.forum.PostId


        Post post =
                DomainRegistry
                    .postRepository()
                    .postOfId(
                            discussion.tenant(),
                            new PostId(postId));

        assertNotNull(discussionId);
        assertNotNull(post);
        assertEquals("authorId1", post.author().identity());
        assertEquals("Post Test", post.subject());
View Full Code Here


        Post postedInReplyTo =
                DomainRegistry
                    .postRepository()
                    .postOfId(
                            discussion.tenant(),
                            new PostId(postId));

        assertNotNull(discussionId);
        assertNotNull(inReplyToPostId);
        assertNotNull(postedInReplyTo);
        assertEquals("authorId2", postedInReplyTo.author().identity());
View Full Code Here

                            new ForumId(aForumId));

        Moderator moderator =
                this.collaboratorService().moderatorFrom(tenant, aModeratorId);

        Post post = this.postRepository().postOfId(tenant, new PostId(aPostId));

        forum.moderatePost(post, moderator, aSubject, aBodyText);

        this.postRepository().save(post);
    }
View Full Code Here

        return Post;
    }

    @Override
    public PostId nextIdentity() {
        return new PostId(UUID.randomUUID().toString().toUpperCase());
    }
View Full Code Here

        Post post =
                DomainRegistry
                    .postRepository()
                    .postOfId(
                            discussion.tenant(),
                            new PostId(postId));

        assertNotNull(discussionId);
        assertNotNull(post);
        assertEquals("Post Moderated Subject Test", post.subject());
        assertEquals("Post moderated text test...", post.bodyText());
View Full Code Here

                this.collaboratorService().authorFrom(new Tenant(aTenantId), anAuthorId);

        Post post =
                discussion.post(
                        this.forumIdentityService(),
                        new PostId(aReplyToPostId),
                        author,
                        aSubject,
                        aBodyText);

        this.postRepository().save(post);
View Full Code Here

TOP

Related Classes of com.saasovation.collaboration.domain.model.forum.PostId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.