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

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


        assertEquals(exclusiveOwner, newlyStartedForum.exclusiveOwner());

        Discussion newlyStartedDiscussion =
                DomainRegistry
                    .discussionRepository()
                    .discussionOfId(forum.tenant(), new DiscussionId(this.discussionId));

        assertNotNull(newlyStartedDiscussion);
        assertEquals("authorId1", newlyStartedDiscussion.author().identity());
        assertEquals("Discussion Subject", newlyStartedDiscussion.subject());
    }
View Full Code Here


        return Discussion;
    }

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

        if (discussionId != null) {
            discussion = this.discussionRepository()
                             .discussionOfId(
                                     tenant,
                                     new DiscussionId(discussionId));
        }

        if (discussion == null) {
            Author author =
                    this.collaboratorService().authorFrom(tenant, anAuthorId);
View Full Code Here

    public void closeDiscussion(String aTenantId, String aDiscussionId) {
        Discussion discussion =
                this.discussionRepository()
                    .discussionOfId(new Tenant(aTenantId),
                            new DiscussionId(aDiscussionId));

        discussion.close();

        this.discussionRepository().save(discussion);
    }
View Full Code Here

            DiscussionCommandResult aDiscussionCommandResult) {

        Discussion discussion =
                this.discussionRepository()
                    .discussionOfId(new Tenant(aTenantId),
                            new DiscussionId(aDiscussionId));

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

        Post post = discussion.post(this.forumIdentityService(), author, aSubject, aBodyText);
View Full Code Here

            DiscussionCommandResult aDiscussionCommandResult) {

        Discussion discussion =
                this.discussionRepository()
                    .discussionOfId(new Tenant(aTenantId),
                            new DiscussionId(aDiscussionId));

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

        Post post =
View Full Code Here

    public void reopenDiscussion(String aTenantId, String aDiscussionId) {
        Discussion discussion =
                this.discussionRepository()
                    .discussionOfId(new Tenant(aTenantId),
                            new DiscussionId(aDiscussionId));

        discussion.reopen();

        this.discussionRepository().save(discussion);
    }
View Full Code Here

TOP

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

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.