001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class JournalTemplateServiceUtil {
037 public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
038 long groupId, java.lang.String templateId, boolean autoTemplateId,
039 java.lang.String structureId, java.lang.String name,
040 java.lang.String description, java.lang.String xsl, boolean formatXsl,
041 java.lang.String langType, boolean cacheable,
042 com.liferay.portal.service.ServiceContext serviceContext)
043 throws com.liferay.portal.kernel.exception.PortalException,
044 com.liferay.portal.kernel.exception.SystemException {
045 return getService()
046 .addTemplate(groupId, templateId, autoTemplateId,
047 structureId, name, description, xsl, formatXsl, langType,
048 cacheable, serviceContext);
049 }
050
051 public static com.liferay.portlet.journal.model.JournalTemplate addTemplate(
052 long groupId, java.lang.String templateId, boolean autoTemplateId,
053 java.lang.String structureId, java.lang.String name,
054 java.lang.String description, java.lang.String xsl, boolean formatXsl,
055 java.lang.String langType, boolean cacheable, boolean smallImage,
056 java.lang.String smallImageURL, java.io.File smallFile,
057 com.liferay.portal.service.ServiceContext serviceContext)
058 throws com.liferay.portal.kernel.exception.PortalException,
059 com.liferay.portal.kernel.exception.SystemException {
060 return getService()
061 .addTemplate(groupId, templateId, autoTemplateId,
062 structureId, name, description, xsl, formatXsl, langType,
063 cacheable, smallImage, smallImageURL, smallFile, serviceContext);
064 }
065
066 public static com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
067 long groupId, java.lang.String oldTemplateId,
068 java.lang.String newTemplateId, boolean autoTemplateId)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException {
071 return getService()
072 .copyTemplate(groupId, oldTemplateId, newTemplateId,
073 autoTemplateId);
074 }
075
076 public static void deleteTemplate(long groupId, java.lang.String templateId)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException {
079 getService().deleteTemplate(groupId, templateId);
080 }
081
082 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
083 long groupId, java.lang.String structureId)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException {
086 return getService().getStructureTemplates(groupId, structureId);
087 }
088
089 public static com.liferay.portlet.journal.model.JournalTemplate getTemplate(
090 long groupId, java.lang.String templateId)
091 throws com.liferay.portal.kernel.exception.PortalException,
092 com.liferay.portal.kernel.exception.SystemException {
093 return getService().getTemplate(groupId, templateId);
094 }
095
096 public static com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
097 long groupId, java.lang.String templateId,
098 java.lang.String structureId, java.lang.String name,
099 java.lang.String description, java.lang.String xsl, boolean formatXsl,
100 java.lang.String langType, boolean cacheable,
101 com.liferay.portal.service.ServiceContext serviceContext)
102 throws com.liferay.portal.kernel.exception.PortalException,
103 com.liferay.portal.kernel.exception.SystemException {
104 return getService()
105 .updateTemplate(groupId, templateId, structureId, name,
106 description, xsl, formatXsl, langType, cacheable, serviceContext);
107 }
108
109 public static com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
110 long groupId, java.lang.String templateId,
111 java.lang.String structureId, java.lang.String name,
112 java.lang.String description, java.lang.String xsl, boolean formatXsl,
113 java.lang.String langType, boolean cacheable, boolean smallImage,
114 java.lang.String smallImageURL, java.io.File smallFile,
115 com.liferay.portal.service.ServiceContext serviceContext)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException {
118 return getService()
119 .updateTemplate(groupId, templateId, structureId, name,
120 description, xsl, formatXsl, langType, cacheable, smallImage,
121 smallImageURL, smallFile, serviceContext);
122 }
123
124 public static JournalTemplateService getService() {
125 if (_service == null) {
126 _service = (JournalTemplateService)PortalBeanLocatorUtil.locate(JournalTemplateService.class.getName());
127 }
128
129 return _service;
130 }
131
132 public void setService(JournalTemplateService service) {
133 _service = service;
134 }
135
136 private static JournalTemplateService _service;
137 }