001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022
023
036 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
037 PortalException.class, SystemException.class})
038 public interface PortletPreferencesLocalService
039 extends PersistedModelLocalService {
040
045
046
053 public com.liferay.portal.model.PortletPreferences addPortletPreferences(
054 com.liferay.portal.model.PortletPreferences portletPreferences)
055 throws com.liferay.portal.kernel.exception.SystemException;
056
057
063 public com.liferay.portal.model.PortletPreferences createPortletPreferences(
064 long portletPreferencesId);
065
066
073 public void deletePortletPreferences(long portletPreferencesId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException;
076
077
083 public void deletePortletPreferences(
084 com.liferay.portal.model.PortletPreferences portletPreferences)
085 throws com.liferay.portal.kernel.exception.SystemException;
086
087
094 @SuppressWarnings("rawtypes")
095 public java.util.List dynamicQuery(
096 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099
112 @SuppressWarnings("rawtypes")
113 public java.util.List dynamicQuery(
114 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
115 int end) throws com.liferay.portal.kernel.exception.SystemException;
116
117
131 @SuppressWarnings("rawtypes")
132 public java.util.List dynamicQuery(
133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
134 int end,
135 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136 throws com.liferay.portal.kernel.exception.SystemException;
137
138
145 public long dynamicQueryCount(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
147 throws com.liferay.portal.kernel.exception.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public com.liferay.portal.model.PortletPreferences fetchPortletPreferences(
151 long portletPreferencesId)
152 throws com.liferay.portal.kernel.exception.SystemException;
153
154
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public com.liferay.portal.model.PortletPreferences getPortletPreferences(
164 long portletPreferencesId)
165 throws com.liferay.portal.kernel.exception.PortalException,
166 com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portal.model.PersistedModel getPersistedModel(
170 java.io.Serializable primaryKeyObj)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException;
173
174
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferenceses(
188 int start, int end)
189 throws com.liferay.portal.kernel.exception.SystemException;
190
191
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public int getPortletPreferencesesCount()
199 throws com.liferay.portal.kernel.exception.SystemException;
200
201
208 public com.liferay.portal.model.PortletPreferences updatePortletPreferences(
209 com.liferay.portal.model.PortletPreferences portletPreferences)
210 throws com.liferay.portal.kernel.exception.SystemException;
211
212
220 public com.liferay.portal.model.PortletPreferences updatePortletPreferences(
221 com.liferay.portal.model.PortletPreferences portletPreferences,
222 boolean merge)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225
230 public java.lang.String getBeanIdentifier();
231
232
237 public void setBeanIdentifier(java.lang.String beanIdentifier);
238
239 public com.liferay.portal.model.PortletPreferences addPortletPreferences(
240 long companyId, long ownerId, int ownerType, long plid,
241 java.lang.String portletId, com.liferay.portal.model.Portlet portlet,
242 java.lang.String defaultPreferences)
243 throws com.liferay.portal.kernel.exception.SystemException;
244
245 public void deletePortletPreferences(long ownerId, int ownerType, long plid)
246 throws com.liferay.portal.kernel.exception.SystemException;
247
248 public void deletePortletPreferences(long ownerId, int ownerType,
249 long plid, java.lang.String portletId)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException;
252
253 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254 public javax.portlet.PortletPreferences getDefaultPreferences(
255 long companyId, java.lang.String portletId)
256 throws com.liferay.portal.kernel.exception.SystemException;
257
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences()
260 throws com.liferay.portal.kernel.exception.SystemException;
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
264 int ownerType, long plid, java.lang.String portletId)
265 throws com.liferay.portal.kernel.exception.SystemException;
266
267 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
268 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
269 long ownerId, int ownerType, long plid)
270 throws com.liferay.portal.kernel.exception.SystemException;
271
272 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
273 public com.liferay.portal.model.PortletPreferences getPortletPreferences(
274 long ownerId, int ownerType, long plid, java.lang.String portletId)
275 throws com.liferay.portal.kernel.exception.PortalException,
276 com.liferay.portal.kernel.exception.SystemException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
280 long companyId, long groupId, long ownerId, int ownerType,
281 java.lang.String portletId, boolean privateLayout)
282 throws com.liferay.portal.kernel.exception.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
286 long plid, java.lang.String portletId)
287 throws com.liferay.portal.kernel.exception.SystemException;
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferencesByPlid(
291 long plid) throws com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public javax.portlet.PortletPreferences getPreferences(long companyId,
295 long ownerId, int ownerType, long plid, java.lang.String portletId)
296 throws com.liferay.portal.kernel.exception.SystemException;
297
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public javax.portlet.PortletPreferences getPreferences(long companyId,
300 long ownerId, int ownerType, long plid, java.lang.String portletId,
301 java.lang.String defaultPreferences)
302 throws com.liferay.portal.kernel.exception.SystemException;
303
304 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
305 public javax.portlet.PortletPreferences getPreferences(
306 com.liferay.portal.model.PortletPreferencesIds portletPreferencesIds)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public javax.portlet.PortletPreferences getStrictPreferences(
311 long companyId, long ownerId, int ownerType, long plid,
312 java.lang.String portletId)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public javax.portlet.PortletPreferences getStrictPreferences(
317 com.liferay.portal.model.PortletPreferencesIds portletPreferencesIds)
318 throws com.liferay.portal.kernel.exception.SystemException;
319
320 public com.liferay.portal.model.PortletPreferences updatePreferences(
321 long ownerId, int ownerType, long plid, java.lang.String portletId,
322 javax.portlet.PortletPreferences portletPreferences)
323 throws com.liferay.portal.kernel.exception.SystemException;
324
325 public com.liferay.portal.model.PortletPreferences updatePreferences(
326 long ownerId, int ownerType, long plid, java.lang.String portletId,
327 java.lang.String xml)
328 throws com.liferay.portal.kernel.exception.SystemException;
329 }