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.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26
27
51 @Transactional(rollbackFor = {
52 PortalException.class, SystemException.class})
53 public interface JournalTemplateLocalService {
54 public com.liferay.portlet.journal.model.JournalTemplate addJournalTemplate(
55 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
56 throws com.liferay.portal.SystemException;
57
58 public com.liferay.portlet.journal.model.JournalTemplate createJournalTemplate(
59 long id);
60
61 public void deleteJournalTemplate(long id)
62 throws com.liferay.portal.SystemException,
63 com.liferay.portal.PortalException;
64
65 public void deleteJournalTemplate(
66 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
67 throws com.liferay.portal.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end) throws com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
79 long id)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portal.PortalException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
85 int start, int end) throws com.liferay.portal.SystemException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public int getJournalTemplatesCount()
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 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 public boolean hasTemplate(long groupId, java.lang.String templateId)
250 throws com.liferay.portal.SystemException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
254 long companyId, long groupId, java.lang.String keywords,
255 java.lang.String structureId, java.lang.String structureIdComparator,
256 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
257 throws com.liferay.portal.SystemException;
258
259 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
261 long companyId, long groupId, java.lang.String templateId,
262 java.lang.String structureId, java.lang.String structureIdComparator,
263 java.lang.String name, java.lang.String description,
264 boolean andOperator, int start, int end,
265 com.liferay.portal.kernel.util.OrderByComparator obc)
266 throws com.liferay.portal.SystemException;
267
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public int searchCount(long companyId, long groupId,
270 java.lang.String keywords, java.lang.String structureId,
271 java.lang.String structureIdComparator)
272 throws com.liferay.portal.SystemException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public int searchCount(long companyId, long groupId,
276 java.lang.String templateId, java.lang.String structureId,
277 java.lang.String structureIdComparator, java.lang.String name,
278 java.lang.String description, boolean andOperator)
279 throws com.liferay.portal.SystemException;
280
281 public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
282 long groupId, java.lang.String templateId,
283 java.lang.String structureId, java.lang.String name,
284 java.lang.String description, java.lang.String xsl, boolean formatXsl,
285 java.lang.String langType, boolean cacheable, boolean smallImage,
286 java.lang.String smallImageURL, java.io.File smallFile)
287 throws com.liferay.portal.PortalException,
288 com.liferay.portal.SystemException;
289 }