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(long groupId, String articleId, String templateId);
044    
045            public String getContent(
046                    long groupId, String articleId, String viewMode, String languageId,
047                    String xmlRequest);
048    
049            public String getContent(
050                    long groupId, String articleId, String templateId, String viewMode,
051                    String languageId, String xmlRequest);
052    
053            public String getContent(
054                    long groupId, String articleId, String templateId, String viewMode,
055                    String languageId, ThemeDisplay themeDisplay);
056    
057            public String getContent(
058                    long groupId, String articleId, String templateId, String viewMode,
059                    String languageId, ThemeDisplay themeDisplay, String xmlRequest);
060    
061            public String getContent(
062                    long groupId, String articleId, String viewMode, String languageId,
063                    ThemeDisplay themeDisplay);
064    
065            public JournalArticleDisplay getDisplay(
066                    long groupId, String articleId, double version, String templateId,
067                    String viewMode, String languageId, ThemeDisplay themeDisplay, int page,
068                    String xmlRequest);
069    
070            public JournalArticleDisplay getDisplay(
071                    long groupId, String articleId, String viewMode, String languageId,
072                    String xmlRequest);
073    
074            public JournalArticleDisplay getDisplay(
075                    long groupId, String articleId, String templateId, String viewMode,
076                    String languageId, String xmlRequest);
077    
078            public JournalArticleDisplay getDisplay(
079                    long groupId, String articleId, String templateId, String viewMode,
080                    String languageId, ThemeDisplay themeDisplay);
081    
082            public JournalArticleDisplay getDisplay(
083                    long groupId, String articleId, String templateId, String viewMode,
084                    String languageId, ThemeDisplay themeDisplay, int page,
085                    String xmlRequest);
086    
087            public JournalArticleDisplay getDisplay(
088                    long groupId, String articleId, String viewMode, String languageId,
089                    ThemeDisplay themeDisplay);
090    
091            public JournalArticleDisplay getDisplay(
092                    long groupId, String articleId, String viewMode, String languageId,
093                    ThemeDisplay themeDisplay, int page);
094    
095    }