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 void clearCache();
027    
028            public void clearCache(
029                    long groupId, String articleId, String ddmTemplateKey);
030    
031            public String getContent(
032                    long groupId, String articleId, String viewMode, String languageId,
033                    PortletRequestModel portletRequestModel);
034    
035            public String getContent(
036                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
037                    String languageId, PortletRequestModel portletRequestModel);
038    
039            public String getContent(
040                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
041                    String languageId, PortletRequestModel portletRequestModel,
042                    ThemeDisplay themeDisplay);
043    
044            public String getContent(
045                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
046                    String languageId, ThemeDisplay themeDisplay);
047    
048            public String getContent(
049                    long groupId, String articleId, String viewMode, String languageId,
050                    ThemeDisplay themeDisplay);
051    
052            public JournalArticleDisplay getDisplay(
053                    long groupId, String articleId, double version, String ddmTemplateKey,
054                    String viewMode, String languageId, int page,
055                    PortletRequestModel portletRequestModel, ThemeDisplay themeDisplay);
056    
057            public JournalArticleDisplay getDisplay(
058                    long groupId, String articleId, String viewMode, String languageId,
059                    int page, ThemeDisplay themeDisplay);
060    
061            public JournalArticleDisplay getDisplay(
062                    long groupId, String articleId, String viewMode, String languageId,
063                    PortletRequestModel portletRequestModel);
064    
065            public JournalArticleDisplay getDisplay(
066                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
067                    String languageId, int page, PortletRequestModel portletRequestModel,
068                    ThemeDisplay themeDisplay);
069    
070            public JournalArticleDisplay getDisplay(
071                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
072                    String languageId, PortletRequestModel portletRequestModel);
073    
074            public JournalArticleDisplay getDisplay(
075                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
076                    String languageId, ThemeDisplay themeDisplay);
077    
078            public JournalArticleDisplay getDisplay(
079                    long groupId, String articleId, String viewMode, String languageId,
080                    ThemeDisplay themeDisplay);
081    
082    }