1
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
25 public class JournalContentUtil {
26
27 public static void clearCache() {
28 getJournalContent().clearCache();
29 }
30
31 public static void clearCache(
32 long groupId, String articleId, String templateId) {
33
34 getJournalContent().clearCache(groupId, articleId, templateId);
35 }
36
37 public static String getContent(
38 long groupId, String articleId, String languageId, String xmlRequest) {
39
40 return getJournalContent().getContent(
41 groupId, articleId, languageId, xmlRequest);
42 }
43
44 public static String getContent(
45 long groupId, String articleId, String languageId,
46 ThemeDisplay themeDisplay) {
47
48 return getJournalContent().getContent(
49 groupId, articleId, languageId, themeDisplay);
50 }
51
52 public static String getContent(
53 long groupId, String articleId, String templateId, String languageId,
54 String xmlRequest) {
55
56 return getJournalContent().getContent(
57 groupId, articleId, templateId, languageId, xmlRequest);
58 }
59
60 public static String getContent(
61 long groupId, String articleId, String templateId, String languageId,
62 ThemeDisplay themeDisplay) {
63
64 return getJournalContent().getContent(
65 groupId, articleId, templateId, languageId, themeDisplay);
66 }
67
68 public static String getContent(
69 long groupId, String articleId, String templateId, String languageId,
70 ThemeDisplay themeDisplay, String xmlRequest) {
71
72 return getJournalContent().getContent(
73 groupId, articleId, templateId, languageId, themeDisplay,
74 xmlRequest);
75 }
76
77 public static JournalArticleDisplay getDisplay(
78 long groupId, String articleId, String languageId, String xmlRequest) {
79
80 return getJournalContent().getDisplay(
81 groupId, articleId, languageId, xmlRequest);
82 }
83
84 public static JournalArticleDisplay getDisplay(
85 long groupId, String articleId, String languageId,
86 ThemeDisplay themeDisplay) {
87
88 return getJournalContent().getDisplay(
89 groupId, articleId, languageId, themeDisplay);
90 }
91
92 public static JournalArticleDisplay getDisplay(
93 long groupId, String articleId, String templateId, String languageId,
94 String xmlRequest) {
95
96 return getJournalContent().getDisplay(
97 groupId, articleId, templateId, languageId, xmlRequest);
98 }
99
100 public static JournalArticleDisplay getDisplay(
101 long groupId, String articleId, String templateId, String languageId,
102 ThemeDisplay themeDisplay) {
103
104 return getJournalContent().getDisplay(
105 groupId, articleId, templateId, languageId, themeDisplay);
106 }
107
108 public static JournalArticleDisplay getDisplay(
109 long groupId, String articleId, String templateId, String languageId,
110 ThemeDisplay themeDisplay, int page, String xmlRequest) {
111
112 return getJournalContent().getDisplay(
113 groupId, articleId, templateId, languageId, themeDisplay, page,
114 xmlRequest);
115 }
116
117 public static JournalContent getJournalContent() {
118 return _journalContent;
119 }
120
121 public void setJournalContent(JournalContent journalContent) {
122 _journalContent = journalContent;
123 }
124
125 private static JournalContent _journalContent;
126
127 }