Package org.dddlib.organisation.facade.assembler

Examples of org.dddlib.organisation.facade.assembler.PostAssembler


        application.changeParentOfOrganization(organization, parent, date);
    }

    @Override
    public void createPostUnderOrganization(PostDto postDto, Long organizationId, Date date) {
        Post post = new PostAssembler().toEntity(postDto);
        Organization organization = application.getEntity(Organization.class, organizationId);
        application.createPostUnderOrganization(post, organization, date);
    }
View Full Code Here


    }

    @Override
    public PostDto getPost(long postId) {
        Post post = application.getEntity(Post.class, postId);
        return new PostAssembler().toDto(post);
    }
View Full Code Here

TOP

Related Classes of org.dddlib.organisation.facade.assembler.PostAssembler

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.