1
22
23 package com.liferay.portlet.journal.service;
24
25
26
53 public class JournalTemplateLocalServiceUtil {
54 public static com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
55 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
56 throws com.liferay.portal.SystemException {
57 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
58
59 return journalTemplateLocalService.addJournalTemplate(journalTemplate);
60 }
61
62 public static void deleteJournalTemplate(long id)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
66
67 journalTemplateLocalService.deleteJournalTemplate(id);
68 }
69
70 public static void deleteJournalTemplate(
71 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
72 throws com.liferay.portal.SystemException {
73 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
74
75 journalTemplateLocalService.deleteJournalTemplate(journalTemplate);
76 }
77
78 public static java.util.List<Object> dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
80 throws com.liferay.portal.SystemException {
81 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
82
83 return journalTemplateLocalService.dynamicQuery(dynamicQuery);
84 }
85
86 public static java.util.List<Object> dynamicQuery(
87 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
88 int end) throws com.liferay.portal.SystemException {
89 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
90
91 return journalTemplateLocalService.dynamicQuery(dynamicQuery, start, end);
92 }
93
94 public static com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
95 long id)
96 throws com.liferay.portal.PortalException,
97 com.liferay.portal.SystemException {
98 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
99
100 return journalTemplateLocalService.getJournalTemplate(id);
101 }
102
103 public static com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
104 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
105 throws com.liferay.portal.SystemException {
106 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
107
108 return journalTemplateLocalService.updateJournalTemplate(journalTemplate);
109 }
110
111 public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
112 long userId, java.lang.String templateId, boolean autoTemplateId,
113 long plid, java.lang.String structureId, java.lang.String name,
114 java.lang.String description, java.lang.String xsl, boolean formatXsl,
115 java.lang.String langType, boolean cacheable, boolean smallImage,
116 java.lang.String smallImageURL, java.io.File smallFile,
117 boolean addCommunityPermissions, boolean addGuestPermissions)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException {
120 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
121
122 return journalTemplateLocalService.addTemplate(userId, templateId,
123 autoTemplateId, plid, structureId, name, description, xsl,
124 formatXsl, langType, cacheable, smallImage, smallImageURL,
125 smallFile, addCommunityPermissions, addGuestPermissions);
126 }
127
128 public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
129 java.lang.String uuid, long userId, java.lang.String templateId,
130 boolean autoTemplateId, long plid, java.lang.String structureId,
131 java.lang.String name, java.lang.String description,
132 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
133 boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
134 java.io.File smallFile, boolean addCommunityPermissions,
135 boolean addGuestPermissions)
136 throws com.liferay.portal.PortalException,
137 com.liferay.portal.SystemException {
138 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
139
140 return journalTemplateLocalService.addTemplate(uuid, userId,
141 templateId, autoTemplateId, plid, structureId, name, description,
142 xsl, formatXsl, langType, cacheable, smallImage, smallImageURL,
143 smallFile, addCommunityPermissions, addGuestPermissions);
144 }
145
146 public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
147 long userId, java.lang.String templateId, boolean autoTemplateId,
148 long plid, java.lang.String structureId, java.lang.String name,
149 java.lang.String description, java.lang.String xsl, boolean formatXsl,
150 java.lang.String langType, boolean cacheable, boolean smallImage,
151 java.lang.String smallImageURL, java.io.File smallFile,
152 java.lang.String[] communityPermissions,
153 java.lang.String[] guestPermissions)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException {
156 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
157
158 return journalTemplateLocalService.addTemplate(userId, templateId,
159 autoTemplateId, plid, structureId, name, description, xsl,
160 formatXsl, langType, cacheable, smallImage, smallImageURL,
161 smallFile, communityPermissions, guestPermissions);
162 }
163
164 public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
165 java.lang.String uuid, long userId, java.lang.String templateId,
166 boolean autoTemplateId, long plid, java.lang.String structureId,
167 java.lang.String name, java.lang.String description,
168 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
169 boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
170 java.io.File smallFile, java.lang.Boolean addCommunityPermissions,
171 java.lang.Boolean addGuestPermissions,
172 java.lang.String[] communityPermissions,
173 java.lang.String[] guestPermissions)
174 throws com.liferay.portal.PortalException,
175 com.liferay.portal.SystemException {
176 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
177
178 return journalTemplateLocalService.addTemplate(uuid, userId,
179 templateId, autoTemplateId, plid, structureId, name, description,
180 xsl, formatXsl, langType, cacheable, smallImage, smallImageURL,
181 smallFile, addCommunityPermissions, addGuestPermissions,
182 communityPermissions, guestPermissions);
183 }
184
185 public static com.liferay.portlet.journal.model.JournalTemplate addTemplateToGroup(
186 java.lang.String uuid, long userId, java.lang.String templateId,
187 boolean autoTemplateId, long groupId, java.lang.String structureId,
188 java.lang.String name, java.lang.String description,
189 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
190 boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
191 java.io.File smallFile, java.lang.Boolean addCommunityPermissions,
192 java.lang.Boolean addGuestPermissions,
193 java.lang.String[] communityPermissions,
194 java.lang.String[] guestPermissions)
195 throws com.liferay.portal.PortalException,
196 com.liferay.portal.SystemException {
197 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
198
199 return journalTemplateLocalService.addTemplateToGroup(uuid, userId,
200 templateId, autoTemplateId, groupId, structureId, name,
201 description, xsl, formatXsl, langType, cacheable, smallImage,
202 smallImageURL, smallFile, addCommunityPermissions,
203 addGuestPermissions, communityPermissions, guestPermissions);
204 }
205
206 public static void addTemplateResources(long groupId,
207 java.lang.String templateId, boolean addCommunityPermissions,
208 boolean addGuestPermissions)
209 throws com.liferay.portal.PortalException,
210 com.liferay.portal.SystemException {
211 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
212
213 journalTemplateLocalService.addTemplateResources(groupId, templateId,
214 addCommunityPermissions, addGuestPermissions);
215 }
216
217 public static void addTemplateResources(
218 com.liferay.portlet.journal.model.JournalTemplate template,
219 boolean addCommunityPermissions, boolean addGuestPermissions)
220 throws com.liferay.portal.PortalException,
221 com.liferay.portal.SystemException {
222 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
223
224 journalTemplateLocalService.addTemplateResources(template,
225 addCommunityPermissions, addGuestPermissions);
226 }
227
228 public static void addTemplateResources(long groupId,
229 java.lang.String templateId, java.lang.String[] communityPermissions,
230 java.lang.String[] guestPermissions)
231 throws com.liferay.portal.PortalException,
232 com.liferay.portal.SystemException {
233 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
234
235 journalTemplateLocalService.addTemplateResources(groupId, templateId,
236 communityPermissions, guestPermissions);
237 }
238
239 public static void addTemplateResources(
240 com.liferay.portlet.journal.model.JournalTemplate template,
241 java.lang.String[] communityPermissions,
242 java.lang.String[] guestPermissions)
243 throws com.liferay.portal.PortalException,
244 com.liferay.portal.SystemException {
245 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
246
247 journalTemplateLocalService.addTemplateResources(template,
248 communityPermissions, guestPermissions);
249 }
250
251 public static void checkNewLine(long groupId, java.lang.String templateId)
252 throws com.liferay.portal.PortalException,
253 com.liferay.portal.SystemException {
254 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
255
256 journalTemplateLocalService.checkNewLine(groupId, templateId);
257 }
258
259 public static void deleteTemplate(long groupId, java.lang.String templateId)
260 throws com.liferay.portal.PortalException,
261 com.liferay.portal.SystemException {
262 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
263
264 journalTemplateLocalService.deleteTemplate(groupId, templateId);
265 }
266
267 public static void deleteTemplate(
268 com.liferay.portlet.journal.model.JournalTemplate template)
269 throws com.liferay.portal.PortalException,
270 com.liferay.portal.SystemException {
271 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
272
273 journalTemplateLocalService.deleteTemplate(template);
274 }
275
276 public static void deleteTemplates(long groupId)
277 throws com.liferay.portal.PortalException,
278 com.liferay.portal.SystemException {
279 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
280
281 journalTemplateLocalService.deleteTemplates(groupId);
282 }
283
284 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
285 long groupId, java.lang.String structureId)
286 throws com.liferay.portal.SystemException {
287 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
288
289 return journalTemplateLocalService.getStructureTemplates(groupId,
290 structureId);
291 }
292
293 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
294 long groupId, java.lang.String structureId, int start, int end)
295 throws com.liferay.portal.SystemException {
296 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
297
298 return journalTemplateLocalService.getStructureTemplates(groupId,
299 structureId, start, end);
300 }
301
302 public static int getStructureTemplatesCount(long groupId,
303 java.lang.String structureId) throws com.liferay.portal.SystemException {
304 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
305
306 return journalTemplateLocalService.getStructureTemplatesCount(groupId,
307 structureId);
308 }
309
310 public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
311 long id)
312 throws com.liferay.portal.PortalException,
313 com.liferay.portal.SystemException {
314 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
315
316 return journalTemplateLocalService.getTemplate(id);
317 }
318
319 public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
320 long groupId, java.lang.String templateId)
321 throws com.liferay.portal.PortalException,
322 com.liferay.portal.SystemException {
323 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
324
325 return journalTemplateLocalService.getTemplate(groupId, templateId);
326 }
327
328 public static com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
329 long smallImageId)
330 throws com.liferay.portal.PortalException,
331 com.liferay.portal.SystemException {
332 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
333
334 return journalTemplateLocalService.getTemplateBySmallImageId(smallImageId);
335 }
336
337 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
338 throws com.liferay.portal.SystemException {
339 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
340
341 return journalTemplateLocalService.getTemplates();
342 }
343
344 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
345 long groupId) throws com.liferay.portal.SystemException {
346 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
347
348 return journalTemplateLocalService.getTemplates(groupId);
349 }
350
351 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
352 long groupId, int start, int end)
353 throws com.liferay.portal.SystemException {
354 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
355
356 return journalTemplateLocalService.getTemplates(groupId, start, end);
357 }
358
359 public static int getTemplatesCount(long groupId)
360 throws com.liferay.portal.SystemException {
361 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
362
363 return journalTemplateLocalService.getTemplatesCount(groupId);
364 }
365
366 public static boolean hasTemplate(long groupId, java.lang.String templateId)
367 throws com.liferay.portal.SystemException {
368 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
369
370 return journalTemplateLocalService.hasTemplate(groupId, templateId);
371 }
372
373 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
374 long companyId, long groupId, java.lang.String keywords,
375 java.lang.String structureId, java.lang.String structureIdComparator,
376 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
377 throws com.liferay.portal.SystemException {
378 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
379
380 return journalTemplateLocalService.search(companyId, groupId, keywords,
381 structureId, structureIdComparator, start, end, obc);
382 }
383
384 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
385 long companyId, long groupId, java.lang.String templateId,
386 java.lang.String structureId, java.lang.String structureIdComparator,
387 java.lang.String name, java.lang.String description,
388 boolean andOperator, int start, int end,
389 com.liferay.portal.kernel.util.OrderByComparator obc)
390 throws com.liferay.portal.SystemException {
391 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
392
393 return journalTemplateLocalService.search(companyId, groupId,
394 templateId, structureId, structureIdComparator, name, description,
395 andOperator, start, end, obc);
396 }
397
398 public static int searchCount(long companyId, long groupId,
399 java.lang.String keywords, java.lang.String structureId,
400 java.lang.String structureIdComparator)
401 throws com.liferay.portal.SystemException {
402 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
403
404 return journalTemplateLocalService.searchCount(companyId, groupId,
405 keywords, structureId, structureIdComparator);
406 }
407
408 public static int searchCount(long companyId, long groupId,
409 java.lang.String templateId, java.lang.String structureId,
410 java.lang.String structureIdComparator, java.lang.String name,
411 java.lang.String description, boolean andOperator)
412 throws com.liferay.portal.SystemException {
413 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
414
415 return journalTemplateLocalService.searchCount(companyId, groupId,
416 templateId, structureId, structureIdComparator, name, description,
417 andOperator);
418 }
419
420 public static com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
421 long groupId, java.lang.String templateId,
422 java.lang.String structureId, java.lang.String name,
423 java.lang.String description, java.lang.String xsl, boolean formatXsl,
424 java.lang.String langType, boolean cacheable, boolean smallImage,
425 java.lang.String smallImageURL, java.io.File smallFile)
426 throws com.liferay.portal.PortalException,
427 com.liferay.portal.SystemException {
428 JournalTemplateLocalService journalTemplateLocalService = JournalTemplateLocalServiceFactory.getService();
429
430 return journalTemplateLocalService.updateTemplate(groupId, templateId,
431 structureId, name, description, xsl, formatXsl, langType,
432 cacheable, smallImage, smallImageURL, smallFile);
433 }
434 }