001
014
015 package com.liferay.portlet.journalcontent.util;
016
017 import com.liferay.portal.kernel.security.pacl.permission.PortalRuntimePermission;
018 import com.liferay.portal.theme.ThemeDisplay;
019 import com.liferay.portlet.journal.model.JournalArticleDisplay;
020
021
024 public class JournalContentUtil {
025
026 public static void clearCache() {
027 getJournalContent().clearCache();
028 }
029
030 public static void clearCache(
031 long groupId, String articleId, String ddmTemplateKey) {
032
033 getJournalContent().clearCache(groupId, articleId, ddmTemplateKey);
034 }
035
036 public static String getContent(
037 long groupId, String articleId, String viewMode, String languageId,
038 String xmlRequest) {
039
040 return getJournalContent().getContent(
041 groupId, articleId, viewMode, languageId, xmlRequest);
042 }
043
044 public static String getContent(
045 long groupId, String articleId, String ddmTemplateKey, String viewMode,
046 String languageId, String xmlRequest) {
047
048 return getJournalContent().getContent(
049 groupId, articleId, ddmTemplateKey, viewMode, languageId,
050 xmlRequest);
051 }
052
053 public static String getContent(
054 long groupId, String articleId, String ddmTemplateKey, String viewMode,
055 String languageId, ThemeDisplay themeDisplay) {
056
057 return getJournalContent().getContent(
058 groupId, articleId, ddmTemplateKey, viewMode, languageId,
059 themeDisplay);
060 }
061
062 public static String getContent(
063 long groupId, String articleId, String ddmTemplateKey, String viewMode,
064 String languageId, ThemeDisplay themeDisplay, String xmlRequest) {
065
066 return getJournalContent().getContent(
067 groupId, articleId, ddmTemplateKey, viewMode, languageId,
068 themeDisplay, xmlRequest);
069 }
070
071 public static String getContent(
072 long groupId, String articleId, String viewMode, String languageId,
073 ThemeDisplay themeDisplay) {
074
075 return getJournalContent().getContent(
076 groupId, articleId, viewMode, languageId, themeDisplay);
077 }
078
079 public static JournalArticleDisplay getDisplay(
080 long groupId, String articleId, double version, String ddmTemplateKey,
081 String viewMode, String languageId, ThemeDisplay themeDisplay, int page,
082 String xmlRequest) {
083
084 return getJournalContent().getDisplay(
085 groupId, articleId, version, ddmTemplateKey, viewMode, languageId,
086 themeDisplay, page, xmlRequest);
087 }
088
089 public static JournalArticleDisplay getDisplay(
090 long groupId, String articleId, String viewMode, String languageId,
091 String xmlRequest) {
092
093 return getJournalContent().getDisplay(
094 groupId, articleId, viewMode, languageId, xmlRequest);
095 }
096
097 public static JournalArticleDisplay getDisplay(
098 long groupId, String articleId, String ddmTemplateKey, String viewMode,
099 String languageId, String xmlRequest) {
100
101 return getJournalContent().getDisplay(
102 groupId, articleId, ddmTemplateKey, viewMode, languageId,
103 xmlRequest);
104 }
105
106 public static JournalArticleDisplay getDisplay(
107 long groupId, String articleId, String ddmTemplateKey, String viewMode,
108 String languageId, ThemeDisplay themeDisplay) {
109
110 return getJournalContent().getDisplay(
111 groupId, articleId, ddmTemplateKey, viewMode, languageId,
112 themeDisplay);
113 }
114
115 public static JournalArticleDisplay getDisplay(
116 long groupId, String articleId, String ddmTemplateKey, String viewMode,
117 String languageId, ThemeDisplay themeDisplay, int page,
118 String xmlRequest) {
119
120 return getJournalContent().getDisplay(
121 groupId, articleId, ddmTemplateKey, viewMode, languageId,
122 themeDisplay, page, xmlRequest);
123 }
124
125 public static JournalArticleDisplay getDisplay(
126 long groupId, String articleId, String viewMode, String languageId,
127 ThemeDisplay themeDisplay) {
128
129 return getJournalContent().getDisplay(
130 groupId, articleId, viewMode, languageId, themeDisplay);
131 }
132
133 public static JournalArticleDisplay getDisplay(
134 long groupId, String articleId, String viewMode, String languageId,
135 ThemeDisplay themeDisplay, int page) {
136
137 return getJournalContent().getDisplay(
138 groupId, articleId, viewMode, languageId, themeDisplay, page);
139 }
140
141 public static JournalContent getJournalContent() {
142 PortalRuntimePermission.checkGetBeanProperty(JournalContentUtil.class);
143
144 return _journalContent;
145 }
146
147 public void setJournalContent(JournalContent journalContent) {
148 PortalRuntimePermission.checkSetBeanProperty(getClass());
149
150 _journalContent = journalContent;
151 }
152
153 private static JournalContent _journalContent;
154
155 }