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