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