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

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


        Forum forum =
                this.forumRepository()
                    .forumOfId(
                            tenant,
                            new ForumId(aForumId));

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

        Post post = this.postRepository().postOfId(tenant, new PostId(aPostId));
View Full Code Here


        return forum;
    }

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

        assertNotNull(this.forumId);

        Forum newlyStartedForum =
                DomainRegistry
                    .forumRepository()
                    .forumOfId(forum.tenant(), new ForumId(this.forumId));

        assertNotNull(newlyStartedForum);
        assertEquals(forum.tenant(), newlyStartedForum.tenant());
        assertEquals(this.forumId, newlyStartedForum.forumId().id());
        assertEquals(forum.creator().identity(), newlyStartedForum.creator().identity());
View Full Code Here

        assertNotNull(this.forumId);

        Forum newlyStartedForum =
                DomainRegistry
                    .forumRepository()
                    .forumOfId(forum.tenant(), new ForumId(this.forumId));

        assertNotNull(newlyStartedForum);
        assertEquals(forum.tenant(), newlyStartedForum.tenant());
        assertEquals(this.forumId, newlyStartedForum.forumId().id());
        assertEquals(forum.creator().identity(), newlyStartedForum.creator().identity());
View Full Code Here

        assertNotNull(this.discussionId);

        Forum newlyStartedForum =
                DomainRegistry
                    .forumRepository()
                    .forumOfId(forum.tenant(), new ForumId(this.forumId));

        assertNotNull(newlyStartedForum);
        assertEquals(forum.tenant(), newlyStartedForum.tenant());
        assertEquals(this.forumId, newlyStartedForum.forumId().id());
        assertEquals(forum.creator().identity(), newlyStartedForum.creator().identity());
View Full Code Here

        Forum forum =
                this.forumRepository()
                    .forumOfId(
                            tenant,
                            new ForumId(aForumId));

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

        forum.assignModerator(moderator);
View Full Code Here

        Forum forum =
                this.forumRepository()
                    .forumOfId(
                            tenant,
                            new ForumId(aForumId));

        forum.changeDescription(aDescription);

        this.forumRepository().save(forum);
    }
View Full Code Here

        Forum forum =
                this.forumRepository()
                    .forumOfId(
                            tenant,
                            new ForumId(aForumId));

        forum.changeSubject(aSubject);

        this.forumRepository().save(forum);
    }
View Full Code Here

        Forum forum =
                this.forumRepository()
                    .forumOfId(
                            tenant,
                            new ForumId(aForumId));

        forum.close();

        this.forumRepository().save(forum);
    }
View Full Code Here

        Forum forum =
                this.forumRepository()
                    .forumOfId(
                            tenant,
                            new ForumId(aForumId));

        forum.reopen();

        this.forumRepository().save(forum);
    }
View Full Code Here

TOP

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

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.