001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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            /**
026             * @deprecated as of 7.0.0, with no direct replacement
027             */
028            @Deprecated
029            public static final String ARTICLE_SEPARATOR = "_ARTICLE_";
030    
031            /**
032             * @deprecated as of 7.0.0, with no direct replacement
033             */
034            @Deprecated
035            public static final String LANGUAGE_SEPARATOR = "_LANGUAGE_";
036    
037            /**
038             * @deprecated as of 7.0.0, with no direct replacement
039             */
040            @Deprecated
041            public static final String LAYOUT_SET_SEPARATOR = "_LAYOUT_SET_";
042    
043            /**
044             * @deprecated as of 7.0.0, with no direct replacement
045             */
046            @Deprecated
047            public static final String PAGE_SEPARATOR = "_PAGE_";
048    
049            /**
050             * @deprecated as of 7.0.0, with no direct replacement
051             */
052            @Deprecated
053            public static final String SECURE_SEPARATOR = "_SECURE_";
054    
055            /**
056             * @deprecated as of 7.0.0, with no direct replacement
057             */
058            @Deprecated
059            public static final String TEMPLATE_SEPARATOR = "_TEMPLATE_";
060    
061            /**
062             * @deprecated as of 7.0.0, with no direct replacement
063             */
064            @Deprecated
065            public static final String VERSION_SEPARATOR = "_VERSION_";
066    
067            /**
068             * @deprecated as of 7.0.0, with no direct replacement
069             */
070            @Deprecated
071            public static final String VIEW_MODE_SEPARATOR = "_VIEW_MODE_";
072    
073            public void clearCache();
074    
075            public void clearCache(
076                    long groupId, String articleId, String ddmTemplateKey);
077    
078            public String getContent(
079                    long groupId, String articleId, String viewMode, String languageId,
080                    String xmlRequest);
081    
082            public String getContent(
083                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
084                    String languageId, String xmlRequest);
085    
086            public String getContent(
087                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
088                    String languageId, ThemeDisplay themeDisplay);
089    
090            public String getContent(
091                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
092                    String languageId, ThemeDisplay themeDisplay, String xmlRequest);
093    
094            public String getContent(
095                    long groupId, String articleId, String viewMode, String languageId,
096                    ThemeDisplay themeDisplay);
097    
098            public JournalArticleDisplay getDisplay(
099                    long groupId, String articleId, double version, String ddmTemplateKey,
100                    String viewMode, String languageId, ThemeDisplay themeDisplay, int page,
101                    String xmlRequest);
102    
103            public JournalArticleDisplay getDisplay(
104                    long groupId, String articleId, String viewMode, String languageId,
105                    String xmlRequest);
106    
107            public JournalArticleDisplay getDisplay(
108                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
109                    String languageId, String xmlRequest);
110    
111            public JournalArticleDisplay getDisplay(
112                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
113                    String languageId, ThemeDisplay themeDisplay);
114    
115            public JournalArticleDisplay getDisplay(
116                    long groupId, String articleId, String ddmTemplateKey, String viewMode,
117                    String languageId, ThemeDisplay themeDisplay, int page,
118                    String xmlRequest);
119    
120            public JournalArticleDisplay getDisplay(
121                    long groupId, String articleId, String viewMode, String languageId,
122                    ThemeDisplay themeDisplay);
123    
124            public JournalArticleDisplay getDisplay(
125                    long groupId, String articleId, String viewMode, String languageId,
126                    ThemeDisplay themeDisplay, int page);
127    
128    }