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