1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.journalcontent.util;
16  
17  import com.liferay.portal.theme.ThemeDisplay;
18  import com.liferay.portlet.journal.model.JournalArticleDisplay;
19  
20  /**
21   * <a href="JournalContent.java.html"><b><i>View Source</i></b></a>
22   *
23   * @author Raymond Augé
24   */
25  public interface JournalContent {
26  
27      public static final String CACHE_NAME = JournalContent.class.getName();
28  
29      public static final String ARTICLE_SEPARATOR = "_ARTICLE_";
30  
31      public static final String LANGUAGE_SEPARATOR = "_LANGUAGE_";
32  
33      public static final String LAYOUT_SET_SEPARATOR = "_LAYOUT_SET_";
34  
35      public static final String PAGE_SEPARATOR = "_PAGE_";
36  
37      public static final String SECURE_SEPARATOR = "_SECURE_";
38  
39      public static final String TEMPLATE_SEPARATOR = "_TEMPLATE_";
40  
41      public static final String VIEW_MODE_SEPARATOR = "_VIEW_MODE_";
42  
43      public void clearCache();
44  
45      public void clearCache(long groupId, String articleId, String templateId);
46  
47      public String getContent(
48          long groupId, String articleId, String viewMode, String languageId,
49          String xmlRequest);
50  
51      public String getContent(
52          long groupId, String articleId, String viewMode, String languageId,
53          ThemeDisplay themeDisplay);
54  
55      public String getContent(
56          long groupId, String articleId, String templateId, String viewMode,
57          String languageId, String xmlRequest);
58  
59      public String getContent(
60          long groupId, String articleId, String templateId, String viewMode,
61          String languageId, ThemeDisplay themeDisplay);
62  
63      public String getContent(
64          long groupId, String articleId, String templateId, String viewMode,
65          String languageId, ThemeDisplay themeDisplay, String xmlRequest);
66  
67      public JournalArticleDisplay getDisplay(
68          long groupId, String articleId, String viewMode, String languageId,
69          String xmlRequest);
70  
71      public JournalArticleDisplay getDisplay(
72          long groupId, String articleId, String viewMode, String languageId,
73          ThemeDisplay themeDisplay);
74  
75      public JournalArticleDisplay getDisplay(
76          long groupId, String articleId, String viewMode, String languageId,
77          ThemeDisplay themeDisplay, int page);
78  
79      public JournalArticleDisplay getDisplay(
80          long groupId, String articleId, String templateId, String viewMode,
81          String languageId, String xmlRequest);
82  
83      public JournalArticleDisplay getDisplay(
84          long groupId, String articleId, String templateId, String viewMode,
85          String languageId, ThemeDisplay themeDisplay);
86  
87      public JournalArticleDisplay getDisplay(
88          long groupId, String articleId, String templateId, String viewMode,
89          String languageId, ThemeDisplay themeDisplay, int page,
90          String xmlRequest);
91  
92  }