001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.journal.util;
016    
017    import com.liferay.portal.kernel.portlet.PortletRequestModel;
018    import com.liferay.portal.theme.ThemeDisplay;
019    import com.liferay.portlet.journal.model.JournalArticleDisplay;
020    
021    /**
022     * @author Raymond Aug??
023     */
024    public interface JournalContent {
025    
026            public static final String ARTICLE_SEPARATOR = "_ARTICLE_";
027    
028            public static final String LANGUAGE_SEPARATOR = "_LANGUAGE_";
029    
030            public static final String LAYOUT_SET_SEPARATOR = "_LAYOUT_SET_";
031    
032            public static final String PAGE_SEPARATOR = "_PAGE_";
033    
034            public static final String SECURE_SEPARATOR = "_SECURE_";
035    
036            public static final String TEMPLATE_SEPARATOR = "_TEMPLATE_";
037    
038            public static final String VERSION_SEPARATOR = "_VERSION_";
039    
040            public static final String VIEW_MODE_SEPARATOR = "_VIEW_MODE_";
041    
042            public void clearCache();
043    
044            public void clearCache(
045                    long groupId, String articleId, String ddmTemplateKey);
046    
047            public String getContent(
048                    long groupId, String articleId, String viewMode, String languageId,
049                    PortletRequestModel portletRequestModel);
050    
051            public String getContent(
052                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
053                    String languageId, PortletRequestModel portletRequestModel);
054    
055            public String getContent(
056                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
057                    String languageId, PortletRequestModel portletRequestModel,
058                    ThemeDisplay themeDisplay);
059    
060            public String getContent(
061                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
062                    String languageId, ThemeDisplay themeDisplay);
063    
064            public String getContent(
065                    long groupId, String articleId, String viewMode, String languageId,
066                    ThemeDisplay themeDisplay);
067    
068            public JournalArticleDisplay getDisplay(
069                    long groupId, String articleId, double version, String ddmTemplateKey,
070                    String viewMode, String languageId, int page,
071                    PortletRequestModel portletRequestModel, ThemeDisplay themeDisplay);
072    
073            public JournalArticleDisplay getDisplay(
074                    long groupId, String articleId, String viewMode, String languageId,
075                    int page, ThemeDisplay themeDisplay);
076    
077            public JournalArticleDisplay getDisplay(
078                    long groupId, String articleId, String viewMode, String languageId,
079                    PortletRequestModel portletRequestModel);
080    
081            public JournalArticleDisplay getDisplay(
082                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
083                    String languageId, int page, PortletRequestModel portletRequestModel,
084                    ThemeDisplay themeDisplay);
085    
086            public JournalArticleDisplay getDisplay(
087                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
088                    String languageId, PortletRequestModel portletRequestModel);
089    
090            public JournalArticleDisplay getDisplay(
091                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
092                    String languageId, ThemeDisplay themeDisplay);
093    
094            public JournalArticleDisplay getDisplay(
095                    long groupId, String articleId, String viewMode, String languageId,
096                    ThemeDisplay themeDisplay);
097    
098    }