1
19
20 package com.liferay.portlet.journal.service;
21
22
23
44 public class JournalStructureLocalServiceUtil {
45 public static com.liferay.portlet.journal.model.JournalStructure addJournalStructure(
46 com.liferay.portlet.journal.model.JournalStructure journalStructure)
47 throws com.liferay.portal.SystemException {
48 return getService().addJournalStructure(journalStructure);
49 }
50
51 public static com.liferay.portlet.journal.model.JournalStructure createJournalStructure(
52 long id) {
53 return getService().createJournalStructure(id);
54 }
55
56 public static void deleteJournalStructure(long id)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException {
59 getService().deleteJournalStructure(id);
60 }
61
62 public static void deleteJournalStructure(
63 com.liferay.portlet.journal.model.JournalStructure journalStructure)
64 throws com.liferay.portal.SystemException {
65 getService().deleteJournalStructure(journalStructure);
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.journal.model.JournalStructure getJournalStructure(
81 long id)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException {
84 return getService().getJournalStructure(id);
85 }
86
87 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getJournalStructures(
88 int start, int end) throws com.liferay.portal.SystemException {
89 return getService().getJournalStructures(start, end);
90 }
91
92 public static int getJournalStructuresCount()
93 throws com.liferay.portal.SystemException {
94 return getService().getJournalStructuresCount();
95 }
96
97 public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
98 com.liferay.portlet.journal.model.JournalStructure journalStructure)
99 throws com.liferay.portal.SystemException {
100 return getService().updateJournalStructure(journalStructure);
101 }
102
103 public static com.liferay.portlet.journal.model.JournalStructure updateJournalStructure(
104 com.liferay.portlet.journal.model.JournalStructure journalStructure,
105 boolean merge) throws com.liferay.portal.SystemException {
106 return getService().updateJournalStructure(journalStructure, merge);
107 }
108
109 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
110 long userId, java.lang.String structureId, boolean autoStructureId,
111 long plid, java.lang.String name, java.lang.String description,
112 java.lang.String xsd, boolean addCommunityPermissions,
113 boolean addGuestPermissions)
114 throws com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException {
116 return getService()
117 .addStructure(userId, structureId, autoStructureId, plid,
118 name, description, xsd, addCommunityPermissions, addGuestPermissions);
119 }
120
121 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
122 java.lang.String uuid, long userId, java.lang.String structureId,
123 boolean autoStructureId, long plid, java.lang.String name,
124 java.lang.String description, java.lang.String xsd,
125 boolean addCommunityPermissions, boolean addGuestPermissions)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 return getService()
129 .addStructure(uuid, userId, structureId, autoStructureId,
130 plid, name, description, xsd, addCommunityPermissions,
131 addGuestPermissions);
132 }
133
134 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
135 long userId, java.lang.String structureId, boolean autoStructureId,
136 long plid, java.lang.String name, java.lang.String description,
137 java.lang.String xsd, java.lang.String[] communityPermissions,
138 java.lang.String[] guestPermissions)
139 throws com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException {
141 return getService()
142 .addStructure(userId, structureId, autoStructureId, plid,
143 name, description, xsd, communityPermissions, guestPermissions);
144 }
145
146 public static com.liferay.portlet.journal.model.JournalStructure addStructure(
147 java.lang.String uuid, long userId, java.lang.String structureId,
148 boolean autoStructureId, long plid, java.lang.String name,
149 java.lang.String description, java.lang.String xsd,
150 java.lang.Boolean addCommunityPermissions,
151 java.lang.Boolean addGuestPermissions,
152 java.lang.String[] communityPermissions,
153 java.lang.String[] guestPermissions)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException {
156 return getService()
157 .addStructure(uuid, userId, structureId, autoStructureId,
158 plid, name, description, xsd, addCommunityPermissions,
159 addGuestPermissions, communityPermissions, guestPermissions);
160 }
161
162 public static com.liferay.portlet.journal.model.JournalStructure addStructureToGroup(
163 java.lang.String uuid, long userId, java.lang.String structureId,
164 boolean autoStructureId, long groupId, java.lang.String name,
165 java.lang.String description, java.lang.String xsd,
166 java.lang.Boolean addCommunityPermissions,
167 java.lang.Boolean addGuestPermissions,
168 java.lang.String[] communityPermissions,
169 java.lang.String[] guestPermissions)
170 throws com.liferay.portal.PortalException,
171 com.liferay.portal.SystemException {
172 return getService()
173 .addStructureToGroup(uuid, userId, structureId,
174 autoStructureId, groupId, name, description, xsd,
175 addCommunityPermissions, addGuestPermissions, communityPermissions,
176 guestPermissions);
177 }
178
179 public static void addStructureResources(long groupId,
180 java.lang.String structureId, boolean addCommunityPermissions,
181 boolean addGuestPermissions)
182 throws com.liferay.portal.PortalException,
183 com.liferay.portal.SystemException {
184 getService()
185 .addStructureResources(groupId, structureId,
186 addCommunityPermissions, addGuestPermissions);
187 }
188
189 public static void addStructureResources(
190 com.liferay.portlet.journal.model.JournalStructure structure,
191 boolean addCommunityPermissions, boolean addGuestPermissions)
192 throws com.liferay.portal.PortalException,
193 com.liferay.portal.SystemException {
194 getService()
195 .addStructureResources(structure, addCommunityPermissions,
196 addGuestPermissions);
197 }
198
199 public static void addStructureResources(long groupId,
200 java.lang.String structureId, java.lang.String[] communityPermissions,
201 java.lang.String[] guestPermissions)
202 throws com.liferay.portal.PortalException,
203 com.liferay.portal.SystemException {
204 getService()
205 .addStructureResources(groupId, structureId, communityPermissions,
206 guestPermissions);
207 }
208
209 public static void addStructureResources(
210 com.liferay.portlet.journal.model.JournalStructure structure,
211 java.lang.String[] communityPermissions,
212 java.lang.String[] guestPermissions)
213 throws com.liferay.portal.PortalException,
214 com.liferay.portal.SystemException {
215 getService()
216 .addStructureResources(structure, communityPermissions,
217 guestPermissions);
218 }
219
220 public static void checkNewLine(long groupId, java.lang.String structureId)
221 throws com.liferay.portal.PortalException,
222 com.liferay.portal.SystemException {
223 getService().checkNewLine(groupId, structureId);
224 }
225
226 public static com.liferay.portlet.journal.model.JournalStructure copyStructure(
227 long userId, long groupId, java.lang.String oldStructureId,
228 java.lang.String newStructureId, boolean autoStructureId)
229 throws com.liferay.portal.PortalException,
230 com.liferay.portal.SystemException {
231 return getService()
232 .copyStructure(userId, groupId, oldStructureId,
233 newStructureId, autoStructureId);
234 }
235
236 public static void deleteStructure(long groupId,
237 java.lang.String structureId)
238 throws com.liferay.portal.PortalException,
239 com.liferay.portal.SystemException {
240 getService().deleteStructure(groupId, structureId);
241 }
242
243 public static void deleteStructure(
244 com.liferay.portlet.journal.model.JournalStructure structure)
245 throws com.liferay.portal.PortalException,
246 com.liferay.portal.SystemException {
247 getService().deleteStructure(structure);
248 }
249
250 public static void deleteStructures(long groupId)
251 throws com.liferay.portal.PortalException,
252 com.liferay.portal.SystemException {
253 getService().deleteStructures(groupId);
254 }
255
256 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
257 long id)
258 throws com.liferay.portal.PortalException,
259 com.liferay.portal.SystemException {
260 return getService().getStructure(id);
261 }
262
263 public static com.liferay.portlet.journal.model.JournalStructure getStructure(
264 long groupId, java.lang.String structureId)
265 throws com.liferay.portal.PortalException,
266 com.liferay.portal.SystemException {
267 return getService().getStructure(groupId, structureId);
268 }
269
270 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures()
271 throws com.liferay.portal.SystemException {
272 return getService().getStructures();
273 }
274
275 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
276 long groupId) throws com.liferay.portal.SystemException {
277 return getService().getStructures(groupId);
278 }
279
280 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> getStructures(
281 long groupId, int start, int end)
282 throws com.liferay.portal.SystemException {
283 return getService().getStructures(groupId, start, end);
284 }
285
286 public static int getStructuresCount(long groupId)
287 throws com.liferay.portal.SystemException {
288 return getService().getStructuresCount(groupId);
289 }
290
291 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
292 long companyId, long groupId, java.lang.String keywords, int start,
293 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
294 throws com.liferay.portal.SystemException {
295 return getService().search(companyId, groupId, keywords, start, end, obc);
296 }
297
298 public static java.util.List<com.liferay.portlet.journal.model.JournalStructure> search(
299 long companyId, long groupId, java.lang.String structureId,
300 java.lang.String name, java.lang.String description,
301 boolean andOperator, int start, int end,
302 com.liferay.portal.kernel.util.OrderByComparator obc)
303 throws com.liferay.portal.SystemException {
304 return getService()
305 .search(companyId, groupId, structureId, name, description,
306 andOperator, start, end, obc);
307 }
308
309 public static int searchCount(long companyId, long groupId,
310 java.lang.String keywords) throws com.liferay.portal.SystemException {
311 return getService().searchCount(companyId, groupId, keywords);
312 }
313
314 public static int searchCount(long companyId, long groupId,
315 java.lang.String structureId, java.lang.String name,
316 java.lang.String description, boolean andOperator)
317 throws com.liferay.portal.SystemException {
318 return getService()
319 .searchCount(companyId, groupId, structureId, name,
320 description, andOperator);
321 }
322
323 public static com.liferay.portlet.journal.model.JournalStructure updateStructure(
324 long groupId, java.lang.String structureId, java.lang.String name,
325 java.lang.String description, java.lang.String xsd)
326 throws com.liferay.portal.PortalException,
327 com.liferay.portal.SystemException {
328 return getService()
329 .updateStructure(groupId, structureId, name, description, xsd);
330 }
331
332 public static JournalStructureLocalService getService() {
333 if (_service == null) {
334 throw new RuntimeException(
335 "JournalStructureLocalService is not set");
336 }
337
338 return _service;
339 }
340
341 public void setService(JournalStructureLocalService service) {
342 _service = service;
343 }
344
345 private static JournalStructureLocalService _service;
346 }