1
19
20 package com.liferay.portlet.journal.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Isolation;
25 import com.liferay.portal.kernel.annotation.Propagation;
26 import com.liferay.portal.kernel.annotation.Transactional;
27
28
52 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
53 PortalException.class, SystemException.class})
54 public interface JournalTemplateLocalService {
55 public com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
56 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
57 throws com.liferay.portal.SystemException;
58
59 public com.liferay.portlet.journal.model.JournalTemplate createJournalTemplate(
60 long id);
61
62 public void deleteJournalTemplate(long id)
63 throws com.liferay.portal.SystemException,
64 com.liferay.portal.PortalException;
65
66 public void deleteJournalTemplate(
67 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
68 throws com.liferay.portal.SystemException;
69
70 public java.util.List<Object> dynamicQuery(
71 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72 throws com.liferay.portal.SystemException;
73
74 public java.util.List<Object> dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end) throws com.liferay.portal.SystemException;
77
78 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
79 public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
80 long id)
81 throws com.liferay.portal.SystemException,
82 com.liferay.portal.PortalException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
86 int start, int end) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public int getJournalTemplatesCount()
90 throws com.liferay.portal.SystemException;
91
92 public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
93 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
94 throws com.liferay.portal.SystemException;
95
96 public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
97 com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
98 boolean merge) throws com.liferay.portal.SystemException;
99
100 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
101 long userId, long groupId, java.lang.String templateId,
102 boolean autoTemplateId, java.lang.String structureId,
103 java.lang.String name, java.lang.String description,
104 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
105 boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
106 java.io.File smallFile,
107 com.liferay.portal.service.ServiceContext serviceContext)
108 throws com.liferay.portal.PortalException,
109 com.liferay.portal.SystemException;
110
111 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
112 java.lang.String uuid, long userId, long groupId,
113 java.lang.String templateId, boolean autoTemplateId,
114 java.lang.String structureId, java.lang.String name,
115 java.lang.String description, java.lang.String xsl, boolean formatXsl,
116 java.lang.String langType, boolean cacheable, boolean smallImage,
117 java.lang.String smallImageURL, java.io.File smallFile,
118 com.liferay.portal.service.ServiceContext serviceContext)
119 throws com.liferay.portal.PortalException,
120 com.liferay.portal.SystemException;
121
122 public void addTemplateResources(long groupId, java.lang.String templateId,
123 boolean addCommunityPermissions, boolean addGuestPermissions)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException;
126
127 public void addTemplateResources(
128 com.liferay.portlet.journal.model.JournalTemplate template,
129 boolean addCommunityPermissions, boolean addGuestPermissions)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException;
132
133 public void addTemplateResources(long groupId, java.lang.String templateId,
134 java.lang.String[] communityPermissions,
135 java.lang.String[] guestPermissions)
136 throws com.liferay.portal.PortalException,
137 com.liferay.portal.SystemException;
138
139 public void addTemplateResources(
140 com.liferay.portlet.journal.model.JournalTemplate template,
141 java.lang.String[] communityPermissions,
142 java.lang.String[] guestPermissions)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException;
145
146 public void checkNewLine(long groupId, java.lang.String templateId)
147 throws com.liferay.portal.PortalException,
148 com.liferay.portal.SystemException;
149
150 public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
151 long userId, long groupId, java.lang.String oldTemplateId,
152 java.lang.String newTemplateId, boolean autoTemplateId)
153 throws com.liferay.portal.PortalException,
154 com.liferay.portal.SystemException;
155
156 public void deleteTemplate(long groupId, java.lang.String templateId)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException;
159
160 public void deleteTemplate(
161 com.liferay.portlet.journal.model.JournalTemplate template)
162 throws com.liferay.portal.PortalException,
163 com.liferay.portal.SystemException;
164
165 public void deleteTemplates(long groupId)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException;
168
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
171 long groupId, java.lang.String structureId)
172 throws com.liferay.portal.SystemException;
173
174 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
175 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
176 long groupId, java.lang.String structureId, int start, int end)
177 throws com.liferay.portal.SystemException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public int getStructureTemplatesCount(long groupId,
181 java.lang.String structureId) throws com.liferay.portal.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
185 long id)
186 throws com.liferay.portal.PortalException,
187 com.liferay.portal.SystemException;
188
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
191 long groupId, java.lang.String templateId)
192 throws com.liferay.portal.PortalException,
193 com.liferay.portal.SystemException;
194
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
197 long smallImageId)
198 throws com.liferay.portal.PortalException,
199 com.liferay.portal.SystemException;
200
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
203 throws com.liferay.portal.SystemException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
207 long groupId) throws com.liferay.portal.SystemException;
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
211 long groupId, int start, int end)
212 throws com.liferay.portal.SystemException;
213
214 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215 public int getTemplatesCount(long groupId)
216 throws com.liferay.portal.SystemException;
217
218 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219 public boolean hasTemplate(long groupId, java.lang.String templateId)
220 throws com.liferay.portal.SystemException;
221
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
224 long companyId, long groupId, java.lang.String keywords,
225 java.lang.String structureId, java.lang.String structureIdComparator,
226 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
227 throws com.liferay.portal.SystemException;
228
229 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
231 long companyId, long groupId, java.lang.String templateId,
232 java.lang.String structureId, java.lang.String structureIdComparator,
233 java.lang.String name, java.lang.String description,
234 boolean andOperator, int start, int end,
235 com.liferay.portal.kernel.util.OrderByComparator obc)
236 throws com.liferay.portal.SystemException;
237
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public int searchCount(long companyId, long groupId,
240 java.lang.String keywords, java.lang.String structureId,
241 java.lang.String structureIdComparator)
242 throws com.liferay.portal.SystemException;
243
244 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245 public int searchCount(long companyId, long groupId,
246 java.lang.String templateId, java.lang.String structureId,
247 java.lang.String structureIdComparator, java.lang.String name,
248 java.lang.String description, boolean andOperator)
249 throws com.liferay.portal.SystemException;
250
251 public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
252 long groupId, java.lang.String templateId,
253 java.lang.String structureId, java.lang.String name,
254 java.lang.String description, java.lang.String xsl, boolean formatXsl,
255 java.lang.String langType, boolean cacheable, boolean smallImage,
256 java.lang.String smallImageURL, java.io.File smallFile,
257 com.liferay.portal.service.ServiceContext serviceContext)
258 throws com.liferay.portal.PortalException,
259 com.liferay.portal.SystemException;
260 }