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