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