Package org.jtalks.jcommune.plugin.api.web.dto

Examples of org.jtalks.jcommune.plugin.api.web.dto.Breadcrumb


     * Fill the forum breadcrumb.
     *
     * @return {@link Breadcrumb} the filled breadcrumb for the Forum location.
     */
    private Breadcrumb prepareForumBreadcrumb() {
        return new Breadcrumb(
                Breadcrumb.STUB_BREADCRUMB_ID,
                BreadcrumbLocation.FORUM,
                Breadcrumb.ROOT_BREADCRUMB_LOCATION_VALUE);
    }
View Full Code Here


     * @param branch {@link org.jtalks.jcommune.model.entity.Branch} the breadcrumbed branch.
     * @return {@link Breadcrumb} the filled breadcrumb for the Section location.
     */
    private Breadcrumb prepareBranchBreadcrumb(Branch branch) {
        Section section = branch.getSection();
        return new Breadcrumb(
                section.getId(),
                BreadcrumbLocation.SECTION,
                section.getName());
    }
View Full Code Here

     *
     * @param branch {@link org.jtalks.jcommune.model.entity.Branch} of the breadcrumbed topic.
     * @return {@link Breadcrumb} the filled breadcrumb for the Topic location.
     */
    private Breadcrumb prepareTopicBreadcrumb(Branch branch) {
        return new Breadcrumb(
                branch.getId(),
                BreadcrumbLocation.BRANCH,
                branch.getName());
    }
View Full Code Here

     * @param post {@link org.jtalks.jcommune.model.entity.Post} the breadcrumbed post.
     * @return {@link Breadcrumb} the filled breadcrumb for the Post location.
     */
    private Breadcrumb preparePostBreadcrumb(Post post) {
        Topic topic = post.getTopic();
        return new Breadcrumb(
                topic.getId(),
                BreadcrumbLocation.TOPIC,
                topic.getTitle());
    }
View Full Code Here

    }

    private Map<String, Object> getModel(HttpServletRequest request) {
        Map<String, Object> data = new HashMap<>();
        List<Breadcrumb> breadcrumbList = new ArrayList<>();
        Breadcrumb forum = new Breadcrumb(1L, BreadcrumbLocation.FORUM, "Forum");
        breadcrumbList.add(forum);
        Breadcrumb section = new Breadcrumb(1L, BreadcrumbLocation.SECTION, "Sport");
        breadcrumbList.add(section);
        Breadcrumb branch = new Breadcrumb(1L, BreadcrumbLocation.BRANCH, "Russian Hockey");
        breadcrumbList.add(branch);
        List<Post> posts = new ArrayList<>();
        JCUser mrVasiliy = new JCUser("Mr. Vasiliy", "", "");
        CodeReviewComment comment = new CodeReviewComment();
        comment.setAuthor(mrVasiliy);
View Full Code Here

TOP

Related Classes of org.jtalks.jcommune.plugin.api.web.dto.Breadcrumb

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.