001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023 import com.liferay.portal.service.BaseService;
024
025
038 @JSONWebService
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface JournalTemplateService extends BaseService {
042
047
048
053 public java.lang.String getBeanIdentifier();
054
055
060 public void setBeanIdentifier(java.lang.String beanIdentifier);
061
062 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
063 long groupId, java.lang.String templateId, boolean autoTemplateId,
064 java.lang.String structureId,
065 java.util.Map<java.util.Locale, java.lang.String> nameMap,
066 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
067 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
068 boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
069 java.io.File smallFile,
070 com.liferay.portal.service.ServiceContext serviceContext)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
075 long groupId, java.lang.String templateId, boolean autoTemplateId,
076 java.lang.String structureId,
077 java.util.Map<java.util.Locale, java.lang.String> nameMap,
078 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
079 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
080 boolean cacheable,
081 com.liferay.portal.service.ServiceContext serviceContext)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException;
084
085 public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
086 long groupId, java.lang.String oldTemplateId,
087 java.lang.String newTemplateId, boolean autoTemplateId)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException;
090
091 public void deleteTemplate(long groupId, java.lang.String templateId)
092 throws com.liferay.portal.kernel.exception.PortalException,
093 com.liferay.portal.kernel.exception.SystemException;
094
095 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
096 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
097 long groupId, java.lang.String structureId)
098 throws com.liferay.portal.kernel.exception.SystemException;
099
100 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101 public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
102 long groupId, java.lang.String templateId)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException;
105
106 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
107 public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
108 long groupId, java.lang.String templateId,
109 boolean includeGlobalTemplates)
110 throws com.liferay.portal.kernel.exception.PortalException,
111 com.liferay.portal.kernel.exception.SystemException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
115 long companyId, long[] groupIds, java.lang.String keywords,
116 java.lang.String structureId, java.lang.String structureIdComparator,
117 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.kernel.exception.SystemException;
119
120 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
121 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
122 long companyId, long[] groupIds, java.lang.String templateId,
123 java.lang.String structureId, java.lang.String structureIdComparator,
124 java.lang.String name, java.lang.String description,
125 boolean andOperator, int start, int end,
126 com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.kernel.exception.SystemException;
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public int searchCount(long companyId, long[] groupIds,
131 java.lang.String keywords, java.lang.String structureId,
132 java.lang.String structureIdComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public int searchCount(long companyId, long[] groupIds,
137 java.lang.String templateId, java.lang.String structureId,
138 java.lang.String structureIdComparator, java.lang.String name,
139 java.lang.String description, boolean andOperator)
140 throws com.liferay.portal.kernel.exception.SystemException;
141
142 public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
143 long groupId, java.lang.String templateId,
144 java.lang.String structureId,
145 java.util.Map<java.util.Locale, java.lang.String> nameMap,
146 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
147 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
148 boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
149 java.io.File smallFile,
150 com.liferay.portal.service.ServiceContext serviceContext)
151 throws com.liferay.portal.kernel.exception.PortalException,
152 com.liferay.portal.kernel.exception.SystemException;
153
154 public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
155 long groupId, java.lang.String templateId,
156 java.lang.String structureId,
157 java.util.Map<java.util.Locale, java.lang.String> nameMap,
158 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
159 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
160 boolean cacheable,
161 com.liferay.portal.service.ServiceContext serviceContext)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164 }