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