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