001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.wiki.service;
022:
023: /**
024: * <a href="WikiPageLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * <p>
027: * ServiceBuilder generated this class. Modifications in this class will be
028: * overwritten the next time is generated.
029: * </p>
030: *
031: * <p>
032: * This class provides static methods for the
033: * <code>com.liferay.portlet.wiki.service.WikiPageLocalService</code>
034: * bean. The static methods of this class calls the same methods of the bean
035: * instance. It's convenient to be able to just write one line to call a method
036: * on a bean instead of writing a lookup call and a method call.
037: * </p>
038: *
039: * <p>
040: * <code>com.liferay.portlet.wiki.service.WikiPageLocalServiceFactory</code>
041: * is responsible for the lookup of the bean.
042: * </p>
043: *
044: * @author Brian Wing Shun Chan
045: *
046: * @see com.liferay.portlet.wiki.service.WikiPageLocalService
047: * @see com.liferay.portlet.wiki.service.WikiPageLocalServiceFactory
048: *
049: */
050: public class WikiPageLocalServiceUtil {
051: public static com.liferay.portlet.wiki.model.WikiPage addWikiPage(
052: com.liferay.portlet.wiki.model.WikiPage model)
053: throws com.liferay.portal.SystemException {
054: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
055: .getService();
056:
057: return wikiPageLocalService.addWikiPage(model);
058: }
059:
060: public static java.util.List dynamicQuery(
061: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
062: throws com.liferay.portal.SystemException {
063: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
064: .getService();
065:
066: return wikiPageLocalService.dynamicQuery(queryInitializer);
067: }
068:
069: public static java.util.List dynamicQuery(
070: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
071: int begin, int end)
072: throws com.liferay.portal.SystemException {
073: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
074: .getService();
075:
076: return wikiPageLocalService.dynamicQuery(queryInitializer,
077: begin, end);
078: }
079:
080: public static com.liferay.portlet.wiki.model.WikiPage updateWikiPage(
081: com.liferay.portlet.wiki.model.WikiPage model)
082: throws com.liferay.portal.SystemException {
083: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
084: .getService();
085:
086: return wikiPageLocalService.updateWikiPage(model);
087: }
088:
089: public static com.liferay.portlet.wiki.service.persistence.WikiNodePersistence getWikiNodePersistence() {
090: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
091: .getService();
092:
093: return wikiPageLocalService.getWikiNodePersistence();
094: }
095:
096: public static void setWikiNodePersistence(
097: com.liferay.portlet.wiki.service.persistence.WikiNodePersistence wikiNodePersistence) {
098: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
099: .getService();
100:
101: wikiPageLocalService
102: .setWikiNodePersistence(wikiNodePersistence);
103: }
104:
105: public static com.liferay.portlet.wiki.service.persistence.WikiPagePersistence getWikiPagePersistence() {
106: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
107: .getService();
108:
109: return wikiPageLocalService.getWikiPagePersistence();
110: }
111:
112: public static void setWikiPagePersistence(
113: com.liferay.portlet.wiki.service.persistence.WikiPagePersistence wikiPagePersistence) {
114: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
115: .getService();
116:
117: wikiPageLocalService
118: .setWikiPagePersistence(wikiPagePersistence);
119: }
120:
121: public static com.liferay.portlet.wiki.service.persistence.WikiPageFinder getWikiPageFinder() {
122: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
123: .getService();
124:
125: return wikiPageLocalService.getWikiPageFinder();
126: }
127:
128: public static void setWikiPageFinder(
129: com.liferay.portlet.wiki.service.persistence.WikiPageFinder wikiPageFinder) {
130: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
131: .getService();
132:
133: wikiPageLocalService.setWikiPageFinder(wikiPageFinder);
134: }
135:
136: public static com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence getWikiPageResourcePersistence() {
137: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
138: .getService();
139:
140: return wikiPageLocalService.getWikiPageResourcePersistence();
141: }
142:
143: public static void setWikiPageResourcePersistence(
144: com.liferay.portlet.wiki.service.persistence.WikiPageResourcePersistence wikiPageResourcePersistence) {
145: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
146: .getService();
147:
148: wikiPageLocalService
149: .setWikiPageResourcePersistence(wikiPageResourcePersistence);
150: }
151:
152: public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
153: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
154: .getService();
155:
156: return wikiPageLocalService.getResourcePersistence();
157: }
158:
159: public static void setResourcePersistence(
160: com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
161: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
162: .getService();
163:
164: wikiPageLocalService
165: .setResourcePersistence(resourcePersistence);
166: }
167:
168: public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
169: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
170: .getService();
171:
172: return wikiPageLocalService.getResourceFinder();
173: }
174:
175: public static void setResourceFinder(
176: com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
177: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
178: .getService();
179:
180: wikiPageLocalService.setResourceFinder(resourceFinder);
181: }
182:
183: public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
184: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
185: .getService();
186:
187: return wikiPageLocalService.getUserPersistence();
188: }
189:
190: public static void setUserPersistence(
191: com.liferay.portal.service.persistence.UserPersistence userPersistence) {
192: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
193: .getService();
194:
195: wikiPageLocalService.setUserPersistence(userPersistence);
196: }
197:
198: public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
199: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
200: .getService();
201:
202: return wikiPageLocalService.getUserFinder();
203: }
204:
205: public static void setUserFinder(
206: com.liferay.portal.service.persistence.UserFinder userFinder) {
207: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
208: .getService();
209:
210: wikiPageLocalService.setUserFinder(userFinder);
211: }
212:
213: public static com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence getMBMessagePersistence() {
214: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
215: .getService();
216:
217: return wikiPageLocalService.getMBMessagePersistence();
218: }
219:
220: public static void setMBMessagePersistence(
221: com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence mbMessagePersistence) {
222: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
223: .getService();
224:
225: wikiPageLocalService
226: .setMBMessagePersistence(mbMessagePersistence);
227: }
228:
229: public static com.liferay.portlet.messageboards.service.persistence.MBMessageFinder getMBMessageFinder() {
230: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
231: .getService();
232:
233: return wikiPageLocalService.getMBMessageFinder();
234: }
235:
236: public static void setMBMessageFinder(
237: com.liferay.portlet.messageboards.service.persistence.MBMessageFinder mbMessageFinder) {
238: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
239: .getService();
240:
241: wikiPageLocalService.setMBMessageFinder(mbMessageFinder);
242: }
243:
244: public static com.liferay.portlet.tags.service.persistence.TagsAssetPersistence getTagsAssetPersistence() {
245: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
246: .getService();
247:
248: return wikiPageLocalService.getTagsAssetPersistence();
249: }
250:
251: public static void setTagsAssetPersistence(
252: com.liferay.portlet.tags.service.persistence.TagsAssetPersistence tagsAssetPersistence) {
253: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
254: .getService();
255:
256: wikiPageLocalService
257: .setTagsAssetPersistence(tagsAssetPersistence);
258: }
259:
260: public static com.liferay.portlet.tags.service.persistence.TagsAssetFinder getTagsAssetFinder() {
261: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
262: .getService();
263:
264: return wikiPageLocalService.getTagsAssetFinder();
265: }
266:
267: public static void setTagsAssetFinder(
268: com.liferay.portlet.tags.service.persistence.TagsAssetFinder tagsAssetFinder) {
269: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
270: .getService();
271:
272: wikiPageLocalService.setTagsAssetFinder(tagsAssetFinder);
273: }
274:
275: public static void afterPropertiesSet() {
276: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
277: .getService();
278:
279: wikiPageLocalService.afterPropertiesSet();
280: }
281:
282: public static com.liferay.portlet.wiki.model.WikiPage addPage(
283: long userId, long nodeId, java.lang.String title)
284: throws com.liferay.portal.PortalException,
285: com.liferay.portal.SystemException {
286: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
287: .getService();
288:
289: return wikiPageLocalService.addPage(userId, nodeId, title);
290: }
291:
292: public static com.liferay.portlet.wiki.model.WikiPage addPage(
293: long userId, long nodeId, java.lang.String title,
294: double version, java.lang.String content,
295: java.lang.String format, boolean head,
296: java.lang.String[] tagsEntries)
297: throws com.liferay.portal.PortalException,
298: com.liferay.portal.SystemException {
299: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
300: .getService();
301:
302: return wikiPageLocalService.addPage(userId, nodeId, title,
303: version, content, format, head, tagsEntries);
304: }
305:
306: public static com.liferay.portlet.wiki.model.WikiPage addPage(
307: java.lang.String uuid, long userId, long nodeId,
308: java.lang.String title, double version,
309: java.lang.String content, java.lang.String format,
310: boolean head, java.lang.String[] tagsEntries)
311: throws com.liferay.portal.PortalException,
312: com.liferay.portal.SystemException {
313: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
314: .getService();
315:
316: return wikiPageLocalService.addPage(uuid, userId, nodeId,
317: title, version, content, format, head, tagsEntries);
318: }
319:
320: public static void addPageResources(long nodeId,
321: java.lang.String title, boolean addCommunityPermissions,
322: boolean addGuestPermissions)
323: throws com.liferay.portal.PortalException,
324: com.liferay.portal.SystemException {
325: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
326: .getService();
327:
328: wikiPageLocalService.addPageResources(nodeId, title,
329: addCommunityPermissions, addGuestPermissions);
330: }
331:
332: public static void addPageResources(
333: com.liferay.portlet.wiki.model.WikiNode node,
334: com.liferay.portlet.wiki.model.WikiPage page,
335: boolean addCommunityPermissions, boolean addGuestPermissions)
336: throws com.liferay.portal.PortalException,
337: com.liferay.portal.SystemException {
338: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
339: .getService();
340:
341: wikiPageLocalService.addPageResources(node, page,
342: addCommunityPermissions, addGuestPermissions);
343: }
344:
345: public static void addPageResources(long nodeId,
346: java.lang.String title,
347: java.lang.String[] communityPermissions,
348: java.lang.String[] guestPermissions)
349: throws com.liferay.portal.PortalException,
350: com.liferay.portal.SystemException {
351: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
352: .getService();
353:
354: wikiPageLocalService.addPageResources(nodeId, title,
355: communityPermissions, guestPermissions);
356: }
357:
358: public static void addPageResources(
359: com.liferay.portlet.wiki.model.WikiNode node,
360: com.liferay.portlet.wiki.model.WikiPage page,
361: java.lang.String[] communityPermissions,
362: java.lang.String[] guestPermissions)
363: throws com.liferay.portal.PortalException,
364: com.liferay.portal.SystemException {
365: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
366: .getService();
367:
368: wikiPageLocalService.addPageResources(node, page,
369: communityPermissions, guestPermissions);
370: }
371:
372: public static void deletePage(long nodeId, java.lang.String title)
373: throws com.liferay.portal.PortalException,
374: com.liferay.portal.SystemException {
375: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
376: .getService();
377:
378: wikiPageLocalService.deletePage(nodeId, title);
379: }
380:
381: public static void deletePage(
382: com.liferay.portlet.wiki.model.WikiPage page)
383: throws com.liferay.portal.PortalException,
384: com.liferay.portal.SystemException {
385: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
386: .getService();
387:
388: wikiPageLocalService.deletePage(page);
389: }
390:
391: public static void deletePages(long nodeId)
392: throws com.liferay.portal.PortalException,
393: com.liferay.portal.SystemException {
394: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
395: .getService();
396:
397: wikiPageLocalService.deletePages(nodeId);
398: }
399:
400: public static java.util.List getNoAssetPages()
401: throws com.liferay.portal.SystemException {
402: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
403: .getService();
404:
405: return wikiPageLocalService.getNoAssetPages();
406: }
407:
408: public static java.util.List getLinks(long nodeId,
409: java.lang.String title)
410: throws com.liferay.portal.SystemException {
411: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
412: .getService();
413:
414: return wikiPageLocalService.getLinks(nodeId, title);
415: }
416:
417: public static java.util.List getOrphans(long nodeId)
418: throws com.liferay.portal.SystemException {
419: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
420: .getService();
421:
422: return wikiPageLocalService.getOrphans(nodeId);
423: }
424:
425: public static com.liferay.portlet.wiki.model.WikiPage getPage(
426: long nodeId, java.lang.String title)
427: throws com.liferay.portal.PortalException,
428: com.liferay.portal.SystemException {
429: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
430: .getService();
431:
432: return wikiPageLocalService.getPage(nodeId, title);
433: }
434:
435: public static com.liferay.portlet.wiki.model.WikiPage getPage(
436: long nodeId, java.lang.String title, double version)
437: throws com.liferay.portal.PortalException,
438: com.liferay.portal.SystemException {
439: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
440: .getService();
441:
442: return wikiPageLocalService.getPage(nodeId, title, version);
443: }
444:
445: public static java.util.List getPages(long nodeId, int begin,
446: int end) throws com.liferay.portal.SystemException {
447: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
448: .getService();
449:
450: return wikiPageLocalService.getPages(nodeId, begin, end);
451: }
452:
453: public static java.util.List getPages(long nodeId,
454: java.lang.String title, int begin, int end)
455: throws com.liferay.portal.SystemException {
456: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
457: .getService();
458:
459: return wikiPageLocalService.getPages(nodeId, title, begin, end);
460: }
461:
462: public static java.util.List getPages(long nodeId, boolean head,
463: int begin, int end)
464: throws com.liferay.portal.SystemException {
465: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
466: .getService();
467:
468: return wikiPageLocalService.getPages(nodeId, head, begin, end);
469: }
470:
471: public static java.util.List getPages(long nodeId,
472: java.lang.String title, boolean head, int begin, int end)
473: throws com.liferay.portal.SystemException {
474: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
475: .getService();
476:
477: return wikiPageLocalService.getPages(nodeId, title, head,
478: begin, end);
479: }
480:
481: public static int getPagesCount(long nodeId)
482: throws com.liferay.portal.SystemException {
483: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
484: .getService();
485:
486: return wikiPageLocalService.getPagesCount(nodeId);
487: }
488:
489: public static int getPagesCount(long nodeId, java.lang.String title)
490: throws com.liferay.portal.SystemException {
491: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
492: .getService();
493:
494: return wikiPageLocalService.getPagesCount(nodeId, title);
495: }
496:
497: public static int getPagesCount(long nodeId, boolean head)
498: throws com.liferay.portal.SystemException {
499: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
500: .getService();
501:
502: return wikiPageLocalService.getPagesCount(nodeId, head);
503: }
504:
505: public static int getPagesCount(long nodeId,
506: java.lang.String title, boolean head)
507: throws com.liferay.portal.SystemException {
508: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
509: .getService();
510:
511: return wikiPageLocalService.getPagesCount(nodeId, title, head);
512: }
513:
514: public static java.util.List getRecentChanges(long nodeId,
515: int begin, int end)
516: throws com.liferay.portal.SystemException {
517: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
518: .getService();
519:
520: return wikiPageLocalService
521: .getRecentChanges(nodeId, begin, end);
522: }
523:
524: public static int getRecentChangesCount(long nodeId)
525: throws com.liferay.portal.SystemException {
526: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
527: .getService();
528:
529: return wikiPageLocalService.getRecentChangesCount(nodeId);
530: }
531:
532: public static com.liferay.portlet.wiki.model.WikiPage revertPage(
533: long userId, long nodeId, java.lang.String title,
534: double version) throws com.liferay.portal.PortalException,
535: com.liferay.portal.SystemException {
536: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
537: .getService();
538:
539: return wikiPageLocalService.revertPage(userId, nodeId, title,
540: version);
541: }
542:
543: public static com.liferay.portlet.wiki.model.WikiPage updatePage(
544: long userId, long nodeId, java.lang.String title,
545: java.lang.String content, java.lang.String format,
546: java.lang.String[] tagsEntries)
547: throws com.liferay.portal.PortalException,
548: com.liferay.portal.SystemException {
549: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
550: .getService();
551:
552: return wikiPageLocalService.updatePage(userId, nodeId, title,
553: content, format, tagsEntries);
554: }
555:
556: public static void updateTagsAsset(long userId,
557: com.liferay.portlet.wiki.model.WikiPage page,
558: java.lang.String[] tagsEntries)
559: throws com.liferay.portal.PortalException,
560: com.liferay.portal.SystemException {
561: WikiPageLocalService wikiPageLocalService = WikiPageLocalServiceFactory
562: .getService();
563:
564: wikiPageLocalService.updateTagsAsset(userId, page, tagsEntries);
565: }
566: }
|