001    /**
002     * Copyright (c) 2000-2011 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 VIEW_MODE_SEPARATOR = "_VIEW_MODE_";
038    
039            public void clearCache();
040    
041            public void clearCache(long groupId, String articleId, String templateId);
042    
043            public String getContent(
044                    long groupId, String articleId, String viewMode, String languageId,
045                    String xmlRequest);
046    
047            public String getContent(
048                    long groupId, String articleId, String viewMode, String languageId,
049                    ThemeDisplay themeDisplay);
050    
051            public String getContent(
052                    long groupId, String articleId, String templateId, String viewMode,
053                    String languageId, String xmlRequest);
054    
055            public String getContent(
056                    long groupId, String articleId, String templateId, String viewMode,
057                    String languageId, ThemeDisplay themeDisplay);
058    
059            public String getContent(
060                    long groupId, String articleId, String templateId, String viewMode,
061                    String languageId, ThemeDisplay themeDisplay, String xmlRequest);
062    
063            public JournalArticleDisplay getDisplay(
064                    long groupId, String articleId, String viewMode, String languageId,
065                    String xmlRequest);
066    
067            public JournalArticleDisplay getDisplay(
068                    long groupId, String articleId, String viewMode, String languageId,
069                    ThemeDisplay themeDisplay);
070    
071            public JournalArticleDisplay getDisplay(
072                    long groupId, String articleId, String viewMode, String languageId,
073                    ThemeDisplay themeDisplay, int page);
074    
075            public JournalArticleDisplay getDisplay(
076                    long groupId, String articleId, String templateId, String viewMode,
077                    String languageId, String xmlRequest);
078    
079            public JournalArticleDisplay getDisplay(
080                    long groupId, String articleId, String templateId, String viewMode,
081                    String languageId, ThemeDisplay themeDisplay);
082    
083            public JournalArticleDisplay getDisplay(
084                    long groupId, String articleId, String templateId, String viewMode,
085                    String languageId, ThemeDisplay themeDisplay, int page,
086                    String xmlRequest);
087    
088    }