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 String ARTICLE_SEPARATOR = "_ARTICLE_";
30  
31      public static String TEMPLATE_SEPARATOR = "_TEMPLATE_";
32  
33      public static String LANGUAGE_SEPARATOR = "_LANGUAGE_";
34  
35      public static String PAGE_SEPARATOR = "_PAGE_";
36  
37      public static final String SECURE_SEPARATOR = "_SECURE_";
38  
39      public void clearCache();
40  
41      public void clearCache(long groupId, String articleId, String templateId);
42  
43      public String getContent(
44          long groupId, String articleId, String languageId, String xmlRequest);
45  
46      public String getContent(
47          long groupId, String articleId, String languageId,
48          ThemeDisplay themeDisplay);
49  
50      public String getContent(
51          long groupId, String articleId, String templateId, String languageId,
52          String xmlRequest);
53  
54      public String getContent(
55          long groupId, String articleId, String templateId, String languageId,
56          ThemeDisplay themeDisplay);
57  
58      public String getContent(
59          long groupId, String articleId, String templateId, String languageId,
60          ThemeDisplay themeDisplay, String xmlRequest);
61  
62      public JournalArticleDisplay getDisplay(
63          long groupId, String articleId, String languageId, String xmlRequest);
64  
65      public JournalArticleDisplay getDisplay(
66          long groupId, String articleId, String languageId,
67          ThemeDisplay themeDisplay);
68  
69      public JournalArticleDisplay getDisplay(
70          long groupId, String articleId, String templateId, String languageId,
71          String xmlRequest);
72  
73      public JournalArticleDisplay getDisplay(
74          long groupId, String articleId, String templateId, String languageId,
75          ThemeDisplay themeDisplay);
76  
77      public JournalArticleDisplay getDisplay(
78          long groupId, String articleId, String templateId, String languageId,
79          ThemeDisplay themeDisplay, int page, String xmlRequest);
80  
81  }