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
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public com.liferay.portal.model.PortletPreferences getPortletPreferences(
159 long portletPreferencesId)
160 throws com.liferay.portal.kernel.exception.PortalException,
161 com.liferay.portal.kernel.exception.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public com.liferay.portal.model.PersistedModel getPersistedModel(
165 java.io.Serializable primaryKeyObj)
166 throws com.liferay.portal.kernel.exception.PortalException,
167 com.liferay.portal.kernel.exception.SystemException;
168
169
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferenceses(
183 int start, int end)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186
192 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
193 public int getPortletPreferencesesCount()
194 throws com.liferay.portal.kernel.exception.SystemException;
195
196
203 public com.liferay.portal.model.PortletPreferences updatePortletPreferences(
204 com.liferay.portal.model.PortletPreferences portletPreferences)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207
215 public com.liferay.portal.model.PortletPreferences updatePortletPreferences(
216 com.liferay.portal.model.PortletPreferences portletPreferences,
217 boolean merge)
218 throws com.liferay.portal.kernel.exception.SystemException;
219
220
225 public java.lang.String getBeanIdentifier();
226
227
232 public void setBeanIdentifier(java.lang.String beanIdentifier);
233
234 public com.liferay.portal.model.PortletPreferences addPortletPreferences(
235 long companyId, long ownerId, int ownerType, long plid,
236 java.lang.String portletId, com.liferay.portal.model.Portlet portlet,
237 java.lang.String defaultPreferences)
238 throws com.liferay.portal.kernel.exception.SystemException;
239
240 public void deletePortletPreferences(long ownerId, int ownerType, long plid)
241 throws com.liferay.portal.kernel.exception.SystemException;
242
243 public void deletePortletPreferences(long ownerId, int ownerType,
244 long plid, java.lang.String portletId)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException;
247
248 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
249 public javax.portlet.PortletPreferences getDefaultPreferences(
250 long companyId, java.lang.String portletId)
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
254 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences()
255 throws com.liferay.portal.kernel.exception.SystemException;
256
257 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
258 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
259 long ownerId, int ownerType, long plid)
260 throws com.liferay.portal.kernel.exception.SystemException;
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public com.liferay.portal.model.PortletPreferences getPortletPreferences(
264 long ownerId, int ownerType, long plid, java.lang.String portletId)
265 throws com.liferay.portal.kernel.exception.PortalException,
266 com.liferay.portal.kernel.exception.SystemException;
267
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
270 long plid, java.lang.String portletId)
271 throws com.liferay.portal.kernel.exception.SystemException;
272
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferencesByPlid(
275 long plid) throws com.liferay.portal.kernel.exception.SystemException;
276
277 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
278 public javax.portlet.PortletPreferences getPreferences(long companyId,
279 long ownerId, int ownerType, long plid, java.lang.String portletId)
280 throws com.liferay.portal.kernel.exception.SystemException;
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public javax.portlet.PortletPreferences getPreferences(long companyId,
284 long ownerId, int ownerType, long plid, java.lang.String portletId,
285 java.lang.String defaultPreferences)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
289 public javax.portlet.PortletPreferences getPreferences(
290 com.liferay.portal.model.PortletPreferencesIds portletPreferencesIds)
291 throws com.liferay.portal.kernel.exception.SystemException;
292
293 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
294 public javax.portlet.PortletPreferences getStrictPreferences(
295 long companyId, long ownerId, int ownerType, long plid,
296 java.lang.String portletId)
297 throws com.liferay.portal.kernel.exception.SystemException;
298
299 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
300 public javax.portlet.PortletPreferences getStrictPreferences(
301 com.liferay.portal.model.PortletPreferencesIds portletPreferencesIds)
302 throws com.liferay.portal.kernel.exception.SystemException;
303
304 public com.liferay.portal.model.PortletPreferences updatePreferences(
305 long ownerId, int ownerType, long plid, java.lang.String portletId,
306 javax.portlet.PortletPreferences portletPreferences)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309 public com.liferay.portal.model.PortletPreferences updatePreferences(
310 long ownerId, int ownerType, long plid, java.lang.String portletId,
311 java.lang.String xml)
312 throws com.liferay.portal.kernel.exception.SystemException;
313 }