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