1
22
23 package com.liferay.portlet.wiki.service;
24
25
26
47 public class WikiNodeLocalServiceUtil {
48 public static com.liferay.portlet.wiki.model.WikiNode addWikiNode(
49 com.liferay.portlet.wiki.model.WikiNode wikiNode)
50 throws com.liferay.portal.SystemException {
51 return getService().addWikiNode(wikiNode);
52 }
53
54 public static com.liferay.portlet.wiki.model.WikiNode createWikiNode(
55 long nodeId) {
56 return getService().createWikiNode(nodeId);
57 }
58
59 public static void deleteWikiNode(long nodeId)
60 throws com.liferay.portal.PortalException,
61 com.liferay.portal.SystemException {
62 getService().deleteWikiNode(nodeId);
63 }
64
65 public static void deleteWikiNode(
66 com.liferay.portlet.wiki.model.WikiNode wikiNode)
67 throws com.liferay.portal.SystemException {
68 getService().deleteWikiNode(wikiNode);
69 }
70
71 public static java.util.List<Object> dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73 throws com.liferay.portal.SystemException {
74 return getService().dynamicQuery(dynamicQuery);
75 }
76
77 public static java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException {
80 return getService().dynamicQuery(dynamicQuery, start, end);
81 }
82
83 public static com.liferay.portlet.wiki.model.WikiNode getWikiNode(
84 long nodeId)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException {
87 return getService().getWikiNode(nodeId);
88 }
89
90 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getWikiNodes(
91 int start, int end) throws com.liferay.portal.SystemException {
92 return getService().getWikiNodes(start, end);
93 }
94
95 public static int getWikiNodesCount()
96 throws com.liferay.portal.SystemException {
97 return getService().getWikiNodesCount();
98 }
99
100 public static com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
101 com.liferay.portlet.wiki.model.WikiNode wikiNode)
102 throws com.liferay.portal.SystemException {
103 return getService().updateWikiNode(wikiNode);
104 }
105
106 public static com.liferay.portlet.wiki.model.WikiNode updateWikiNode(
107 com.liferay.portlet.wiki.model.WikiNode wikiNode, boolean merge)
108 throws com.liferay.portal.SystemException {
109 return getService().updateWikiNode(wikiNode, merge);
110 }
111
112 public static com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
113 long plid, java.lang.String name, java.lang.String description,
114 boolean addCommunityPermissions, boolean addGuestPermissions)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException {
117 return getService()
118 .addNode(userId, plid, name, description,
119 addCommunityPermissions, addGuestPermissions);
120 }
121
122 public static com.liferay.portlet.wiki.model.WikiNode addNode(
123 java.lang.String uuid, long userId, long plid, java.lang.String name,
124 java.lang.String description, boolean addCommunityPermissions,
125 boolean addGuestPermissions)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 return getService()
129 .addNode(uuid, userId, plid, name, description,
130 addCommunityPermissions, addGuestPermissions);
131 }
132
133 public static com.liferay.portlet.wiki.model.WikiNode addNode(long userId,
134 long plid, java.lang.String name, java.lang.String description,
135 java.lang.String[] communityPermissions,
136 java.lang.String[] guestPermissions)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException {
139 return getService()
140 .addNode(userId, plid, name, description,
141 communityPermissions, guestPermissions);
142 }
143
144 public static com.liferay.portlet.wiki.model.WikiNode addNode(
145 java.lang.String uuid, long userId, long plid, java.lang.String name,
146 java.lang.String description,
147 java.lang.Boolean addCommunityPermissions,
148 java.lang.Boolean addGuestPermissions,
149 java.lang.String[] communityPermissions,
150 java.lang.String[] guestPermissions)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException {
153 return getService()
154 .addNode(uuid, userId, plid, name, description,
155 addCommunityPermissions, addGuestPermissions, communityPermissions,
156 guestPermissions);
157 }
158
159 public static void addNodeResources(long nodeId,
160 boolean addCommunityPermissions, boolean addGuestPermissions)
161 throws com.liferay.portal.PortalException,
162 com.liferay.portal.SystemException {
163 getService()
164 .addNodeResources(nodeId, addCommunityPermissions,
165 addGuestPermissions);
166 }
167
168 public static void addNodeResources(
169 com.liferay.portlet.wiki.model.WikiNode node,
170 boolean addCommunityPermissions, boolean addGuestPermissions)
171 throws com.liferay.portal.PortalException,
172 com.liferay.portal.SystemException {
173 getService()
174 .addNodeResources(node, addCommunityPermissions, addGuestPermissions);
175 }
176
177 public static void addNodeResources(long nodeId,
178 java.lang.String[] communityPermissions,
179 java.lang.String[] guestPermissions)
180 throws com.liferay.portal.PortalException,
181 com.liferay.portal.SystemException {
182 getService()
183 .addNodeResources(nodeId, communityPermissions, guestPermissions);
184 }
185
186 public static void addNodeResources(
187 com.liferay.portlet.wiki.model.WikiNode node,
188 java.lang.String[] communityPermissions,
189 java.lang.String[] guestPermissions)
190 throws com.liferay.portal.PortalException,
191 com.liferay.portal.SystemException {
192 getService()
193 .addNodeResources(node, communityPermissions, guestPermissions);
194 }
195
196 public static void deleteNode(long nodeId)
197 throws com.liferay.portal.PortalException,
198 com.liferay.portal.SystemException {
199 getService().deleteNode(nodeId);
200 }
201
202 public static void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
203 throws com.liferay.portal.PortalException,
204 com.liferay.portal.SystemException {
205 getService().deleteNode(node);
206 }
207
208 public static void deleteNodes(long groupId)
209 throws com.liferay.portal.PortalException,
210 com.liferay.portal.SystemException {
211 getService().deleteNodes(groupId);
212 }
213
214 public static com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
215 throws com.liferay.portal.PortalException,
216 com.liferay.portal.SystemException {
217 return getService().getNode(nodeId);
218 }
219
220 public static com.liferay.portlet.wiki.model.WikiNode getNode(
221 long groupId, java.lang.String nodeName)
222 throws com.liferay.portal.PortalException,
223 com.liferay.portal.SystemException {
224 return getService().getNode(groupId, nodeName);
225 }
226
227 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
228 long groupId) throws com.liferay.portal.SystemException {
229 return getService().getNodes(groupId);
230 }
231
232 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
233 long groupId, int start, int end)
234 throws com.liferay.portal.SystemException {
235 return getService().getNodes(groupId, start, end);
236 }
237
238 public static int getNodesCount(long groupId)
239 throws com.liferay.portal.SystemException {
240 return getService().getNodesCount(groupId);
241 }
242
243 public static void importPages(long userId, long nodeId,
244 java.lang.String importer, java.io.File[] files,
245 java.util.Map<String, String[]> options)
246 throws com.liferay.portal.PortalException,
247 com.liferay.portal.SystemException {
248 getService().importPages(userId, nodeId, importer, files, options);
249 }
250
251 public static void reIndex(java.lang.String[] ids)
252 throws com.liferay.portal.SystemException {
253 getService().reIndex(ids);
254 }
255
256 public static com.liferay.portal.kernel.search.Hits search(long companyId,
257 long groupId, long[] nodeIds, java.lang.String keywords, int start,
258 int end) throws com.liferay.portal.SystemException {
259 return getService()
260 .search(companyId, groupId, nodeIds, keywords, start, end);
261 }
262
263 public static void subscribeNode(long userId, long nodeId)
264 throws com.liferay.portal.PortalException,
265 com.liferay.portal.SystemException {
266 getService().subscribeNode(userId, nodeId);
267 }
268
269 public static void unsubscribeNode(long userId, long nodeId)
270 throws com.liferay.portal.PortalException,
271 com.liferay.portal.SystemException {
272 getService().unsubscribeNode(userId, nodeId);
273 }
274
275 public static com.liferay.portlet.wiki.model.WikiNode updateNode(
276 long nodeId, java.lang.String name, java.lang.String description)
277 throws com.liferay.portal.PortalException,
278 com.liferay.portal.SystemException {
279 return getService().updateNode(nodeId, name, description);
280 }
281
282 public static WikiNodeLocalService getService() {
283 if (_service == null) {
284 throw new RuntimeException("WikiNodeLocalService is not set");
285 }
286
287 return _service;
288 }
289
290 public void setService(WikiNodeLocalService service) {
291 _service = service;
292 }
293
294 private static WikiNodeLocalService _service;
295 }