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