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="LayoutService.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.LayoutServiceImpl}}.
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 remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       LayoutServiceUtil
45   * @generated
46   */
47  @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
48      PortalException.class, SystemException.class})
49  public interface LayoutService {
50      public com.liferay.portal.model.Layout addLayout(long groupId,
51          boolean privateLayout, long parentLayoutId,
52          java.util.Map<java.util.Locale, String> localeNamesMap,
53          java.util.Map<java.util.Locale, String> localeTitlesMap,
54          java.lang.String description, java.lang.String type, boolean hidden,
55          java.lang.String friendlyURL)
56          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
57              com.liferay.portal.SystemException;
58  
59      public com.liferay.portal.model.Layout addLayout(long groupId,
60          boolean privateLayout, long parentLayoutId, java.lang.String name,
61          java.lang.String title, java.lang.String description,
62          java.lang.String type, boolean hidden, java.lang.String friendlyURL)
63          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
64              com.liferay.portal.SystemException;
65  
66      public void deleteLayout(long plid)
67          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
68              com.liferay.portal.SystemException;
69  
70      public void deleteLayout(long groupId, boolean privateLayout, long layoutId)
71          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
72              com.liferay.portal.SystemException;
73  
74      public byte[] exportLayouts(long groupId, boolean privateLayout,
75          long[] layoutIds, java.util.Map<String, String[]> parameterMap,
76          java.util.Date startDate, java.util.Date endDate)
77          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException;
79  
80      public byte[] exportLayouts(long groupId, boolean privateLayout,
81          java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
82          java.util.Date endDate)
83          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
84              com.liferay.portal.SystemException;
85  
86      public java.io.File exportLayoutsAsFile(long groupId,
87          boolean privateLayout, long[] layoutIds,
88          java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
89          java.util.Date endDate)
90          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
91              com.liferay.portal.SystemException;
92  
93      public byte[] exportPortletInfo(long plid, long groupId,
94          java.lang.String portletId,
95          java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
96          java.util.Date endDate)
97          throws java.rmi.RemoteException, com.liferay.portal.PortalException,
98              com.liferay.portal.SystemException;
99  
100     public java.io.File exportPortletInfoAsFile(long plid, long groupId,
101         java.lang.String portletId,
102         java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
103         java.util.Date endDate)
104         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
105             com.liferay.portal.SystemException;
106 
107     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108     public java.lang.String getLayoutName(long groupId, boolean privateLayout,
109         long layoutId, java.lang.String languageId)
110         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
111             com.liferay.portal.SystemException;
112 
113     @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114     public com.liferay.portal.model.LayoutReference[] getLayoutReferences(
115         long companyId, java.lang.String portletId, java.lang.String prefsKey,
116         java.lang.String prefsValue)
117         throws java.rmi.RemoteException, com.liferay.portal.SystemException;
118 
119     public void importLayouts(long groupId, boolean privateLayout,
120         java.util.Map<String, String[]> parameterMap, byte[] bytes)
121         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
122             com.liferay.portal.SystemException;
123 
124     public void importLayouts(long groupId, boolean privateLayout,
125         java.util.Map<String, String[]> parameterMap, java.io.File file)
126         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
127             com.liferay.portal.SystemException;
128 
129     public void importLayouts(long groupId, boolean privateLayout,
130         java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
131         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
132             com.liferay.portal.SystemException;
133 
134     public void importPortletInfo(long plid, long groupId,
135         java.lang.String portletId,
136         java.util.Map<String, String[]> parameterMap, java.io.File file)
137         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
138             com.liferay.portal.SystemException;
139 
140     public void importPortletInfo(long plid, long groupId,
141         java.lang.String portletId,
142         java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
143         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
144             com.liferay.portal.SystemException;
145 
146     public void schedulePublishToLive(long sourceGroupId, long targetGroupId,
147         boolean privateLayout, java.util.Map<Long, Boolean> layoutIdMap,
148         java.util.Map<String, String[]> parameterMap, java.lang.String scope,
149         java.util.Date startDate, java.util.Date endDate,
150         java.lang.String groupName, java.lang.String cronText,
151         java.util.Date schedulerStartDate, java.util.Date schedulerEndDate,
152         java.lang.String description)
153         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
154             com.liferay.portal.SystemException;
155 
156     public void schedulePublishToRemote(long sourceGroupId,
157         boolean privateLayout, java.util.Map<Long, Boolean> layoutIdMap,
158         java.util.Map<String, String[]> parameterMap,
159         java.lang.String remoteAddress, int remotePort,
160         boolean secureConnection, long remoteGroupId,
161         boolean remotePrivateLayout, java.util.Date startDate,
162         java.util.Date endDate, java.lang.String groupName,
163         java.lang.String cronText, java.util.Date schedulerStartDate,
164         java.util.Date schedulerEndDate, java.lang.String description)
165         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
166             com.liferay.portal.SystemException;
167 
168     public void setLayouts(long groupId, boolean privateLayout,
169         long parentLayoutId, long[] layoutIds)
170         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
171             com.liferay.portal.SystemException;
172 
173     public void unschedulePublishToLive(long groupId, java.lang.String jobName,
174         java.lang.String groupName)
175         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
176             com.liferay.portal.SystemException;
177 
178     public void unschedulePublishToRemote(long groupId,
179         java.lang.String jobName, java.lang.String groupName)
180         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
181             com.liferay.portal.SystemException;
182 
183     public com.liferay.portal.model.Layout updateLayout(long groupId,
184         boolean privateLayout, long layoutId, long parentLayoutId,
185         java.util.Map<java.util.Locale, String> localeNamesMap,
186         java.util.Map<java.util.Locale, String> localeTitlesMap,
187         java.lang.String description, java.lang.String type, boolean hidden,
188         java.lang.String friendlyURL)
189         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException;
191 
192     public com.liferay.portal.model.Layout updateLayout(long groupId,
193         boolean privateLayout, long layoutId, long parentLayoutId,
194         java.util.Map<java.util.Locale, String> localeNamesMap,
195         java.util.Map<java.util.Locale, String> localeTitlesMap,
196         java.lang.String description, java.lang.String type, boolean hidden,
197         java.lang.String friendlyURL, java.lang.Boolean iconImage,
198         byte[] iconBytes)
199         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException;
201 
202     public com.liferay.portal.model.Layout updateLayout(long groupId,
203         boolean privateLayout, long layoutId, java.lang.String typeSettings)
204         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
205             com.liferay.portal.SystemException;
206 
207     public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
208         boolean privateLayout, long layoutId, java.lang.String themeId,
209         java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
210         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
211             com.liferay.portal.SystemException;
212 
213     public com.liferay.portal.model.Layout updateName(long groupId,
214         boolean privateLayout, long layoutId, java.lang.String name,
215         java.lang.String languageId)
216         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
217             com.liferay.portal.SystemException;
218 
219     public com.liferay.portal.model.Layout updateName(long plid,
220         java.lang.String name, java.lang.String languageId)
221         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
222             com.liferay.portal.SystemException;
223 
224     public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
225         boolean privateLayout, long layoutId, long parentLayoutId)
226         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
227             com.liferay.portal.SystemException;
228 
229     public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
230         long parentPlid)
231         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
232             com.liferay.portal.SystemException;
233 
234     public com.liferay.portal.model.Layout updatePriority(long groupId,
235         boolean privateLayout, long layoutId, int priority)
236         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
237             com.liferay.portal.SystemException;
238 
239     public com.liferay.portal.model.Layout updatePriority(long plid,
240         int priority)
241         throws java.rmi.RemoteException, com.liferay.portal.PortalException,
242             com.liferay.portal.SystemException;
243 }