1
14
15 package com.liferay.portlet.journal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class JournalTemplateLocalServiceUtil {
40 public static com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
41 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
42 throws com.liferay.portal.kernel.exception.SystemException {
43 return getService().addJournalTemplate(journalTemplate);
44 }
45
46 public static com.liferay.portlet.journal.model.JournalTemplate createJournalTemplate(
47 long id) {
48 return getService().createJournalTemplate(id);
49 }
50
51 public static void deleteJournalTemplate(long id)
52 throws com.liferay.portal.kernel.exception.PortalException,
53 com.liferay.portal.kernel.exception.SystemException {
54 getService().deleteJournalTemplate(id);
55 }
56
57 public static void deleteJournalTemplate(
58 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
59 throws com.liferay.portal.kernel.exception.SystemException {
60 getService().deleteJournalTemplate(journalTemplate);
61 }
62
63 @SuppressWarnings("unchecked")
64 public static java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.kernel.exception.SystemException {
67 return getService().dynamicQuery(dynamicQuery);
68 }
69
70 @SuppressWarnings("unchecked")
71 public static java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.kernel.exception.SystemException {
74 return getService().dynamicQuery(dynamicQuery, start, end);
75 }
76
77 @SuppressWarnings("unchecked")
78 public static java.util.List dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80 int end,
81 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82 throws com.liferay.portal.kernel.exception.SystemException {
83 return getService()
84 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85 }
86
87 public static long dynamicQueryCount(
88 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89 throws com.liferay.portal.kernel.exception.SystemException {
90 return getService().dynamicQueryCount(dynamicQuery);
91 }
92
93 public static com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
94 long id)
95 throws com.liferay.portal.kernel.exception.PortalException,
96 com.liferay.portal.kernel.exception.SystemException {
97 return getService().getJournalTemplate(id);
98 }
99
100 public static com.liferay.portlet.journal.model.JournalTemplate getJournalTemplateByUuidAndGroupId(
101 java.lang.String uuid, long groupId)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException {
104 return getService().getJournalTemplateByUuidAndGroupId(uuid, groupId);
105 }
106
107 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
108 int start, int end)
109 throws com.liferay.portal.kernel.exception.SystemException {
110 return getService().getJournalTemplates(start, end);
111 }
112
113 public static int getJournalTemplatesCount()
114 throws com.liferay.portal.kernel.exception.SystemException {
115 return getService().getJournalTemplatesCount();
116 }
117
118 public static com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
119 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
120 throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().updateJournalTemplate(journalTemplate);
122 }
123
124 public static com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
125 com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
126 boolean merge)
127 throws com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
156 com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
199 com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
207 com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
215 com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
223 com.liferay.portal.kernel.exception.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.kernel.exception.PortalException,
230 com.liferay.portal.kernel.exception.SystemException {
231 getService().deleteTemplate(template);
232 }
233
234 public static void deleteTemplates(long groupId)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.SystemException {
249 return getService()
250 .getStructureTemplates(groupId, structureId, start, end);
251 }
252
253 public static int getStructureTemplatesCount(long groupId,
254 java.lang.String structureId)
255 throws com.liferay.portal.kernel.exception.SystemException {
256 return getService().getStructureTemplatesCount(groupId, structureId);
257 }
258
259 public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
260 long id)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException {
263 return getService().getTemplate(id);
264 }
265
266 public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
267 long groupId, java.lang.String templateId)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException {
270 return getService().getTemplate(groupId, templateId);
271 }
272
273 public static com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
274 long smallImageId)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException {
277 return getService().getTemplateBySmallImageId(smallImageId);
278 }
279
280 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
281 throws com.liferay.portal.kernel.exception.SystemException {
282 return getService().getTemplates();
283 }
284
285 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
286 long groupId)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 return getService().getTemplates(groupId);
289 }
290
291 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
292 long groupId, int start, int end)
293 throws com.liferay.portal.kernel.exception.SystemException {
294 return getService().getTemplates(groupId, start, end);
295 }
296
297 public static int getTemplatesCount(long groupId)
298 throws com.liferay.portal.kernel.exception.SystemException {
299 return getService().getTemplatesCount(groupId);
300 }
301
302 public static boolean hasTemplate(long groupId, java.lang.String templateId)
303 throws com.liferay.portal.kernel.exception.SystemException {
304 return getService().hasTemplate(groupId, templateId);
305 }
306
307 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
308 long companyId, long groupId, java.lang.String keywords,
309 java.lang.String structureId, java.lang.String structureIdComparator,
310 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 return getService()
313 .search(companyId, groupId, keywords, structureId,
314 structureIdComparator, start, end, obc);
315 }
316
317 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
318 long companyId, long groupId, java.lang.String templateId,
319 java.lang.String structureId, java.lang.String structureIdComparator,
320 java.lang.String name, java.lang.String description,
321 boolean andOperator, int start, int end,
322 com.liferay.portal.kernel.util.OrderByComparator obc)
323 throws com.liferay.portal.kernel.exception.SystemException {
324 return getService()
325 .search(companyId, groupId, templateId, structureId,
326 structureIdComparator, name, description, andOperator, start, end,
327 obc);
328 }
329
330 public static int searchCount(long companyId, long groupId,
331 java.lang.String keywords, java.lang.String structureId,
332 java.lang.String structureIdComparator)
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return getService()
335 .searchCount(companyId, groupId, keywords, structureId,
336 structureIdComparator);
337 }
338
339 public static int searchCount(long companyId, long groupId,
340 java.lang.String templateId, java.lang.String structureId,
341 java.lang.String structureIdComparator, java.lang.String name,
342 java.lang.String description, boolean andOperator)
343 throws com.liferay.portal.kernel.exception.SystemException {
344 return getService()
345 .searchCount(companyId, groupId, templateId, structureId,
346 structureIdComparator, name, description, andOperator);
347 }
348
349 public static com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
350 long groupId, java.lang.String templateId,
351 java.lang.String structureId, java.lang.String name,
352 java.lang.String description, java.lang.String xsl, boolean formatXsl,
353 java.lang.String langType, boolean cacheable, boolean smallImage,
354 java.lang.String smallImageURL, java.io.File smallFile,
355 com.liferay.portal.service.ServiceContext serviceContext)
356 throws com.liferay.portal.kernel.exception.PortalException,
357 com.liferay.portal.kernel.exception.SystemException {
358 return getService()
359 .updateTemplate(groupId, templateId, structureId, name,
360 description, xsl, formatXsl, langType, cacheable, smallImage,
361 smallImageURL, smallFile, serviceContext);
362 }
363
364 public static JournalTemplateLocalService getService() {
365 if (_service == null) {
366 _service = (JournalTemplateLocalService)PortalBeanLocatorUtil.locate(JournalTemplateLocalService.class.getName());
367 }
368
369 return _service;
370 }
371
372 public void setService(JournalTemplateLocalService service) {
373 _service = service;
374 }
375
376 private static JournalTemplateLocalService _service;
377 }