1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service;
24  
25  import com.liferay.portal.PortalException;
26  import com.liferay.portal.SystemException;
27  import com.liferay.portal.kernel.annotation.Isolation;
28  import com.liferay.portal.kernel.annotation.Propagation;
29  import com.liferay.portal.kernel.annotation.Transactional;
30  
31  /**
32   * <a href="LayoutLocalService.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This interface defines the service. The default implementation is
41   * {@link
42   * com.liferay.portal.service.impl.LayoutLocalServiceImpl}}.
43   * Modify methods in that class and rerun ServiceBuilder to populate this class
44   * and all other generated classes.
45   * </p>
46   *
47   * <p>
48   * 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.
49   * </p>
50   *
51   * @author    Brian Wing Shun Chan
52   * @see       LayoutLocalServiceUtil
53   * @generated
54   */
55  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
56      PortalException.class, SystemException.class})
57  public interface LayoutLocalService {
58      public com.liferay.portal.model.Layout addLayout(
59          com.liferay.portal.model.Layout layout)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portal.model.Layout createLayout(long plid);
63  
64      public void deleteLayout(long plid)
65          throws com.liferay.portal.PortalException,
66              com.liferay.portal.SystemException;
67  
68      public void deleteLayout(com.liferay.portal.model.Layout layout)
69          throws com.liferay.portal.SystemException;
70  
71      public java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73          throws com.liferay.portal.SystemException;
74  
75      public java.util.List<Object> dynamicQuery(
76          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
77          int end) throws com.liferay.portal.SystemException;
78  
79      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80      public com.liferay.portal.model.Layout getLayout(long plid)
81          throws com.liferay.portal.PortalException,
82              com.liferay.portal.SystemException;
83  
84      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85      public java.util.List<com.liferay.portal.model.Layout> getLayouts(
86          int start, int end) throws com.liferay.portal.SystemException;
87  
88      @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89      public int getLayoutsCount() throws com.liferay.portal.SystemException;
90  
91      public com.liferay.portal.model.Layout updateLayout(
92          com.liferay.portal.model.Layout layout)
93          throws com.liferay.portal.SystemException;
94  
95      public com.liferay.portal.model.Layout updateLayout(
96          com.liferay.portal.model.Layout layout, boolean merge)
97          throws com.liferay.portal.SystemException;
98  
99      public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
100         boolean privateLayout, long parentLayoutId,
101         java.util.Map<java.util.Locale, String> localeNamesMap,
102         java.util.Map<java.util.Locale, String> localeTitlesMap,
103         java.lang.String description, java.lang.String type, boolean hidden,
104         java.lang.String friendlyURL)
105         throws com.liferay.portal.PortalException,
106             com.liferay.portal.SystemException;
107 
108     public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
109         boolean privateLayout, long parentLayoutId,
110         java.util.Map<java.util.Locale, String> localeNamesMap,
111         java.util.Map<java.util.Locale, String> localeTitlesMap,
112         java.lang.String description, java.lang.String type, boolean hidden,
113         java.lang.String friendlyURL, long dlFolderId)
114         throws com.liferay.portal.PortalException,
115             com.liferay.portal.SystemException;
116 
117     public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
118         boolean privateLayout, long parentLayoutId, java.lang.String name,
119         java.lang.String title, java.lang.String description,
120         java.lang.String type, boolean hidden, java.lang.String friendlyURL)
121         throws com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException;
123 
124     public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
125         boolean privateLayout, long parentLayoutId, java.lang.String name,
126         java.lang.String title, java.lang.String description,
127         java.lang.String type, boolean hidden, java.lang.String friendlyURL,
128         long dlFolderId)
129         throws com.liferay.portal.PortalException,
130             com.liferay.portal.SystemException;
131 
132     public void deleteLayout(com.liferay.portal.model.Layout layout,
133         boolean updateLayoutSet)
134         throws com.liferay.portal.PortalException,
135             com.liferay.portal.SystemException;
136 
137     public void deleteLayout(long groupId, boolean privateLayout, long layoutId)
138         throws com.liferay.portal.PortalException,
139             com.liferay.portal.SystemException;
140 
141     public void deleteLayouts(long groupId, boolean privateLayout)
142         throws com.liferay.portal.PortalException,
143             com.liferay.portal.SystemException;
144 
145     public byte[] exportLayouts(long groupId, boolean privateLayout,
146         long[] layoutIds, java.util.Map<String, String[]> parameterMap,
147         java.util.Date startDate, java.util.Date endDate)
148         throws com.liferay.portal.PortalException,
149             com.liferay.portal.SystemException;
150 
151     public byte[] exportLayouts(long groupId, boolean privateLayout,
152         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
153         java.util.Date endDate)
154         throws com.liferay.portal.PortalException,
155             com.liferay.portal.SystemException;
156 
157     public java.io.File exportLayoutsAsFile(long groupId,
158         boolean privateLayout, long[] layoutIds,
159         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
160         java.util.Date endDate)
161         throws com.liferay.portal.PortalException,
162             com.liferay.portal.SystemException;
163 
164     public byte[] exportPortletInfo(long plid, long groupId,
165         java.lang.String portletId,
166         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
167         java.util.Date endDate)
168         throws com.liferay.portal.PortalException,
169             com.liferay.portal.SystemException;
170 
171     public java.io.File exportPortletInfoAsFile(long plid, long groupId,
172         java.lang.String portletId,
173         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
174         java.util.Date endDate)
175         throws com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException;
177 
178     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179     public long getDefaultPlid(long groupId)
180         throws com.liferay.portal.SystemException;
181 
182     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183     public long getDefaultPlid(long groupId, boolean privateLayout)
184         throws com.liferay.portal.SystemException;
185 
186     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187     public long getDefaultPlid(long groupId, boolean privateLayout,
188         java.lang.String portletId) throws com.liferay.portal.SystemException;
189 
190     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191     public com.liferay.portal.model.Layout getDLFolderLayout(long dlFolderId)
192         throws com.liferay.portal.PortalException,
193             com.liferay.portal.SystemException;
194 
195     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196     public com.liferay.portal.model.Layout getFriendlyURLLayout(long groupId,
197         boolean privateLayout, java.lang.String friendlyURL)
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 getLayout(long groupId,
203         boolean privateLayout, long layoutId)
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 getLayoutByIconImageId(
209         long iconImageId)
210         throws com.liferay.portal.PortalException,
211             com.liferay.portal.SystemException;
212 
213     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214     public java.util.List<com.liferay.portal.model.Layout> getLayouts(
215         long groupId, boolean privateLayout)
216         throws com.liferay.portal.SystemException;
217 
218     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
219     public java.util.List<com.liferay.portal.model.Layout> getLayouts(
220         long groupId, boolean privateLayout, long parentLayoutId)
221         throws com.liferay.portal.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, long parentLayoutId, int start,
226         int end) throws com.liferay.portal.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[] layoutIds)
231         throws com.liferay.portal.PortalException,
232             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, java.lang.String type)
237         throws com.liferay.portal.SystemException;
238 
239     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
240     public com.liferay.portal.model.LayoutReference[] getLayouts(
241         long companyId, java.lang.String portletId,
242         java.lang.String preferencesKey, java.lang.String preferencesValue)
243         throws com.liferay.portal.SystemException;
244 
245     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246     public long getNextLayoutId(long groupId, boolean privateLayout)
247         throws com.liferay.portal.SystemException;
248 
249     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250     public java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
251         throws com.liferay.portal.SystemException;
252 
253     public void importLayouts(long userId, long groupId, boolean privateLayout,
254         java.util.Map<String, String[]> parameterMap, byte[] bytes)
255         throws com.liferay.portal.PortalException,
256             com.liferay.portal.SystemException;
257 
258     public void importLayouts(long userId, long groupId, boolean privateLayout,
259         java.util.Map<String, String[]> parameterMap, java.io.File file)
260         throws com.liferay.portal.PortalException,
261             com.liferay.portal.SystemException;
262 
263     public void importLayouts(long userId, long groupId, boolean privateLayout,
264         java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
265         throws com.liferay.portal.PortalException,
266             com.liferay.portal.SystemException;
267 
268     public void importPortletInfo(long userId, long plid, long groupId,
269         java.lang.String portletId,
270         java.util.Map<String, String[]> parameterMap, java.io.File file)
271         throws com.liferay.portal.PortalException,
272             com.liferay.portal.SystemException;
273 
274     public void importPortletInfo(long userId, long plid, long groupId,
275         java.lang.String portletId,
276         java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
277         throws com.liferay.portal.PortalException,
278             com.liferay.portal.SystemException;
279 
280     public void setLayouts(long groupId, boolean privateLayout,
281         long parentLayoutId, long[] layoutIds)
282         throws com.liferay.portal.PortalException,
283             com.liferay.portal.SystemException;
284 
285     public com.liferay.portal.model.Layout updateFriendlyURL(long plid,
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)
296         throws com.liferay.portal.PortalException,
297             com.liferay.portal.SystemException;
298 
299     public com.liferay.portal.model.Layout updateLayout(long groupId,
300         boolean privateLayout, long layoutId, long parentLayoutId,
301         java.util.Map<java.util.Locale, String> localeNamesMap,
302         java.util.Map<java.util.Locale, String> localeTitlesMap,
303         java.lang.String description, java.lang.String type, boolean hidden,
304         java.lang.String friendlyURL, java.lang.Boolean iconImage,
305         byte[] iconBytes)
306         throws com.liferay.portal.PortalException,
307             com.liferay.portal.SystemException;
308 
309     public com.liferay.portal.model.Layout updateLayout(long groupId,
310         boolean privateLayout, long layoutId, java.lang.String typeSettings)
311         throws com.liferay.portal.PortalException,
312             com.liferay.portal.SystemException;
313 
314     public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
315         boolean privateLayout, long layoutId, java.lang.String themeId,
316         java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
317         throws com.liferay.portal.PortalException,
318             com.liferay.portal.SystemException;
319 
320     public com.liferay.portal.model.Layout updateName(
321         com.liferay.portal.model.Layout layout, java.lang.String name,
322         java.lang.String languageId)
323         throws com.liferay.portal.PortalException,
324             com.liferay.portal.SystemException;
325 
326     public com.liferay.portal.model.Layout updateName(long groupId,
327         boolean privateLayout, long layoutId, java.lang.String name,
328         java.lang.String languageId)
329         throws com.liferay.portal.PortalException,
330             com.liferay.portal.SystemException;
331 
332     public com.liferay.portal.model.Layout updateName(long plid,
333         java.lang.String name, java.lang.String languageId)
334         throws com.liferay.portal.PortalException,
335             com.liferay.portal.SystemException;
336 
337     public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
338         boolean privateLayout, long layoutId, long parentLayoutId)
339         throws com.liferay.portal.PortalException,
340             com.liferay.portal.SystemException;
341 
342     public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
343         long parentPlid)
344         throws com.liferay.portal.PortalException,
345             com.liferay.portal.SystemException;
346 
347     public com.liferay.portal.model.Layout updatePriority(
348         com.liferay.portal.model.Layout layout, int priority)
349         throws com.liferay.portal.SystemException;
350 
351     public com.liferay.portal.model.Layout updatePriority(long groupId,
352         boolean privateLayout, long layoutId, int priority)
353         throws com.liferay.portal.PortalException,
354             com.liferay.portal.SystemException;
355 
356     public com.liferay.portal.model.Layout updatePriority(long plid,
357         int priority)
358         throws com.liferay.portal.PortalException,
359             com.liferay.portal.SystemException;
360 }