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