1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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 PAGE_SEPARATOR = "_PAGE_";
34  
35      public static final String SECURE_SEPARATOR = "_SECURE_";
36  
37      public static final String TEMPLATE_SEPARATOR = "_TEMPLATE_";
38  
39      public static final String VIEW_MODE_SEPARATOR = "_VIEW_MODE_";
40  
41      public void clearCache();
42  
43      public void clearCache(long groupId, String articleId, String templateId);
44  
45      public String getContent(
46          long groupId, String articleId, String viewMode, String languageId,
47          String xmlRequest);
48  
49      public String getContent(
50          long groupId, String articleId, String viewMode, String languageId,
51          ThemeDisplay themeDisplay);
52  
53      public String getContent(
54          long groupId, String articleId, String templateId, String viewMode,
55          String languageId, String xmlRequest);
56  
57      public String getContent(
58          long groupId, String articleId, String templateId, String viewMode,
59          String languageId, ThemeDisplay themeDisplay);
60  
61      public String getContent(
62          long groupId, String articleId, String templateId, String viewMode,
63          String languageId, ThemeDisplay themeDisplay, String xmlRequest);
64  
65      public JournalArticleDisplay getDisplay(
66          long groupId, String articleId, String viewMode, String languageId,
67          String xmlRequest);
68  
69      public JournalArticleDisplay getDisplay(
70          long groupId, String articleId, String viewMode, String languageId,
71          ThemeDisplay themeDisplay);
72  
73      public JournalArticleDisplay getDisplay(
74          long groupId, String articleId, String viewMode, String languageId,
75          ThemeDisplay themeDisplay, int page);
76  
77      public JournalArticleDisplay getDisplay(
78          long groupId, String articleId, String templateId, String viewMode,
79          String languageId, String xmlRequest);
80  
81      public JournalArticleDisplay getDisplay(
82          long groupId, String articleId, String templateId, String viewMode,
83          String languageId, ThemeDisplay themeDisplay);
84  
85      public JournalArticleDisplay getDisplay(
86          long groupId, String articleId, String templateId, String viewMode,
87          String languageId, ThemeDisplay themeDisplay, int page,
88          String xmlRequest);
89  
90  }