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