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 java.lang.String name, java.lang.String description,
114 com.liferay.portal.service.ServiceContext serviceContext)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException {
117 return getService().addNode(userId, name, description, serviceContext);
118 }
119
120 public static com.liferay.portlet.wiki.model.WikiNode addNode(
121 java.lang.String uuid, long userId, java.lang.String name,
122 java.lang.String description,
123 com.liferay.portal.service.ServiceContext serviceContext)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException {
126 return getService()
127 .addNode(uuid, userId, name, description, serviceContext);
128 }
129
130 public static void addNodeResources(long nodeId,
131 boolean addCommunityPermissions, boolean addGuestPermissions)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException {
134 getService()
135 .addNodeResources(nodeId, addCommunityPermissions,
136 addGuestPermissions);
137 }
138
139 public static void addNodeResources(
140 com.liferay.portlet.wiki.model.WikiNode node,
141 boolean addCommunityPermissions, boolean addGuestPermissions)
142 throws com.liferay.portal.PortalException,
143 com.liferay.portal.SystemException {
144 getService()
145 .addNodeResources(node, addCommunityPermissions, addGuestPermissions);
146 }
147
148 public static void addNodeResources(long nodeId,
149 java.lang.String[] communityPermissions,
150 java.lang.String[] guestPermissions)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException {
153 getService()
154 .addNodeResources(nodeId, communityPermissions, guestPermissions);
155 }
156
157 public static void addNodeResources(
158 com.liferay.portlet.wiki.model.WikiNode node,
159 java.lang.String[] communityPermissions,
160 java.lang.String[] guestPermissions)
161 throws com.liferay.portal.PortalException,
162 com.liferay.portal.SystemException {
163 getService()
164 .addNodeResources(node, communityPermissions, guestPermissions);
165 }
166
167 public static void deleteNode(long nodeId)
168 throws com.liferay.portal.PortalException,
169 com.liferay.portal.SystemException {
170 getService().deleteNode(nodeId);
171 }
172
173 public static void deleteNode(com.liferay.portlet.wiki.model.WikiNode node)
174 throws com.liferay.portal.PortalException,
175 com.liferay.portal.SystemException {
176 getService().deleteNode(node);
177 }
178
179 public static void deleteNodes(long groupId)
180 throws com.liferay.portal.PortalException,
181 com.liferay.portal.SystemException {
182 getService().deleteNodes(groupId);
183 }
184
185 public static com.liferay.portlet.wiki.model.WikiNode getNode(long nodeId)
186 throws com.liferay.portal.PortalException,
187 com.liferay.portal.SystemException {
188 return getService().getNode(nodeId);
189 }
190
191 public static com.liferay.portlet.wiki.model.WikiNode getNode(
192 long groupId, java.lang.String nodeName)
193 throws com.liferay.portal.PortalException,
194 com.liferay.portal.SystemException {
195 return getService().getNode(groupId, nodeName);
196 }
197
198 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
199 long groupId) throws com.liferay.portal.SystemException {
200 return getService().getNodes(groupId);
201 }
202
203 public static java.util.List<com.liferay.portlet.wiki.model.WikiNode> getNodes(
204 long groupId, int start, int end)
205 throws com.liferay.portal.SystemException {
206 return getService().getNodes(groupId, start, end);
207 }
208
209 public static int getNodesCount(long groupId)
210 throws com.liferay.portal.SystemException {
211 return getService().getNodesCount(groupId);
212 }
213
214 public static void importPages(long userId, long nodeId,
215 java.lang.String importer, java.io.File[] files,
216 java.util.Map<String, String[]> options)
217 throws com.liferay.portal.PortalException,
218 com.liferay.portal.SystemException {
219 getService().importPages(userId, nodeId, importer, files, options);
220 }
221
222 public static void reIndex(java.lang.String[] ids)
223 throws com.liferay.portal.SystemException {
224 getService().reIndex(ids);
225 }
226
227 public static com.liferay.portal.kernel.search.Hits search(long companyId,
228 long groupId, long userId, long[] nodeIds, java.lang.String keywords,
229 int start, int end) throws com.liferay.portal.SystemException {
230 return getService()
231 .search(companyId, groupId, userId, nodeIds, keywords,
232 start, end);
233 }
234
235 public static void subscribeNode(long userId, long nodeId)
236 throws com.liferay.portal.PortalException,
237 com.liferay.portal.SystemException {
238 getService().subscribeNode(userId, nodeId);
239 }
240
241 public static void unsubscribeNode(long userId, long nodeId)
242 throws com.liferay.portal.PortalException,
243 com.liferay.portal.SystemException {
244 getService().unsubscribeNode(userId, nodeId);
245 }
246
247 public static com.liferay.portlet.wiki.model.WikiNode updateNode(
248 long nodeId, java.lang.String name, java.lang.String description)
249 throws com.liferay.portal.PortalException,
250 com.liferay.portal.SystemException {
251 return getService().updateNode(nodeId, name, description);
252 }
253
254 public static WikiNodeLocalService getService() {
255 if (_service == null) {
256 throw new RuntimeException("WikiNodeLocalService is not set");
257 }
258
259 return _service;
260 }
261
262 public void setService(WikiNodeLocalService service) {
263 _service = service;
264 }
265
266 private static WikiNodeLocalService _service;
267 }