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