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