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 getService()
56 .addPage(nodeId, title, content, summary, minorEdit, prefs,
57 themeDisplay);
58 }
59
60 public static com.liferay.portlet.wiki.model.WikiPage addPage(long nodeId,
61 java.lang.String title, java.lang.String content,
62 java.lang.String summary, boolean minorEdit, java.lang.String format,
63 java.lang.String parentTitle, java.lang.String redirectTitle,
64 java.lang.String[] tagsEntries, javax.portlet.PortletPreferences prefs,
65 com.liferay.portal.theme.ThemeDisplay themeDisplay)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException, java.rmi.RemoteException {
68 return getService()
69 .addPage(nodeId, title, content, summary, minorEdit, format,
70 parentTitle, redirectTitle, tagsEntries, prefs, themeDisplay);
71 }
72
73 public static void addPageAttachments(long nodeId, java.lang.String title,
74 java.util.List<com.liferay.portal.kernel.util.ObjectValuePair<String, byte[]>> files)
75 throws com.liferay.portal.PortalException,
76 com.liferay.portal.SystemException, java.rmi.RemoteException {
77 getService().addPageAttachments(nodeId, title, files);
78 }
79
80 public static void changeParent(long nodeId, java.lang.String title,
81 java.lang.String newParentTitle,
82 javax.portlet.PortletPreferences prefs,
83 com.liferay.portal.theme.ThemeDisplay themeDisplay)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException, java.rmi.RemoteException {
86 getService()
87 .changeParent(nodeId, title, newParentTitle, prefs, themeDisplay);
88 }
89
90 public static void deletePage(long nodeId, java.lang.String title)
91 throws com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException, java.rmi.RemoteException {
93 getService().deletePage(nodeId, title);
94 }
95
96 public static void deletePageAttachment(long nodeId,
97 java.lang.String title, java.lang.String fileName)
98 throws com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException, java.rmi.RemoteException {
100 getService().deletePageAttachment(nodeId, title, fileName);
101 }
102
103 public static java.util.List<com.liferay.portlet.wiki.model.WikiPage> getNodePages(
104 long nodeId, int max)
105 throws com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException, java.rmi.RemoteException {
107 return getService().getNodePages(nodeId, max);
108 }
109
110 public static java.lang.String getNodePagesRSS(long nodeId, int max,
111 java.lang.String type, double version, java.lang.String displayStyle,
112 java.lang.String feedURL, java.lang.String entryURL)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException, java.rmi.RemoteException {
115 return getService()
116 .getNodePagesRSS(nodeId, max, type, version, displayStyle,
117 feedURL, entryURL);
118 }
119
120 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
121 java.lang.String title)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException, java.rmi.RemoteException {
124 return getService().getPage(nodeId, title);
125 }
126
127 public static com.liferay.portlet.wiki.model.WikiPage getPage(long nodeId,
128 java.lang.String title, double version)
129 throws com.liferay.portal.PortalException,
130 com.liferay.portal.SystemException, java.rmi.RemoteException {
131 return getService().getPage(nodeId, title, version);
132 }
133
134 public static java.lang.String getPagesRSS(long companyId, long nodeId,
135 java.lang.String title, int max, java.lang.String type, double version,
136 java.lang.String displayStyle, java.lang.String feedURL,
137 java.lang.String entryURL, java.util.Locale locale)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException, java.rmi.RemoteException {
140 return getService()
141 .getPagesRSS(companyId, nodeId, title, max, type, version,
142 displayStyle, feedURL, entryURL, locale);
143 }
144
145 public static void movePage(long nodeId, java.lang.String title,
146 java.lang.String newTitle, javax.portlet.PortletPreferences prefs,
147 com.liferay.portal.theme.ThemeDisplay themeDisplay)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException, java.rmi.RemoteException {
150 getService().movePage(nodeId, title, newTitle, prefs, themeDisplay);
151 }
152
153 public static com.liferay.portlet.wiki.model.WikiPage revertPage(
154 long nodeId, java.lang.String title, double version,
155 javax.portlet.PortletPreferences prefs,
156 com.liferay.portal.theme.ThemeDisplay themeDisplay)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException, java.rmi.RemoteException {
159 return getService()
160 .revertPage(nodeId, title, version, prefs, themeDisplay);
161 }
162
163 public static void subscribePage(long nodeId, java.lang.String title)
164 throws com.liferay.portal.PortalException,
165 com.liferay.portal.SystemException, java.rmi.RemoteException {
166 getService().subscribePage(nodeId, title);
167 }
168
169 public static void unsubscribePage(long nodeId, java.lang.String title)
170 throws com.liferay.portal.PortalException,
171 com.liferay.portal.SystemException, java.rmi.RemoteException {
172 getService().unsubscribePage(nodeId, title);
173 }
174
175 public static com.liferay.portlet.wiki.model.WikiPage updatePage(
176 long nodeId, java.lang.String title, double version,
177 java.lang.String content, java.lang.String summary, boolean minorEdit,
178 java.lang.String format, java.lang.String parentTitle,
179 java.lang.String redirectTitle, java.lang.String[] tagsEntries,
180 javax.portlet.PortletPreferences prefs,
181 com.liferay.portal.theme.ThemeDisplay themeDisplay)
182 throws com.liferay.portal.PortalException,
183 com.liferay.portal.SystemException, java.rmi.RemoteException {
184 return getService()
185 .updatePage(nodeId, title, version, content, summary,
186 minorEdit, format, parentTitle, redirectTitle, tagsEntries, prefs,
187 themeDisplay);
188 }
189
190 public static WikiPageService getService() {
191 if (_service == null) {
192 throw new RuntimeException("WikiPageService is not set");
193 }
194
195 return _service;
196 }
197
198 public void setService(WikiPageService service) {
199 _service = service;
200 }
201
202 private static WikiPageService _service;
203 }