001    /**
002     * Copyright (c) 2000-2013 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.journalcontent.util;
016    
017    import com.liferay.portal.theme.ThemeDisplay;
018    import com.liferay.portlet.journal.model.JournalArticleDisplay;
019    
020    /**
021     * @author Raymond Aug??
022     */
023    public interface JournalContent {
024    
025            public static final String ARTICLE_SEPARATOR = "_ARTICLE_";
026    
027            public static final String LANGUAGE_SEPARATOR = "_LANGUAGE_";
028    
029            public static final String LAYOUT_SET_SEPARATOR = "_LAYOUT_SET_";
030    
031            public static final String PAGE_SEPARATOR = "_PAGE_";
032    
033            public static final String SECURE_SEPARATOR = "_SECURE_";
034    
035            public static final String TEMPLATE_SEPARATOR = "_TEMPLATE_";
036    
037            public static final String VERSION_SEPARATOR = "_VERSION_";
038    
039            public static final String VIEW_MODE_SEPARATOR = "_VIEW_MODE_";
040    
041            public void clearCache();
042    
043            public void clearCache(
044                    long groupId, String articleId, String ddmTemplateKey);
045    
046            public String getContent(
047                    long groupId, String articleId, String viewMode, String languageId,
048                    String xmlRequest);
049    
050            public String getContent(
051                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
052                    String languageId, String xmlRequest);
053    
054            public String getContent(
055                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
056                    String languageId, ThemeDisplay themeDisplay);
057    
058            public String getContent(
059                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
060                    String languageId, ThemeDisplay themeDisplay, String xmlRequest);
061    
062            public String getContent(
063                    long groupId, String articleId, String viewMode, String languageId,
064                    ThemeDisplay themeDisplay);
065    
066            public JournalArticleDisplay getDisplay(
067                    long groupId, String articleId, double version, String ddmTemplateKey,
068                    String viewMode, String languageId, ThemeDisplay themeDisplay, int page,
069                    String xmlRequest);
070    
071            public JournalArticleDisplay getDisplay(
072                    long groupId, String articleId, String viewMode, String languageId,
073                    String xmlRequest);
074    
075            public JournalArticleDisplay getDisplay(
076                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
077                    String languageId, String xmlRequest);
078    
079            public JournalArticleDisplay getDisplay(
080                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
081                    String languageId, ThemeDisplay themeDisplay);
082    
083            public JournalArticleDisplay getDisplay(
084                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
085                    String languageId, ThemeDisplay themeDisplay, int page,
086                    String xmlRequest);
087    
088            public JournalArticleDisplay getDisplay(
089                    long groupId, String articleId, String viewMode, String languageId,
090                    ThemeDisplay themeDisplay);
091    
092            public JournalArticleDisplay getDisplay(
093                    long groupId, String articleId, String viewMode, String languageId,
094                    ThemeDisplay themeDisplay, int page);
095    
096    }