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 com.liferay.portlet.wiki.model.WikiPage getDraftPage(
154 long nodeId, java.lang.String title)
155 throws com.liferay.portal.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.SystemException {
157 return getService().getDraftPage(nodeId, title);
158 }
159
160 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
161 long nodeId, int max)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException {
164 return getService().getNodePages(nodeId, max);
165 }
166
167 public static java.lang.String getNodePagesRSS(long nodeId, int max,
168 java.lang.String type, double version, java.lang.String displayStyle,
169 java.lang.String feedURL, java.lang.String entryURL)
170 throws com.liferay.portal.kernel.exception.PortalException,
171 com.liferay.portal.kernel.exception.SystemException {
172 return getService()
173 .getNodePagesRSS(nodeId, max, type, version, displayStyle,
174 feedURL, entryURL);
175 }
176
177 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
178 java.lang.String title)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getService().getPage(nodeId, title);
182 }
183
184 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
185 java.lang.String title, java.lang.Boolean head)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return getService().getPage(nodeId, title, head);
189 }
190
191 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
192 java.lang.String title, double version)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException {
195 return getService().getPage(nodeId, title, version);
196 }
197
198 public static java.lang.String getPagesRSS(long companyId, long nodeId,
199 java.lang.String title, int max, java.lang.String type, double version,
200 java.lang.String displayStyle, java.lang.String feedURL,
201 java.lang.String entryURL, java.util.Locale locale)
202 throws com.liferay.portal.kernel.exception.PortalException,
203 com.liferay.portal.kernel.exception.SystemException {
204 return getService()
205 .getPagesRSS(companyId, nodeId, title, max, type, version,
206 displayStyle, feedURL, entryURL, locale);
207 }
208
209 public static java.lang.String[] getTempPageAttachmentNames(long nodeId,
210 java.lang.String tempFolderName)
211 throws com.liferay.portal.kernel.exception.PortalException,
212 com.liferay.portal.kernel.exception.SystemException {
213 return getService().getTempPageAttachmentNames(nodeId, tempFolderName);
214 }
215
216 public static void movePage(long nodeId, java.lang.String title,
217 java.lang.String newTitle,
218 com.liferay.portal.service.ServiceContext serviceContext)
219 throws com.liferay.portal.kernel.exception.PortalException,
220 com.liferay.portal.kernel.exception.SystemException {
221 getService().movePage(nodeId, title, newTitle, serviceContext);
222 }
223
224 public static void movePageAttachmentFromTrash(long nodeId,
225 java.lang.String title, java.lang.String deletedFileName)
226 throws com.liferay.portal.kernel.exception.PortalException,
227 com.liferay.portal.kernel.exception.SystemException {
228 getService().movePageAttachmentFromTrash(nodeId, title, deletedFileName);
229 }
230
231 public static java.lang.String movePageAttachmentToTrash(long nodeId,
232 java.lang.String title, java.lang.String fileName)
233 throws com.liferay.portal.kernel.exception.PortalException,
234 com.liferay.portal.kernel.exception.SystemException {
235 return getService().movePageAttachmentToTrash(nodeId, title, fileName);
236 }
237
238 public static void movePageToTrash(long nodeId, java.lang.String title)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException {
241 getService().movePageToTrash(nodeId, title);
242 }
243
244 public static void movePageToTrash(long nodeId, java.lang.String title,
245 double version)
246 throws com.liferay.portal.kernel.exception.PortalException,
247 com.liferay.portal.kernel.exception.SystemException {
248 getService().movePageToTrash(nodeId, title, version);
249 }
250
251 public static void restorePageFromTrash(long resourcePrimKey)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException {
254 getService().restorePageFromTrash(resourcePrimKey);
255 }
256
257 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
258 long nodeId, java.lang.String title, double version,
259 com.liferay.portal.service.ServiceContext serviceContext)
260 throws com.liferay.portal.kernel.exception.PortalException,
261 com.liferay.portal.kernel.exception.SystemException {
262 return getService().revertPage(nodeId, title, version, serviceContext);
263 }
264
265 public static void subscribePage(long nodeId, java.lang.String title)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException {
268 getService().subscribePage(nodeId, title);
269 }
270
271 public static void unsubscribePage(long nodeId, java.lang.String title)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException {
274 getService().unsubscribePage(nodeId, title);
275 }
276
277 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
278 long nodeId, java.lang.String title, double version,
279 java.lang.String content, java.lang.String summary, boolean minorEdit,
280 java.lang.String format, java.lang.String parentTitle,
281 java.lang.String redirectTitle,
282 com.liferay.portal.service.ServiceContext serviceContext)
283 throws com.liferay.portal.kernel.exception.PortalException,
284 com.liferay.portal.kernel.exception.SystemException {
285 return getService()
286 .updatePage(nodeId, title, version, content, summary,
287 minorEdit, format, parentTitle, redirectTitle, serviceContext);
288 }
289
290 public static WikiPageService getService() {
291 if (_service == null) {
292 _service = (WikiPageService)PortalBeanLocatorUtil.locate(WikiPageService.class.getName());
293
294 ReferenceRegistry.registerReference(WikiPageServiceUtil.class,
295 "_service");
296 }
297
298 return _service;
299 }
300
301
304 public void setService(WikiPageService service) {
305 }
306
307 private static WikiPageService _service;
308 }