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, long groupId, java.lang.String templateId,
105 boolean autoTemplateId, java.lang.String structureId,
106 java.lang.String name, java.lang.String description,
107 java.lang.String xsl, boolean formatXsl, java.lang.String langType,
108 boolean cacheable, boolean smallImage, java.lang.String smallImageURL,
109 java.io.File smallFile,
110 com.liferay.portal.service.ServiceContext serviceContext)
111 throws com.liferay.portal.PortalException,
112 com.liferay.portal.SystemException;
113
114 public com.liferay.portlet.journal.model.JournalTemplate addTemplate(
115 java.lang.String uuid, long userId, long groupId,
116 java.lang.String templateId, boolean autoTemplateId,
117 java.lang.String structureId, java.lang.String name,
118 java.lang.String description, java.lang.String xsl, boolean formatXsl,
119 java.lang.String langType, boolean cacheable, boolean smallImage,
120 java.lang.String smallImageURL, 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 void addTemplateResources(long groupId, java.lang.String templateId,
126 boolean addCommunityPermissions, boolean addGuestPermissions)
127 throws com.liferay.portal.PortalException,
128 com.liferay.portal.SystemException;
129
130 public void addTemplateResources(
131 com.liferay.portlet.journal.model.JournalTemplate template,
132 boolean addCommunityPermissions, boolean addGuestPermissions)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException;
135
136 public void addTemplateResources(long groupId, java.lang.String templateId,
137 java.lang.String[] communityPermissions,
138 java.lang.String[] guestPermissions)
139 throws com.liferay.portal.PortalException,
140 com.liferay.portal.SystemException;
141
142 public void addTemplateResources(
143 com.liferay.portlet.journal.model.JournalTemplate template,
144 java.lang.String[] communityPermissions,
145 java.lang.String[] guestPermissions)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException;
148
149 public void checkNewLine(long groupId, java.lang.String templateId)
150 throws com.liferay.portal.PortalException,
151 com.liferay.portal.SystemException;
152
153 public com.liferay.portlet.journal.model.JournalTemplate copyTemplate(
154 long userId, long groupId, java.lang.String oldTemplateId,
155 java.lang.String newTemplateId, boolean autoTemplateId)
156 throws com.liferay.portal.PortalException,
157 com.liferay.portal.SystemException;
158
159 public void deleteTemplate(long groupId, java.lang.String templateId)
160 throws com.liferay.portal.PortalException,
161 com.liferay.portal.SystemException;
162
163 public void deleteTemplate(
164 com.liferay.portlet.journal.model.JournalTemplate template)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException;
167
168 public void deleteTemplates(long groupId)
169 throws com.liferay.portal.PortalException,
170 com.liferay.portal.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
174 long groupId, java.lang.String structureId)
175 throws com.liferay.portal.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getStructureTemplates(
179 long groupId, java.lang.String structureId, int start, int end)
180 throws com.liferay.portal.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public int getStructureTemplatesCount(long groupId,
184 java.lang.String structureId) throws com.liferay.portal.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
188 long id)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException;
191
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public com.liferay.portlet.journal.model.JournalTemplate getTemplate(
194 long groupId, java.lang.String templateId)
195 throws com.liferay.portal.PortalException,
196 com.liferay.portal.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public com.liferay.portlet.journal.model.JournalTemplate getTemplateBySmallImageId(
200 long smallImageId)
201 throws com.liferay.portal.PortalException,
202 com.liferay.portal.SystemException;
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates()
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
210 long groupId) throws com.liferay.portal.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> getTemplates(
214 long groupId, int start, int end)
215 throws com.liferay.portal.SystemException;
216
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public int getTemplatesCount(long groupId)
219 throws com.liferay.portal.SystemException;
220
221 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222 public boolean hasTemplate(long groupId, java.lang.String templateId)
223 throws com.liferay.portal.SystemException;
224
225 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
227 long companyId, long groupId, java.lang.String keywords,
228 java.lang.String structureId, java.lang.String structureIdComparator,
229 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
230 throws com.liferay.portal.SystemException;
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> search(
234 long companyId, long groupId, java.lang.String templateId,
235 java.lang.String structureId, java.lang.String structureIdComparator,
236 java.lang.String name, java.lang.String description,
237 boolean andOperator, int start, int end,
238 com.liferay.portal.kernel.util.OrderByComparator obc)
239 throws com.liferay.portal.SystemException;
240
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public int searchCount(long companyId, long groupId,
243 java.lang.String keywords, java.lang.String structureId,
244 java.lang.String structureIdComparator)
245 throws com.liferay.portal.SystemException;
246
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public int searchCount(long companyId, long groupId,
249 java.lang.String templateId, java.lang.String structureId,
250 java.lang.String structureIdComparator, java.lang.String name,
251 java.lang.String description, boolean andOperator)
252 throws com.liferay.portal.SystemException;
253
254 public com.liferay.portlet.journal.model.JournalTemplate updateTemplate(
255 long groupId, java.lang.String templateId,
256 java.lang.String structureId, java.lang.String name,
257 java.lang.String description, java.lang.String xsl, boolean formatXsl,
258 java.lang.String langType, boolean cacheable, boolean smallImage,
259 java.lang.String smallImageURL, java.io.File smallFile,
260 com.liferay.portal.service.ServiceContext serviceContext)
261 throws com.liferay.portal.PortalException,
262 com.liferay.portal.SystemException;
263 }