1
22
23 package com.liferay.portlet.journal.service;
24
25
26
53 public class JournalArticleServiceUtil {
54 public static com.liferay.portlet.journal.model.JournalArticle addArticle(
55 java.lang.String articleId, boolean autoArticleId, long plid,
56 java.lang.String title, java.lang.String description,
57 java.lang.String content, java.lang.String type,
58 java.lang.String structureId, java.lang.String templateId,
59 int displayDateMonth, int displayDateDay, int displayDateYear,
60 int displayDateHour, int displayDateMinute, int expirationDateMonth,
61 int expirationDateDay, int expirationDateYear, int expirationDateHour,
62 int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
63 int reviewDateDay, int reviewDateYear, int reviewDateHour,
64 int reviewDateMinute, boolean neverReview, boolean indexable,
65 boolean smallImage, java.lang.String smallImageURL,
66 java.io.File smallFile, java.util.Map<String, byte[]> images,
67 java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
68 java.lang.String[] tagsEntries, boolean addCommunityPermissions,
69 boolean addGuestPermissions)
70 throws com.liferay.portal.PortalException,
71 com.liferay.portal.SystemException, java.rmi.RemoteException {
72 JournalArticleService journalArticleService = JournalArticleServiceFactory.getService();
73
74 return journalArticleService.addArticle(articleId, autoArticleId, plid,
75 title, description, content, type, structureId, templateId,
76 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
77 displayDateMinute, expirationDateMonth, expirationDateDay,
78 expirationDateYear, expirationDateHour, expirationDateMinute,
79 neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
80 reviewDateHour, reviewDateMinute, neverReview, indexable,
81 smallImage, smallImageURL, smallFile, images, articleURL, prefs,
82 tagsEntries, addCommunityPermissions, addGuestPermissions);
83 }
84
85 public static com.liferay.portlet.journal.model.JournalArticle addArticle(
86 java.lang.String articleId, boolean autoArticleId, long plid,
87 java.lang.String title, java.lang.String description,
88 java.lang.String content, java.lang.String type,
89 java.lang.String structureId, java.lang.String templateId,
90 int displayDateMonth, int displayDateDay, int displayDateYear,
91 int displayDateHour, int displayDateMinute, int expirationDateMonth,
92 int expirationDateDay, int expirationDateYear, int expirationDateHour,
93 int expirationDateMinute, boolean neverExpire, int reviewDateMonth,
94 int reviewDateDay, int reviewDateYear, int reviewDateHour,
95 int reviewDateMinute, boolean neverReview, boolean indexable,
96 boolean smallImage, java.lang.String smallImageURL,
97 java.io.File smallFile, java.util.Map<String, byte[]> images,
98 java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
99 java.lang.String[] tagsEntries,
100 java.lang.String[] communityPermissions,
101 java.lang.String[] guestPermissions)
102 throws com.liferay.portal.PortalException,
103 com.liferay.portal.SystemException, java.rmi.RemoteException {
104 JournalArticleService journalArticleService = JournalArticleServiceFactory.getService();
105
106 return journalArticleService.addArticle(articleId, autoArticleId, plid,
107 title, description, content, type, structureId, templateId,
108 displayDateMonth, displayDateDay, displayDateYear, displayDateHour,
109 displayDateMinute, expirationDateMonth, expirationDateDay,
110 expirationDateYear, expirationDateHour, expirationDateMinute,
111 neverExpire, reviewDateMonth, reviewDateDay, reviewDateYear,
112 reviewDateHour, reviewDateMinute, neverReview, indexable,
113 smallImage, smallImageURL, smallFile, images, articleURL, prefs,
114 tagsEntries, communityPermissions, guestPermissions);
115 }
116
117 public static com.liferay.portlet.journal.model.JournalArticle approveArticle(
118 long groupId, java.lang.String articleId, double version, long plid,
119 java.lang.String articleURL, javax.portlet.PortletPreferences prefs)
120 throws com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException, java.rmi.RemoteException {
122 JournalArticleService journalArticleService = JournalArticleServiceFactory.getService();
123
124 return journalArticleService.approveArticle(groupId, articleId,
125 version, plid, articleURL, prefs);
126 }
127
128 public static com.liferay.portlet.journal.model.JournalArticle getArticle(
129 long groupId, java.lang.String articleId, double version)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException, java.rmi.RemoteException {
132 JournalArticleService journalArticleService = JournalArticleServiceFactory.getService();
133
134 return journalArticleService.getArticle(groupId, articleId, version);
135 }
136
137 public static java.lang.String getArticleContent(long groupId,
138 java.lang.String articleId, java.lang.String languageId,
139 com.liferay.portal.theme.ThemeDisplay themeDisplay)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException, java.rmi.RemoteException {
142 JournalArticleService journalArticleService = JournalArticleServiceFactory.getService();
143
144 return journalArticleService.getArticleContent(groupId, articleId,
145 languageId, themeDisplay);
146 }
147
148 public static java.lang.String getArticleContent(long groupId,
149 java.lang.String articleId, double version,
150 java.lang.String languageId,
151 com.liferay.portal.theme.ThemeDisplay themeDisplay)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException, java.rmi.RemoteException {
154 JournalArticleService journalArticleService = JournalArticleServiceFactory.getService();
155
156 return journalArticleService.getArticleContent(groupId, articleId,
157 version, languageId, themeDisplay);
158 }
159
160 public static void deleteArticle(long groupId, java.lang.String articleId,
161 double version, java.lang.String articleURL,
162 javax.portlet.PortletPreferences prefs)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException, java.rmi.RemoteException {
165 JournalArticleService journalArticleService = JournalArticleServiceFactory.getService();
166
167 journalArticleService.deleteArticle(groupId, articleId, version,
168 articleURL, prefs);
169 }
170
171 public static void expireArticle(long groupId, java.lang.String articleId,
172 double version, java.lang.String articleURL,
173 javax.portlet.PortletPreferences prefs)
174 throws com.liferay.portal.PortalException,
175 com.liferay.portal.SystemException, java.rmi.RemoteException {
176 JournalArticleService journalArticleService = JournalArticleServiceFactory.getService();
177
178 journalArticleService.expireArticle(groupId, articleId, version,
179 articleURL, prefs);
180 }
181
182 public static void removeArticleLocale(long companyId,
183 java.lang.String languageId)
184 throws com.liferay.portal.PortalException,
185 com.liferay.portal.SystemException, java.rmi.RemoteException {
186 JournalArticleService journalArticleService = JournalArticleServiceFactory.getService();
187
188 journalArticleService.removeArticleLocale(companyId, languageId);
189 }
190
191 public static com.liferay.portlet.journal.model.JournalArticle removeArticleLocale(
192 long groupId, java.lang.String articleId, double version,
193 java.lang.String languageId)
194 throws com.liferay.portal.PortalException,
195 com.liferay.portal.SystemException, java.rmi.RemoteException {
196 JournalArticleService journalArticleService = JournalArticleServiceFactory.getService();
197
198 return journalArticleService.removeArticleLocale(groupId, articleId,
199 version, languageId);
200 }
201
202 public static com.liferay.portlet.journal.model.JournalArticle updateArticle(
203 long groupId, java.lang.String articleId, double version,
204 boolean incrementVersion, java.lang.String title,
205 java.lang.String description, java.lang.String content,
206 java.lang.String type, java.lang.String structureId,
207 java.lang.String templateId, int displayDateMonth, int displayDateDay,
208 int displayDateYear, int displayDateHour, int displayDateMinute,
209 int expirationDateMonth, int expirationDateDay, int expirationDateYear,
210 int expirationDateHour, int expirationDateMinute, boolean neverExpire,
211 int reviewDateMonth, int reviewDateDay, int reviewDateYear,
212 int reviewDateHour, int reviewDateMinute, boolean neverReview,
213 boolean indexable, boolean smallImage, java.lang.String smallImageURL,
214 java.io.File smallFile, java.util.Map<String, byte[]> images,
215 java.lang.String articleURL, javax.portlet.PortletPreferences prefs,
216 java.lang.String[] tagsEntries)
217 throws com.liferay.portal.PortalException,
218 com.liferay.portal.SystemException, java.rmi.RemoteException {
219 JournalArticleService journalArticleService = JournalArticleServiceFactory.getService();
220
221 return journalArticleService.updateArticle(groupId, articleId, version,
222 incrementVersion, title, description, content, type, structureId,
223 templateId, displayDateMonth, displayDateDay, displayDateYear,
224 displayDateHour, displayDateMinute, expirationDateMonth,
225 expirationDateDay, expirationDateYear, expirationDateHour,
226 expirationDateMinute, neverExpire, reviewDateMonth, reviewDateDay,
227 reviewDateYear, reviewDateHour, reviewDateMinute, neverReview,
228 indexable, smallImage, smallImageURL, smallFile, images,
229 articleURL, prefs, tagsEntries);
230 }
231
232 public static com.liferay.portlet.journal.model.JournalArticle updateContent(
233 long groupId, java.lang.String articleId, double version,
234 java.lang.String content)
235 throws com.liferay.portal.PortalException,
236 com.liferay.portal.SystemException, java.rmi.RemoteException {
237 JournalArticleService journalArticleService = JournalArticleServiceFactory.getService();
238
239 return journalArticleService.updateContent(groupId, articleId, version,
240 content);
241 }
242 }