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