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