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