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