1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portal.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  /**
24   * <a href="LayoutLocalService.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This interface defines the service. The default implementation is
33   * {@link
34   * com.liferay.portal.service.impl.LayoutLocalServiceImpl}}.
35   * Modify methods in that class and rerun ServiceBuilder to populate this class
36   * and all other generated classes.
37   * </p>
38   *
39   * <p>
40   * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       LayoutLocalServiceUtil
45   * @generated
46   */
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.SystemException;
53  
54      public com.liferay.portal.model.Layout createLayout(long plid);
55  
56      public void deleteLayout(long plid)
57          throws com.liferay.portal.PortalException,
58              com.liferay.portal.SystemException;
59  
60      public void deleteLayout(com.liferay.portal.model.Layout layout)
61          throws com.liferay.portal.SystemException;
62  
63      public java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.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.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.SystemException;
76  
77      public int dynamicQueryCount(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
79          throws com.liferay.portal.SystemException;
80  
81      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82      public com.liferay.portal.model.Layout getLayout(long plid)
83          throws com.liferay.portal.PortalException,
84              com.liferay.portal.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) throws com.liferay.portal.SystemException;
89  
90      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
91      public int getLayoutsCount() throws com.liferay.portal.SystemException;
92  
93      public com.liferay.portal.model.Layout updateLayout(
94          com.liferay.portal.model.Layout layout)
95          throws com.liferay.portal.SystemException;
96  
97      public com.liferay.portal.model.Layout updateLayout(
98          com.liferay.portal.model.Layout layout, boolean merge)
99          throws com.liferay.portal.SystemException;
100 
101     public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
102         boolean privateLayout, long parentLayoutId,
103         java.util.Map<java.util.Locale, String> localeNamesMap,
104         java.util.Map<java.util.Locale, String> localeTitlesMap,
105         java.lang.String description, java.lang.String type, boolean hidden,
106         java.lang.String friendlyURL)
107         throws com.liferay.portal.PortalException,
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
111         boolean privateLayout, long parentLayoutId,
112         java.util.Map<java.util.Locale, String> localeNamesMap,
113         java.util.Map<java.util.Locale, String> localeTitlesMap,
114         java.lang.String description, java.lang.String type, boolean hidden,
115         java.lang.String friendlyURL, long dlFolderId)
116         throws com.liferay.portal.PortalException,
117             com.liferay.portal.SystemException;
118 
119     public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
120         boolean privateLayout, long parentLayoutId, java.lang.String name,
121         java.lang.String title, java.lang.String description,
122         java.lang.String type, boolean hidden, java.lang.String friendlyURL)
123         throws com.liferay.portal.PortalException,
124             com.liferay.portal.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         throws com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException;
133 
134     public void deleteLayout(com.liferay.portal.model.Layout layout,
135         boolean updateLayoutSet)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException;
138 
139     public void deleteLayout(long groupId, boolean privateLayout, long layoutId)
140         throws com.liferay.portal.PortalException,
141             com.liferay.portal.SystemException;
142 
143     public void deleteLayouts(long groupId, boolean privateLayout)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException;
146 
147     public byte[] exportLayouts(long groupId, boolean privateLayout,
148         long[] layoutIds, java.util.Map<String, String[]> parameterMap,
149         java.util.Date startDate, java.util.Date endDate)
150         throws com.liferay.portal.PortalException,
151             com.liferay.portal.SystemException;
152 
153     public byte[] exportLayouts(long groupId, boolean privateLayout,
154         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
155         java.util.Date endDate)
156         throws com.liferay.portal.PortalException,
157             com.liferay.portal.SystemException;
158 
159     public java.io.File exportLayoutsAsFile(long groupId,
160         boolean privateLayout, long[] layoutIds,
161         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
162         java.util.Date endDate)
163         throws com.liferay.portal.PortalException,
164             com.liferay.portal.SystemException;
165 
166     public byte[] exportPortletInfo(long plid, long groupId,
167         java.lang.String portletId,
168         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
169         java.util.Date endDate)
170         throws com.liferay.portal.PortalException,
171             com.liferay.portal.SystemException;
172 
173     public java.io.File exportPortletInfoAsFile(long plid, long groupId,
174         java.lang.String portletId,
175         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
176         java.util.Date endDate)
177         throws com.liferay.portal.PortalException,
178             com.liferay.portal.SystemException;
179 
180     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
181     public long getDefaultPlid(long groupId)
182         throws com.liferay.portal.SystemException;
183 
184     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185     public long getDefaultPlid(long groupId, boolean privateLayout)
186         throws com.liferay.portal.SystemException;
187 
188     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189     public long getDefaultPlid(long groupId, boolean privateLayout,
190         java.lang.String portletId) throws com.liferay.portal.SystemException;
191 
192     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193     public com.liferay.portal.model.Layout getDLFolderLayout(long dlFolderId)
194         throws com.liferay.portal.PortalException,
195             com.liferay.portal.SystemException;
196 
197     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198     public com.liferay.portal.model.Layout getFriendlyURLLayout(long groupId,
199         boolean privateLayout, java.lang.String friendlyURL)
200         throws com.liferay.portal.PortalException,
201             com.liferay.portal.SystemException;
202 
203     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
204     public com.liferay.portal.model.Layout getLayout(long groupId,
205         boolean privateLayout, long layoutId)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException;
208 
209     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
210     public com.liferay.portal.model.Layout getLayoutByIconImageId(
211         long iconImageId)
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.portal.model.Layout> getLayouts(
217         long groupId, boolean privateLayout)
218         throws com.liferay.portal.SystemException;
219 
220     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
221     public java.util.List<com.liferay.portal.model.Layout> getLayouts(
222         long groupId, boolean privateLayout, long parentLayoutId)
223         throws com.liferay.portal.SystemException;
224 
225     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
226     public java.util.List<com.liferay.portal.model.Layout> getLayouts(
227         long groupId, boolean privateLayout, long parentLayoutId, int start,
228         int end) throws com.liferay.portal.SystemException;
229 
230     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231     public java.util.List<com.liferay.portal.model.Layout> getLayouts(
232         long groupId, boolean privateLayout, long[] layoutIds)
233         throws com.liferay.portal.PortalException,
234             com.liferay.portal.SystemException;
235 
236     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
237     public java.util.List<com.liferay.portal.model.Layout> getLayouts(
238         long groupId, boolean privateLayout, java.lang.String type)
239         throws com.liferay.portal.SystemException;
240 
241     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242     public com.liferay.portal.model.LayoutReference[] getLayouts(
243         long companyId, java.lang.String portletId,
244         java.lang.String preferencesKey, java.lang.String preferencesValue)
245         throws com.liferay.portal.SystemException;
246 
247     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248     public long getNextLayoutId(long groupId, boolean privateLayout)
249         throws com.liferay.portal.SystemException;
250 
251     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
252     public java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
253         throws com.liferay.portal.SystemException;
254 
255     public void importLayouts(long userId, long groupId, boolean privateLayout,
256         java.util.Map<String, String[]> parameterMap, byte[] bytes)
257         throws com.liferay.portal.PortalException,
258             com.liferay.portal.SystemException;
259 
260     public void importLayouts(long userId, long groupId, boolean privateLayout,
261         java.util.Map<String, String[]> parameterMap, java.io.File file)
262         throws com.liferay.portal.PortalException,
263             com.liferay.portal.SystemException;
264 
265     public void importLayouts(long userId, long groupId, boolean privateLayout,
266         java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
267         throws com.liferay.portal.PortalException,
268             com.liferay.portal.SystemException;
269 
270     public void importPortletInfo(long userId, long plid, long groupId,
271         java.lang.String portletId,
272         java.util.Map<String, String[]> parameterMap, java.io.File file)
273         throws com.liferay.portal.PortalException,
274             com.liferay.portal.SystemException;
275 
276     public void importPortletInfo(long userId, long plid, long groupId,
277         java.lang.String portletId,
278         java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
279         throws com.liferay.portal.PortalException,
280             com.liferay.portal.SystemException;
281 
282     public void setLayouts(long groupId, boolean privateLayout,
283         long parentLayoutId, long[] layoutIds)
284         throws com.liferay.portal.PortalException,
285             com.liferay.portal.SystemException;
286 
287     public com.liferay.portal.model.Layout updateFriendlyURL(long plid,
288         java.lang.String friendlyURL)
289         throws com.liferay.portal.PortalException,
290             com.liferay.portal.SystemException;
291 
292     public com.liferay.portal.model.Layout updateLayout(long groupId,
293         boolean privateLayout, long layoutId, long parentLayoutId,
294         java.util.Map<java.util.Locale, String> localeNamesMap,
295         java.util.Map<java.util.Locale, String> localeTitlesMap,
296         java.lang.String description, java.lang.String type, boolean hidden,
297         java.lang.String friendlyURL)
298         throws com.liferay.portal.PortalException,
299             com.liferay.portal.SystemException;
300 
301     public com.liferay.portal.model.Layout updateLayout(long groupId,
302         boolean privateLayout, long layoutId, long parentLayoutId,
303         java.util.Map<java.util.Locale, String> localeNamesMap,
304         java.util.Map<java.util.Locale, String> localeTitlesMap,
305         java.lang.String description, java.lang.String type, boolean hidden,
306         java.lang.String friendlyURL, java.lang.Boolean iconImage,
307         byte[] iconBytes)
308         throws com.liferay.portal.PortalException,
309             com.liferay.portal.SystemException;
310 
311     public com.liferay.portal.model.Layout updateLayout(long groupId,
312         boolean privateLayout, long layoutId, java.lang.String typeSettings)
313         throws com.liferay.portal.PortalException,
314             com.liferay.portal.SystemException;
315 
316     public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
317         boolean privateLayout, long layoutId, java.lang.String themeId,
318         java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
319         throws com.liferay.portal.PortalException,
320             com.liferay.portal.SystemException;
321 
322     public com.liferay.portal.model.Layout updateName(
323         com.liferay.portal.model.Layout layout, java.lang.String name,
324         java.lang.String languageId)
325         throws com.liferay.portal.PortalException,
326             com.liferay.portal.SystemException;
327 
328     public com.liferay.portal.model.Layout updateName(long groupId,
329         boolean privateLayout, long layoutId, java.lang.String name,
330         java.lang.String languageId)
331         throws com.liferay.portal.PortalException,
332             com.liferay.portal.SystemException;
333 
334     public com.liferay.portal.model.Layout updateName(long plid,
335         java.lang.String name, java.lang.String languageId)
336         throws com.liferay.portal.PortalException,
337             com.liferay.portal.SystemException;
338 
339     public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
340         boolean privateLayout, long layoutId, long parentLayoutId)
341         throws com.liferay.portal.PortalException,
342             com.liferay.portal.SystemException;
343 
344     public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
345         long parentPlid)
346         throws com.liferay.portal.PortalException,
347             com.liferay.portal.SystemException;
348 
349     public com.liferay.portal.model.Layout updatePriority(
350         com.liferay.portal.model.Layout layout, int priority)
351         throws com.liferay.portal.SystemException;
352 
353     public com.liferay.portal.model.Layout updatePriority(long groupId,
354         boolean privateLayout, long layoutId, int priority)
355         throws com.liferay.portal.PortalException,
356             com.liferay.portal.SystemException;
357 
358     public com.liferay.portal.model.Layout updatePriority(long plid,
359         int priority)
360         throws com.liferay.portal.PortalException,
361             com.liferay.portal.SystemException;
362 }