1
22
23 package com.liferay.portlet.wiki.service;
24
25
26
47 public class WikiPageServiceUtil {
48 public static com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
49 java.lang.String title, java.lang.String content,
50 java.lang.String summary, boolean minorEdit,
51 javax.portlet.PortletPreferences prefs,
52 com.liferay.portal.theme.ThemeDisplay themeDisplay)
53 throws com.liferay.portal.PortalException,
54 com.liferay.portal.SystemException, java.rmi.RemoteException {
55 return _service.addPage(nodeId, title, content, summary, minorEdit,
56 prefs, themeDisplay);
57 }
58
59 public static void addPageAttachments(long nodeId, java.lang.String title,
60 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
61 throws com.liferay.portal.PortalException,
62 com.liferay.portal.SystemException, java.rmi.RemoteException {
63 _service.addPageAttachments(nodeId, title, files);
64 }
65
66 public static void changeParent(long nodeId, java.lang.String title,
67 java.lang.String newParentTitle,
68 javax.portlet.PortletPreferences prefs,
69 com.liferay.portal.theme.ThemeDisplay themeDisplay)
70 throws com.liferay.portal.PortalException,
71 com.liferay.portal.SystemException, java.rmi.RemoteException {
72 _service.changeParent(nodeId, title, newParentTitle, prefs, themeDisplay);
73 }
74
75 public static void deletePage(long nodeId, java.lang.String title)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException, java.rmi.RemoteException {
78 _service.deletePage(nodeId, title);
79 }
80
81 public static void deletePageAttachment(long nodeId,
82 java.lang.String title, java.lang.String fileName)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException, java.rmi.RemoteException {
85 _service.deletePageAttachment(nodeId, title, fileName);
86 }
87
88 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
89 long nodeId, int max)
90 throws com.liferay.portal.PortalException,
91 com.liferay.portal.SystemException, java.rmi.RemoteException {
92 return _service.getNodePages(nodeId, max);
93 }
94
95 public static java.lang.String getNodePagesRSS(long nodeId, int max,
96 java.lang.String type, double version, java.lang.String displayStyle,
97 java.lang.String feedURL, java.lang.String entryURL)
98 throws com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException, java.rmi.RemoteException {
100 return _service.getNodePagesRSS(nodeId, max, type, version,
101 displayStyle, feedURL, entryURL);
102 }
103
104 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
105 java.lang.String title)
106 throws com.liferay.portal.PortalException,
107 com.liferay.portal.SystemException, java.rmi.RemoteException {
108 return _service.getPage(nodeId, title);
109 }
110
111 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
112 java.lang.String title, double version)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException, java.rmi.RemoteException {
115 return _service.getPage(nodeId, title, version);
116 }
117
118 public static java.lang.String getPagesRSS(long companyId, long nodeId,
119 java.lang.String title, int max, java.lang.String type, double version,
120 java.lang.String displayStyle, java.lang.String feedURL,
121 java.lang.String entryURL, java.util.Locale locale)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException, java.rmi.RemoteException {
124 return _service.getPagesRSS(companyId, nodeId, title, max, type,
125 version, displayStyle, feedURL, entryURL, locale);
126 }
127
128 public static void movePage(long nodeId, java.lang.String title,
129 java.lang.String newTitle, javax.portlet.PortletPreferences prefs,
130 com.liferay.portal.theme.ThemeDisplay themeDisplay)
131 throws com.liferay.portal.PortalException,
132 com.liferay.portal.SystemException, java.rmi.RemoteException {
133 _service.movePage(nodeId, title, newTitle, prefs, themeDisplay);
134 }
135
136 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
137 long nodeId, java.lang.String title, double version,
138 javax.portlet.PortletPreferences prefs,
139 com.liferay.portal.theme.ThemeDisplay themeDisplay)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException, java.rmi.RemoteException {
142 return _service.revertPage(nodeId, title, version, prefs, themeDisplay);
143 }
144
145 public static void subscribePage(long nodeId, java.lang.String title)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException, java.rmi.RemoteException {
148 _service.subscribePage(nodeId, title);
149 }
150
151 public static void unsubscribePage(long nodeId, java.lang.String title)
152 throws com.liferay.portal.PortalException,
153 com.liferay.portal.SystemException, java.rmi.RemoteException {
154 _service.unsubscribePage(nodeId, title);
155 }
156
157 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
158 long nodeId, java.lang.String title, double version,
159 java.lang.String content, java.lang.String summary, boolean minorEdit,
160 java.lang.String format, java.lang.String parentTitle,
161 java.lang.String redirectTitle, java.lang.String[] tagsEntries,
162 javax.portlet.PortletPreferences prefs,
163 com.liferay.portal.theme.ThemeDisplay themeDisplay)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException, java.rmi.RemoteException {
166 return _service.updatePage(nodeId, title, version, content, summary,
167 minorEdit, format, parentTitle, redirectTitle, tagsEntries, prefs,
168 themeDisplay);
169 }
170
171 public static WikiPageService getService() {
172 return _service;
173 }
174
175 public void setService(WikiPageService service) {
176 _service = service;
177 }
178
179 private static WikiPageService _service;
180 }