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