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 @SuppressWarnings("rawtypes")
66 public java.util.List dynamicQuery(
67 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
68 throws com.liferay.portal.SystemException;
69
70 @SuppressWarnings("rawtypes")
71 public java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.SystemException;
74
75 @SuppressWarnings("rawtypes")
76 public java.util.List dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.SystemException;
81
82 public int dynamicQueryCount(
83 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
84 throws com.liferay.portal.SystemException;
85
86 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
87 public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplate(
88 long id)
89 throws com.liferay.portal.PortalException,
90 com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public com.liferay.portlet.journal.model.JournalTemplate getJournalTemplateByUuidAndGroupId(
94 java.lang.String uuid, long groupId)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException;
97
98 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
99 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getJournalTemplates(
100 int start, int end) throws com.liferay.portal.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public int getJournalTemplatesCount()
104 throws com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
107 com.liferay.portlet.journal.model.JournalTemplate journalTemplate)
108 throws com.liferay.portal.SystemException;
109
110 public com.liferay.portlet.journal.model.JournalTemplate updateJournalTemplate(
111 com.liferay.portlet.journal.model.JournalTemplate journalTemplate,
112 boolean merge) throws com.liferay.portal.SystemException;
113
114 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
115 long userId, long groupId, java.lang.String templateId,
116 boolean autoTemplateId, java.lang.String structureId,
117 java.lang.String name, java.lang.String description,
118 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
119 boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
120 java.io.File smallFile,
121 com.liferay.portal.service.ServiceContext serviceContext)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException;
124
125 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
126 java.lang.String uuid, long userId, long groupId,
127 java.lang.String templateId, boolean autoTemplateId,
128 java.lang.String structureId, java.lang.String name,
129 java.lang.String description, java.lang.String xsl, boolean formatXsl,
130 java.lang.String langType, boolean cacheable, boolean smallImage,
131 java.lang.String smallImageURL, java.io.File smallFile,
132 com.liferay.portal.service.ServiceContext serviceContext)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException;
135
136 public void addTemplateResources(long groupId, java.lang.String templateId,
137 boolean addCommunityPermissions, boolean addGuestPermissions)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException;
140
141 public void addTemplateResources(
142 com.liferay.portlet.journal.model.JournalTemplate template,
143 boolean addCommunityPermissions, boolean addGuestPermissions)
144 throws com.liferay.portal.PortalException,
145 com.liferay.portal.SystemException;
146
147 public void addTemplateResources(long groupId, java.lang.String templateId,
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(
154 com.liferay.portlet.journal.model.JournalTemplate template,
155 java.lang.String[] communityPermissions,
156 java.lang.String[] guestPermissions)
157 throws com.liferay.portal.PortalException,
158 com.liferay.portal.SystemException;
159
160 public void checkNewLine(long groupId, java.lang.String templateId)
161 throws com.liferay.portal.PortalException,
162 com.liferay.portal.SystemException;
163
164 public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
165 long userId, long groupId, java.lang.String oldTemplateId,
166 java.lang.String newTemplateId, boolean autoTemplateId)
167 throws com.liferay.portal.PortalException,
168 com.liferay.portal.SystemException;
169
170 public void deleteTemplate(long groupId, java.lang.String templateId)
171 throws com.liferay.portal.PortalException,
172 com.liferay.portal.SystemException;
173
174 public void deleteTemplate(
175 com.liferay.portlet.journal.model.JournalTemplate template)
176 throws com.liferay.portal.PortalException,
177 com.liferay.portal.SystemException;
178
179 public void deleteTemplates(long groupId)
180 throws com.liferay.portal.PortalException,
181 com.liferay.portal.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
185 long groupId, java.lang.String structureId)
186 throws com.liferay.portal.SystemException;
187
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
190 long groupId, java.lang.String structureId, int start, int end)
191 throws com.liferay.portal.SystemException;
192
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public int getStructureTemplatesCount(long groupId,
195 java.lang.String structureId) throws com.liferay.portal.SystemException;
196
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
199 long id)
200 throws com.liferay.portal.PortalException,
201 com.liferay.portal.SystemException;
202
203 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204 public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
205 long groupId, java.lang.String templateId)
206 throws com.liferay.portal.PortalException,
207 com.liferay.portal.SystemException;
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
211 long smallImageId)
212 throws com.liferay.portal.PortalException,
213 com.liferay.portal.SystemException;
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
217 throws com.liferay.portal.SystemException;
218
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
221 long groupId) throws com.liferay.portal.SystemException;
222
223 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
224 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
225 long groupId, int start, int end)
226 throws com.liferay.portal.SystemException;
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public int getTemplatesCount(long groupId)
230 throws com.liferay.portal.SystemException;
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public boolean hasTemplate(long groupId, java.lang.String templateId)
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> search(
238 long companyId, long groupId, java.lang.String keywords,
239 java.lang.String structureId, java.lang.String structureIdComparator,
240 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
241 throws com.liferay.portal.SystemException;
242
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
245 long companyId, long groupId, java.lang.String templateId,
246 java.lang.String structureId, java.lang.String structureIdComparator,
247 java.lang.String name, java.lang.String description,
248 boolean andOperator, int start, int end,
249 com.liferay.portal.kernel.util.OrderByComparator obc)
250 throws com.liferay.portal.SystemException;
251
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public int searchCount(long companyId, long groupId,
254 java.lang.String keywords, java.lang.String structureId,
255 java.lang.String structureIdComparator)
256 throws com.liferay.portal.SystemException;
257
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public int searchCount(long companyId, long groupId,
260 java.lang.String templateId, java.lang.String structureId,
261 java.lang.String structureIdComparator, java.lang.String name,
262 java.lang.String description, boolean andOperator)
263 throws com.liferay.portal.SystemException;
264
265 public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
266 long groupId, java.lang.String templateId,
267 java.lang.String structureId, java.lang.String name,
268 java.lang.String description, java.lang.String xsl, boolean formatXsl,
269 java.lang.String langType, boolean cacheable, boolean smallImage,
270 java.lang.String smallImageURL, java.io.File smallFile,
271 com.liferay.portal.service.ServiceContext serviceContext)
272 throws com.liferay.portal.PortalException,
273 com.liferay.portal.SystemException;
274 }