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