1
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
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 }