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