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,
60 java.util.Map<java.util.Locale, String> localeNamesMap,
61 java.util.Map<java.util.Locale, String> localeTitlesMap,
62 java.lang.String description, java.lang.String type, boolean hidden,
63 java.lang.String friendlyURL)
64 throws com.liferay.portal.PortalException,
65 com.liferay.portal.SystemException;
66
67 public com.liferay.portal.model.Layout addLayout(long groupId,
68 boolean privateLayout, long parentLayoutId, java.lang.String name,
69 java.lang.String title, java.lang.String description,
70 java.lang.String type, boolean hidden, java.lang.String friendlyURL)
71 throws com.liferay.portal.PortalException,
72 com.liferay.portal.SystemException;
73
74 public void deleteLayout(long plid)
75 throws com.liferay.portal.PortalException,
76 com.liferay.portal.SystemException;
77
78 public void deleteLayout(long groupId, boolean privateLayout, long layoutId)
79 throws com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException;
81
82 public byte[] exportLayouts(long groupId, boolean privateLayout,
83 long[] layoutIds, java.util.Map<String, String[]> parameterMap,
84 java.util.Date startDate, java.util.Date endDate)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException;
87
88 public byte[] exportLayouts(long groupId, boolean privateLayout,
89 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
90 java.util.Date endDate)
91 throws com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException;
93
94 public java.io.File exportLayoutsAsFile(long groupId,
95 boolean privateLayout, long[] layoutIds,
96 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
97 java.util.Date endDate)
98 throws com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException;
100
101 public byte[] exportPortletInfo(long plid, long groupId,
102 java.lang.String portletId,
103 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
104 java.util.Date endDate)
105 throws com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException;
107
108 public java.io.File exportPortletInfoAsFile(long plid, long groupId,
109 java.lang.String portletId,
110 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
111 java.util.Date endDate)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public java.lang.String getLayoutName(long groupId, boolean privateLayout,
117 long layoutId, java.lang.String languageId)
118 throws com.liferay.portal.PortalException,
119 com.liferay.portal.SystemException;
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public com.liferay.portal.model.LayoutReference[] getLayoutReferences(
123 long companyId, java.lang.String portletId,
124 java.lang.String preferencesKey, java.lang.String preferencesValue)
125 throws com.liferay.portal.SystemException;
126
127 public void importLayouts(long groupId, boolean privateLayout,
128 java.util.Map<String, String[]> parameterMap, byte[] bytes)
129 throws 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, java.io.File file)
134 throws 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 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 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 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 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 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 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 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 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 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 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 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 com.liferay.portal.PortalException,
219 com.liferay.portal.SystemException;
220
221 public com.liferay.portal.model.Layout updateName(long groupId,
222 boolean privateLayout, long layoutId, java.lang.String name,
223 java.lang.String languageId)
224 throws com.liferay.portal.PortalException,
225 com.liferay.portal.SystemException;
226
227 public com.liferay.portal.model.Layout updateName(long plid,
228 java.lang.String name, java.lang.String languageId)
229 throws com.liferay.portal.PortalException,
230 com.liferay.portal.SystemException;
231
232 public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
233 boolean privateLayout, long layoutId, long parentLayoutId)
234 throws com.liferay.portal.PortalException,
235 com.liferay.portal.SystemException;
236
237 public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
238 long parentPlid)
239 throws com.liferay.portal.PortalException,
240 com.liferay.portal.SystemException;
241
242 public com.liferay.portal.model.Layout updatePriority(long groupId,
243 boolean privateLayout, long layoutId, int priority)
244 throws com.liferay.portal.PortalException,
245 com.liferay.portal.SystemException;
246
247 public com.liferay.portal.model.Layout updatePriority(long plid,
248 int priority)
249 throws com.liferay.portal.PortalException,
250 com.liferay.portal.SystemException;
251 }