001
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
023 public class JournalContentUtil {
024
025 public static void clearCache() {
026 getJournalContent().clearCache();
027 }
028
029 public static void clearCache(
030 long groupId, String articleId, String templateId) {
031
032 getJournalContent().clearCache(groupId, articleId, templateId);
033 }
034
035 public static String getContent(
036 long groupId, String articleId, String viewMode, String languageId,
037 String xmlRequest) {
038
039 return getJournalContent().getContent(
040 groupId, articleId, viewMode, languageId, xmlRequest);
041 }
042
043 public static String getContent(
044 long groupId, String articleId, String templateId, String viewMode,
045 String languageId, String xmlRequest) {
046
047 return getJournalContent().getContent(
048 groupId, articleId, templateId, viewMode, languageId, xmlRequest);
049 }
050
051 public static String getContent(
052 long groupId, String articleId, String templateId, String viewMode,
053 String languageId, ThemeDisplay themeDisplay) {
054
055 return getJournalContent().getContent(
056 groupId, articleId, templateId, viewMode, languageId, themeDisplay);
057 }
058
059 public static String getContent(
060 long groupId, String articleId, String templateId, String viewMode,
061 String languageId, ThemeDisplay themeDisplay, String xmlRequest) {
062
063 return getJournalContent().getContent(
064 groupId, articleId, templateId, viewMode, languageId, themeDisplay);
065 }
066
067 public static String getContent(
068 long groupId, String articleId, String viewMode, String languageId,
069 ThemeDisplay themeDisplay) {
070
071 return getJournalContent().getContent(
072 groupId, articleId, viewMode, languageId, themeDisplay);
073 }
074
075 public static JournalArticleDisplay getDisplay(
076 long groupId, String articleId, double version, String templateId,
077 String viewMode, String languageId, ThemeDisplay themeDisplay,
078 int page, String xmlRequest) {
079
080 return getJournalContent().getDisplay(
081 groupId, articleId, version, templateId, viewMode, languageId,
082 themeDisplay, page, xmlRequest);
083 }
084
085 public static JournalArticleDisplay getDisplay(
086 long groupId, String articleId, String viewMode, String languageId,
087 String xmlRequest) {
088
089 return getJournalContent().getDisplay(
090 groupId, articleId, viewMode, languageId, xmlRequest);
091 }
092
093 public static JournalArticleDisplay getDisplay(
094 long groupId, String articleId, String templateId, String viewMode,
095 String languageId, String xmlRequest) {
096
097 return getJournalContent().getDisplay(
098 groupId, articleId, templateId, viewMode, languageId, xmlRequest);
099 }
100
101 public static JournalArticleDisplay getDisplay(
102 long groupId, String articleId, String templateId, String viewMode,
103 String languageId, ThemeDisplay themeDisplay) {
104
105 return getJournalContent().getDisplay(
106 groupId, articleId, templateId, viewMode, languageId, themeDisplay);
107 }
108
109 public static JournalArticleDisplay getDisplay(
110 long groupId, String articleId, String templateId, String viewMode,
111 String languageId, ThemeDisplay themeDisplay, int page,
112 String xmlRequest) {
113
114 return getJournalContent().getDisplay(
115 groupId, articleId, templateId, viewMode, languageId, themeDisplay,
116 page, xmlRequest);
117 }
118
119 public static JournalArticleDisplay getDisplay(
120 long groupId, String articleId, String viewMode, String languageId,
121 ThemeDisplay themeDisplay) {
122
123 return getJournalContent().getDisplay(
124 groupId, articleId, viewMode, languageId, themeDisplay);
125 }
126
127 public static JournalArticleDisplay getDisplay(
128 long groupId, String articleId, String viewMode, String languageId,
129 ThemeDisplay themeDisplay, int page) {
130
131 return getJournalContent().getDisplay(
132 groupId, articleId, viewMode, languageId, themeDisplay, page);
133 }
134
135 public static JournalContent getJournalContent() {
136 return _journalContent;
137 }
138
139 public void setJournalContent(JournalContent journalContent) {
140 _journalContent = journalContent;
141 }
142
143 private static JournalContent _journalContent;
144
145 }