001
014
015 package com.liferay.portlet.wiki.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class WikiPageServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
059 java.lang.String title, java.lang.String content,
060 java.lang.String summary, boolean minorEdit,
061 com.liferay.portal.service.ServiceContext serviceContext)
062 throws com.liferay.portal.kernel.exception.PortalException,
063 com.liferay.portal.kernel.exception.SystemException {
064 return getService()
065 .addPage(nodeId, title, content, summary, minorEdit,
066 serviceContext);
067 }
068
069 public static com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
070 java.lang.String title, java.lang.String content,
071 java.lang.String summary, boolean minorEdit, java.lang.String format,
072 java.lang.String parentTitle, java.lang.String redirectTitle,
073 com.liferay.portal.service.ServiceContext serviceContext)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService()
077 .addPage(nodeId, title, content, summary, minorEdit, format,
078 parentTitle, redirectTitle, serviceContext);
079 }
080
081 public static void addPageAttachment(long nodeId, java.lang.String title,
082 java.lang.String fileName, java.io.File file)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException {
085 getService().addPageAttachment(nodeId, title, fileName, file);
086 }
087
088 public static void addPageAttachment(long nodeId, java.lang.String title,
089 java.lang.String fileName, java.io.InputStream inputStream)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException {
092 getService().addPageAttachment(nodeId, title, fileName, inputStream);
093 }
094
095 public static void addPageAttachments(long nodeId, java.lang.String title,
096 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<java.lang.String, java.io.InputStream>> inputStreamOVPs)
097 throws com.liferay.portal.kernel.exception.PortalException,
098 com.liferay.portal.kernel.exception.SystemException {
099 getService().addPageAttachments(nodeId, title, inputStreamOVPs);
100 }
101
102 public static java.lang.String addTempPageAttachment(long nodeId,
103 java.lang.String fileName, java.lang.String tempFolderName,
104 java.io.InputStream inputStream)
105 throws com.liferay.portal.kernel.exception.PortalException,
106 com.liferay.portal.kernel.exception.SystemException {
107 return getService()
108 .addTempPageAttachment(nodeId, fileName, tempFolderName,
109 inputStream);
110 }
111
112 public static void changeParent(long nodeId, java.lang.String title,
113 java.lang.String newParentTitle,
114 com.liferay.portal.service.ServiceContext serviceContext)
115 throws com.liferay.portal.kernel.exception.PortalException,
116 com.liferay.portal.kernel.exception.SystemException {
117 getService().changeParent(nodeId, title, newParentTitle, serviceContext);
118 }
119
120 public static void deletePage(long nodeId, java.lang.String title)
121 throws com.liferay.portal.kernel.exception.PortalException,
122 com.liferay.portal.kernel.exception.SystemException {
123 getService().deletePage(nodeId, title);
124 }
125
126 public static void deletePage(long nodeId, java.lang.String title,
127 double version)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException {
130 getService().deletePage(nodeId, title, version);
131 }
132
133 public static void deletePageAttachment(long nodeId,
134 java.lang.String title, java.lang.String fileName)
135 throws com.liferay.portal.kernel.exception.PortalException,
136 com.liferay.portal.kernel.exception.SystemException {
137 getService().deletePageAttachment(nodeId, title, fileName);
138 }
139
140 public static void deletePageAttachments(long nodeId, java.lang.String title)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException {
143 getService().deletePageAttachments(nodeId, title);
144 }
145
146 public static void deleteTempPageAttachment(long nodeId,
147 java.lang.String fileName, java.lang.String tempFolderName)
148 throws com.liferay.portal.kernel.exception.PortalException,
149 com.liferay.portal.kernel.exception.SystemException {
150 getService().deleteTempPageAttachment(nodeId, fileName, tempFolderName);
151 }
152
153 public static void deleteTrashPageAttachments(long nodeId,
154 java.lang.String title)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException {
157 getService().deleteTrashPageAttachments(nodeId, title);
158 }
159
160 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildren(
161 long groupId, long nodeId, boolean head, java.lang.String parentTitle)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException {
164 return getService().getChildren(groupId, nodeId, head, parentTitle);
165 }
166
167 public static com.liferay.portlet.wiki.model.WikiPage getDraftPage(
168 long nodeId, java.lang.String title)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException {
171 return getService().getDraftPage(nodeId, title);
172 }
173
174 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
175 long nodeId, int max)
176 throws com.liferay.portal.kernel.exception.PortalException,
177 com.liferay.portal.kernel.exception.SystemException {
178 return getService().getNodePages(nodeId, max);
179 }
180
181 public static java.lang.String getNodePagesRSS(long nodeId, int max,
182 java.lang.String type, double version, java.lang.String displayStyle,
183 java.lang.String feedURL, java.lang.String entryURL)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException {
186 return getService()
187 .getNodePagesRSS(nodeId, max, type, version, displayStyle,
188 feedURL, entryURL);
189 }
190
191 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getOrphans(
192 long groupId, long nodeId)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException {
195 return getService().getOrphans(groupId, nodeId);
196 }
197
198 public static com.liferay.portlet.wiki.model.WikiPage getPage(
199 long groupId, long nodeId, java.lang.String title)
200 throws com.liferay.portal.kernel.exception.PortalException,
201 com.liferay.portal.kernel.exception.SystemException {
202 return getService().getPage(groupId, nodeId, title);
203 }
204
205 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
206 java.lang.String title)
207 throws com.liferay.portal.kernel.exception.PortalException,
208 com.liferay.portal.kernel.exception.SystemException {
209 return getService().getPage(nodeId, title);
210 }
211
212 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
213 java.lang.String title, java.lang.Boolean head)
214 throws com.liferay.portal.kernel.exception.PortalException,
215 com.liferay.portal.kernel.exception.SystemException {
216 return getService().getPage(nodeId, title, head);
217 }
218
219 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
220 java.lang.String title, double version)
221 throws com.liferay.portal.kernel.exception.PortalException,
222 com.liferay.portal.kernel.exception.SystemException {
223 return getService().getPage(nodeId, title, version);
224 }
225
226 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
227 long groupId, long nodeId, boolean head, int status, int start,
228 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
229 throws com.liferay.portal.kernel.exception.PortalException,
230 com.liferay.portal.kernel.exception.SystemException {
231 return getService()
232 .getPages(groupId, nodeId, head, status, start, end, obc);
233 }
234
235 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getPages(
236 long groupId, long userId, long nodeId, int status, int start, int end)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException {
239 return getService().getPages(groupId, userId, nodeId, status, start, end);
240 }
241
242 public static int getPagesCount(long groupId, long nodeId, boolean head)
243 throws com.liferay.portal.kernel.exception.PortalException,
244 com.liferay.portal.kernel.exception.SystemException {
245 return getService().getPagesCount(groupId, nodeId, head);
246 }
247
248 public static int getPagesCount(long groupId, long userId, long nodeId,
249 int status)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException {
252 return getService().getPagesCount(groupId, userId, nodeId, status);
253 }
254
255 public static java.lang.String getPagesRSS(long companyId, long nodeId,
256 java.lang.String title, int max, java.lang.String type, double version,
257 java.lang.String displayStyle, java.lang.String feedURL,
258 java.lang.String entryURL, java.util.Locale locale)
259 throws com.liferay.portal.kernel.exception.PortalException,
260 com.liferay.portal.kernel.exception.SystemException {
261 return getService()
262 .getPagesRSS(companyId, nodeId, title, max, type, version,
263 displayStyle, feedURL, entryURL, locale);
264 }
265
266 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getRecentChanges(
267 long groupId, long nodeId, int start, int end)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException {
270 return getService().getRecentChanges(groupId, nodeId, start, end);
271 }
272
273 public static int getRecentChangesCount(long groupId, long nodeId)
274 throws com.liferay.portal.kernel.exception.PortalException,
275 com.liferay.portal.kernel.exception.SystemException {
276 return getService().getRecentChangesCount(groupId, nodeId);
277 }
278
279 public static java.lang.String[] getTempPageAttachmentNames(long nodeId,
280 java.lang.String tempFolderName)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException {
283 return getService().getTempPageAttachmentNames(nodeId, tempFolderName);
284 }
285
286 public static void movePage(long nodeId, java.lang.String title,
287 java.lang.String newTitle,
288 com.liferay.portal.service.ServiceContext serviceContext)
289 throws com.liferay.portal.kernel.exception.PortalException,
290 com.liferay.portal.kernel.exception.SystemException {
291 getService().movePage(nodeId, title, newTitle, serviceContext);
292 }
293
294 public static long movePageAttachmentToTrash(long nodeId,
295 java.lang.String title, java.lang.String fileName)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException {
298 return getService().movePageAttachmentToTrash(nodeId, title, fileName);
299 }
300
301 public static void movePageToTrash(long nodeId, java.lang.String title)
302 throws com.liferay.portal.kernel.exception.PortalException,
303 com.liferay.portal.kernel.exception.SystemException {
304 getService().movePageToTrash(nodeId, title);
305 }
306
307 public static void movePageToTrash(long nodeId, java.lang.String title,
308 double version)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException {
311 getService().movePageToTrash(nodeId, title, version);
312 }
313
314 public static void restorePageAttachmentFromTrash(long nodeId,
315 java.lang.String title, java.lang.String fileName)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException {
318 getService().restorePageAttachmentFromTrash(nodeId, title, fileName);
319 }
320
321 public static void restorePageFromTrash(long resourcePrimKey)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException {
324 getService().restorePageFromTrash(resourcePrimKey);
325 }
326
327 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
328 long nodeId, java.lang.String title, double version,
329 com.liferay.portal.service.ServiceContext serviceContext)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException {
332 return getService().revertPage(nodeId, title, version, serviceContext);
333 }
334
335 public static void subscribePage(long nodeId, java.lang.String title)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException {
338 getService().subscribePage(nodeId, title);
339 }
340
341 public static void unsubscribePage(long nodeId, java.lang.String title)
342 throws com.liferay.portal.kernel.exception.PortalException,
343 com.liferay.portal.kernel.exception.SystemException {
344 getService().unsubscribePage(nodeId, title);
345 }
346
347 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
348 long nodeId, java.lang.String title, double version,
349 java.lang.String content, java.lang.String summary, boolean minorEdit,
350 java.lang.String format, java.lang.String parentTitle,
351 java.lang.String redirectTitle,
352 com.liferay.portal.service.ServiceContext serviceContext)
353 throws com.liferay.portal.kernel.exception.PortalException,
354 com.liferay.portal.kernel.exception.SystemException {
355 return getService()
356 .updatePage(nodeId, title, version, content, summary,
357 minorEdit, format, parentTitle, redirectTitle, serviceContext);
358 }
359
360 public static WikiPageService getService() {
361 if (_service == null) {
362 _service = (WikiPageService)PortalBeanLocatorUtil.locate(WikiPageService.class.getName());
363
364 ReferenceRegistry.registerReference(WikiPageServiceUtil.class,
365 "_service");
366 }
367
368 return _service;
369 }
370
371
374 public void setService(WikiPageService service) {
375 }
376
377 private static WikiPageService _service;
378 }