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