1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface LayoutLocalService {
50 public com.liferay.portal.model.Layout addLayout(
51 com.liferay.portal.model.Layout layout)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portal.model.Layout createLayout(long plid);
55
56 public void deleteLayout(long plid)
57 throws com.liferay.portal.kernel.exception.PortalException,
58 com.liferay.portal.kernel.exception.SystemException;
59
60 public void deleteLayout(com.liferay.portal.model.Layout layout)
61 throws com.liferay.portal.kernel.exception.SystemException;
62
63 @SuppressWarnings("unchecked")
64 public java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.kernel.exception.SystemException;
67
68 @SuppressWarnings("unchecked")
69 public java.util.List dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 @SuppressWarnings("unchecked")
74 public java.util.List dynamicQuery(
75 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
76 int end,
77 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
78 throws com.liferay.portal.kernel.exception.SystemException;
79
80 public long dynamicQueryCount(
81 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
82 throws com.liferay.portal.kernel.exception.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public com.liferay.portal.model.Layout getLayout(long plid)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portal.model.Layout> getLayouts(
91 int start, int end)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getLayoutsCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portal.model.Layout updateLayout(
99 com.liferay.portal.model.Layout layout)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portal.model.Layout updateLayout(
103 com.liferay.portal.model.Layout layout, boolean merge)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106 public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
107 boolean privateLayout, long parentLayoutId,
108 java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
109 java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
110 java.lang.String description, java.lang.String type, boolean hidden,
111 java.lang.String friendlyURL, long dlFolderId,
112 com.liferay.portal.service.ServiceContext serviceContext)
113 throws com.liferay.portal.kernel.exception.PortalException,
114 com.liferay.portal.kernel.exception.SystemException;
115
116 public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
117 boolean privateLayout, long parentLayoutId,
118 java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
119 java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
120 java.lang.String description, java.lang.String type, boolean hidden,
121 java.lang.String friendlyURL,
122 com.liferay.portal.service.ServiceContext serviceContext)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException;
125
126 public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
127 boolean privateLayout, long parentLayoutId, java.lang.String name,
128 java.lang.String title, java.lang.String description,
129 java.lang.String type, boolean hidden, java.lang.String friendlyURL,
130 long dlFolderId,
131 com.liferay.portal.service.ServiceContext serviceContext)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException;
134
135 public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
136 boolean privateLayout, long parentLayoutId, java.lang.String name,
137 java.lang.String title, java.lang.String description,
138 java.lang.String type, boolean hidden, java.lang.String friendlyURL,
139 com.liferay.portal.service.ServiceContext serviceContext)
140 throws com.liferay.portal.kernel.exception.PortalException,
141 com.liferay.portal.kernel.exception.SystemException;
142
143 public void deleteLayout(com.liferay.portal.model.Layout layout,
144 boolean updateLayoutSet)
145 throws com.liferay.portal.kernel.exception.PortalException,
146 com.liferay.portal.kernel.exception.SystemException;
147
148 public void deleteLayout(long groupId, boolean privateLayout, long layoutId)
149 throws com.liferay.portal.kernel.exception.PortalException,
150 com.liferay.portal.kernel.exception.SystemException;
151
152 public void deleteLayouts(long groupId, boolean privateLayout)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException;
155
156 public byte[] exportLayouts(long groupId, boolean privateLayout,
157 long[] layoutIds,
158 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
159 java.util.Date startDate, java.util.Date endDate)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 public byte[] exportLayouts(long groupId, boolean privateLayout,
164 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
165 java.util.Date startDate, java.util.Date endDate)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169 public java.io.File exportLayoutsAsFile(long groupId,
170 boolean privateLayout, long[] layoutIds,
171 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
172 java.util.Date startDate, java.util.Date endDate)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException;
175
176 public byte[] exportPortletInfo(long plid, long groupId,
177 java.lang.String portletId,
178 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
179 java.util.Date startDate, java.util.Date endDate)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.SystemException;
182
183 public java.io.File exportPortletInfoAsFile(long plid, long groupId,
184 java.lang.String portletId,
185 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
186 java.util.Date startDate, java.util.Date endDate)
187 throws com.liferay.portal.kernel.exception.PortalException,
188 com.liferay.portal.kernel.exception.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public long getDefaultPlid(long groupId)
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public long getDefaultPlid(long groupId, boolean privateLayout)
196 throws com.liferay.portal.kernel.exception.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public long getDefaultPlid(long groupId, boolean privateLayout,
200 java.lang.String portletId)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException;
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public com.liferay.portal.model.Layout getDLFolderLayout(long dlFolderId)
206 throws com.liferay.portal.kernel.exception.PortalException,
207 com.liferay.portal.kernel.exception.SystemException;
208
209 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210 public com.liferay.portal.model.Layout getFriendlyURLLayout(long groupId,
211 boolean privateLayout, java.lang.String friendlyURL)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException;
214
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public com.liferay.portal.model.Layout getLayout(long groupId,
217 boolean privateLayout, long layoutId)
218 throws com.liferay.portal.kernel.exception.PortalException,
219 com.liferay.portal.kernel.exception.SystemException;
220
221 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
222 public com.liferay.portal.model.Layout getLayoutByIconImageId(
223 long iconImageId)
224 throws com.liferay.portal.kernel.exception.PortalException,
225 com.liferay.portal.kernel.exception.SystemException;
226
227 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228 public java.util.List<com.liferay.portal.model.Layout> getLayouts(
229 long groupId, boolean privateLayout)
230 throws com.liferay.portal.kernel.exception.SystemException;
231
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public java.util.List<com.liferay.portal.model.Layout> getLayouts(
234 long groupId, boolean privateLayout, long parentLayoutId)
235 throws com.liferay.portal.kernel.exception.SystemException;
236
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public java.util.List<com.liferay.portal.model.Layout> getLayouts(
239 long groupId, boolean privateLayout, long parentLayoutId, int start,
240 int end) throws com.liferay.portal.kernel.exception.SystemException;
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public java.util.List<com.liferay.portal.model.Layout> getLayouts(
244 long groupId, boolean privateLayout, long[] layoutIds)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException;
247
248 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
249 public java.util.List<com.liferay.portal.model.Layout> getLayouts(
250 long groupId, boolean privateLayout, java.lang.String type)
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254 public com.liferay.portal.model.LayoutReference[] getLayouts(
255 long companyId, java.lang.String portletId,
256 java.lang.String preferencesKey, java.lang.String preferencesValue)
257 throws com.liferay.portal.kernel.exception.SystemException;
258
259 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260 public long getNextLayoutId(long groupId, boolean privateLayout)
261 throws com.liferay.portal.kernel.exception.SystemException;
262
263 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
264 public java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
265 throws com.liferay.portal.kernel.exception.SystemException;
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public boolean hasLayouts(long groupId, boolean privateLayout,
269 long parentLayoutId)
270 throws com.liferay.portal.kernel.exception.SystemException;
271
272 public void importLayouts(long userId, long groupId, boolean privateLayout,
273 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
274 byte[] bytes)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException;
277
278 public void importLayouts(long userId, long groupId, boolean privateLayout,
279 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
280 java.io.File file)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException;
283
284 public void importLayouts(long userId, long groupId, boolean privateLayout,
285 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
286 java.io.InputStream is)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException;
289
290 public void importPortletInfo(long userId, long plid, long groupId,
291 java.lang.String portletId,
292 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
293 java.io.File file)
294 throws com.liferay.portal.kernel.exception.PortalException,
295 com.liferay.portal.kernel.exception.SystemException;
296
297 public void importPortletInfo(long userId, long plid, long groupId,
298 java.lang.String portletId,
299 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
300 java.io.InputStream is)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException;
303
304 public void setLayouts(long groupId, boolean privateLayout,
305 long parentLayoutId, long[] layoutIds)
306 throws com.liferay.portal.kernel.exception.PortalException,
307 com.liferay.portal.kernel.exception.SystemException;
308
309 public com.liferay.portal.model.Layout updateFriendlyURL(long plid,
310 java.lang.String friendlyURL)
311 throws com.liferay.portal.kernel.exception.PortalException,
312 com.liferay.portal.kernel.exception.SystemException;
313
314 public com.liferay.portal.model.Layout updateLayout(long groupId,
315 boolean privateLayout, long layoutId, long parentLayoutId,
316 java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
317 java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
318 java.lang.String description, java.lang.String type, boolean hidden,
319 java.lang.String friendlyURL, java.lang.Boolean iconImage,
320 byte[] iconBytes,
321 com.liferay.portal.service.ServiceContext serviceContext)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException;
324
325 public com.liferay.portal.model.Layout updateLayout(long groupId,
326 boolean privateLayout, long layoutId, long parentLayoutId,
327 java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
328 java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
329 java.lang.String description, java.lang.String type, boolean hidden,
330 java.lang.String friendlyURL,
331 com.liferay.portal.service.ServiceContext serviceContext)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException;
334
335 public com.liferay.portal.model.Layout updateLayout(long groupId,
336 boolean privateLayout, long layoutId, java.lang.String typeSettings)
337 throws com.liferay.portal.kernel.exception.PortalException,
338 com.liferay.portal.kernel.exception.SystemException;
339
340 public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
341 boolean privateLayout, long layoutId, java.lang.String themeId,
342 java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
343 throws com.liferay.portal.kernel.exception.PortalException,
344 com.liferay.portal.kernel.exception.SystemException;
345
346 public com.liferay.portal.model.Layout updateName(
347 com.liferay.portal.model.Layout layout, java.lang.String name,
348 java.lang.String languageId)
349 throws com.liferay.portal.kernel.exception.PortalException,
350 com.liferay.portal.kernel.exception.SystemException;
351
352 public com.liferay.portal.model.Layout updateName(long groupId,
353 boolean privateLayout, long layoutId, java.lang.String name,
354 java.lang.String languageId)
355 throws com.liferay.portal.kernel.exception.PortalException,
356 com.liferay.portal.kernel.exception.SystemException;
357
358 public com.liferay.portal.model.Layout updateName(long plid,
359 java.lang.String name, java.lang.String languageId)
360 throws com.liferay.portal.kernel.exception.PortalException,
361 com.liferay.portal.kernel.exception.SystemException;
362
363 public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
364 boolean privateLayout, long layoutId, long parentLayoutId)
365 throws com.liferay.portal.kernel.exception.PortalException,
366 com.liferay.portal.kernel.exception.SystemException;
367
368 public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
369 long parentPlid)
370 throws com.liferay.portal.kernel.exception.PortalException,
371 com.liferay.portal.kernel.exception.SystemException;
372
373 public com.liferay.portal.model.Layout updatePriority(
374 com.liferay.portal.model.Layout layout, int priority)
375 throws com.liferay.portal.kernel.exception.SystemException;
376
377 public com.liferay.portal.model.Layout updatePriority(long groupId,
378 boolean privateLayout, long layoutId, int priority)
379 throws com.liferay.portal.kernel.exception.PortalException,
380 com.liferay.portal.kernel.exception.SystemException;
381
382 public com.liferay.portal.model.Layout updatePriority(long plid,
383 int priority)
384 throws com.liferay.portal.kernel.exception.PortalException,
385 com.liferay.portal.kernel.exception.SystemException;
386 }