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