001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025
026
038 @ProviderType
039 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
040 PortalException.class, SystemException.class})
041 public interface PortletPreferencesLocalService extends BaseLocalService,
042 PersistedModelLocalService {
043
048 public com.liferay.portal.model.PortletPreferences addPortletPreferences(
049 long companyId, long ownerId, int ownerType, long plid,
050 java.lang.String portletId, com.liferay.portal.model.Portlet portlet,
051 java.lang.String defaultPreferences);
052
053
059 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
060 public com.liferay.portal.model.PortletPreferences addPortletPreferences(
061 com.liferay.portal.model.PortletPreferences portletPreferences);
062
063
069 public com.liferay.portal.model.PortletPreferences createPortletPreferences(
070 long portletPreferencesId);
071
072
075 @Override
076 public com.liferay.portal.model.PersistedModel deletePersistedModel(
077 com.liferay.portal.model.PersistedModel persistedModel)
078 throws PortalException;
079
080 public void deletePortletPreferences(long ownerId, int ownerType, long plid);
081
082 public void deletePortletPreferences(long ownerId, int ownerType,
083 long plid, java.lang.String portletId) throws PortalException;
084
085
091 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
092 public com.liferay.portal.model.PortletPreferences deletePortletPreferences(
093 com.liferay.portal.model.PortletPreferences portletPreferences);
094
095
102 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
103 public com.liferay.portal.model.PortletPreferences deletePortletPreferences(
104 long portletPreferencesId) throws PortalException;
105
106 public void deletePortletPreferencesByPlid(long plid);
107
108 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
109
110
116 public <T> java.util.List<T> dynamicQuery(
117 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
118
119
131 public <T> java.util.List<T> dynamicQuery(
132 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
133 int end);
134
135
148 public <T> java.util.List<T> dynamicQuery(
149 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
150 int end,
151 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
152
153
159 public long dynamicQueryCount(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
161
162
169 public long dynamicQueryCount(
170 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
171 com.liferay.portal.kernel.dao.orm.Projection projection);
172
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public com.liferay.portal.model.PortletPreferences fetchPortletPreferences(
175 long portletPreferencesId);
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public javax.portlet.PortletPreferences fetchPreferences(long companyId,
179 long ownerId, int ownerType, long plid, java.lang.String portletId);
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public javax.portlet.PortletPreferences fetchPreferences(
183 com.liferay.portal.model.PortletPreferencesIds portletPreferencesIds);
184
185 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
186 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
187
188 @com.liferay.portal.kernel.spring.aop.Skip
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public javax.portlet.PortletPreferences getDefaultPreferences(
191 long companyId, java.lang.String portletId);
192
193
198 public java.lang.String getOSGiServiceIdentifier();
199
200 @Override
201 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
202 public com.liferay.portal.model.PersistedModel getPersistedModel(
203 java.io.Serializable primaryKeyObj) throws PortalException;
204
205 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
206 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences();
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
210 long companyId, long groupId, long ownerId, int ownerType,
211 java.lang.String portletId, boolean privateLayout);
212
213 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
214 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
215 long ownerId, int ownerType, long plid);
216
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public com.liferay.portal.model.PortletPreferences getPortletPreferences(
219 long ownerId, int ownerType, long plid, java.lang.String portletId)
220 throws PortalException;
221
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
224 int ownerType, long plid, java.lang.String portletId);
225
226 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
227 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferences(
228 long plid, java.lang.String portletId);
229
230
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public com.liferay.portal.model.PortletPreferences getPortletPreferences(
239 long portletPreferencesId) throws PortalException;
240
241 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
242 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferencesByPlid(
243 long plid);
244
245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246 public long getPortletPreferencesCount(long ownerId, int ownerType,
247 long plid, com.liferay.portal.model.Portlet portlet,
248 boolean excludeDefaultPreferences);
249
250 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
251 public long getPortletPreferencesCount(long ownerId, int ownerType,
252 java.lang.String portletId, boolean excludeDefaultPreferences);
253
254 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255 public long getPortletPreferencesCount(int ownerType, long plid,
256 java.lang.String portletId);
257
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public long getPortletPreferencesCount(int ownerType,
260 java.lang.String portletId);
261
262
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public java.util.List<com.liferay.portal.model.PortletPreferences> getPortletPreferenceses(
275 int start, int end);
276
277
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public int getPortletPreferencesesCount();
284
285 @com.liferay.portal.kernel.spring.aop.Retry(acceptor = com.liferay.portal.service.ExceptionRetryAcceptor.class, properties = {
286 @com.liferay.portal.kernel.spring.aop.Property(name = ExceptionRetryAcceptor.EXCEPTION_NAME, value = "org.springframework.dao.DataIntegrityViolationException")
287 }
288 )
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public javax.portlet.PortletPreferences getPreferences(long companyId,
291 long ownerId, int ownerType, long plid, java.lang.String portletId);
292
293 @com.liferay.portal.kernel.spring.aop.Retry(acceptor = com.liferay.portal.service.ExceptionRetryAcceptor.class, properties = {
294 @com.liferay.portal.kernel.spring.aop.Property(name = ExceptionRetryAcceptor.EXCEPTION_NAME, value = "org.springframework.dao.DataIntegrityViolationException")
295 }
296 )
297 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
298 public javax.portlet.PortletPreferences getPreferences(long companyId,
299 long ownerId, int ownerType, long plid, java.lang.String portletId,
300 java.lang.String defaultPreferences);
301
302 @com.liferay.portal.kernel.spring.aop.Retry(acceptor = com.liferay.portal.service.ExceptionRetryAcceptor.class, properties = {
303 @com.liferay.portal.kernel.spring.aop.Property(name = ExceptionRetryAcceptor.EXCEPTION_NAME, value = "org.springframework.dao.DataIntegrityViolationException")
304 }
305 )
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public javax.portlet.PortletPreferences getPreferences(
308 com.liferay.portal.model.PortletPreferencesIds portletPreferencesIds);
309
310 @com.liferay.portal.kernel.spring.aop.Retry(acceptor = com.liferay.portal.service.ExceptionRetryAcceptor.class, properties = {
311 @com.liferay.portal.kernel.spring.aop.Property(name = ExceptionRetryAcceptor.EXCEPTION_NAME, value = "org.springframework.dao.DataIntegrityViolationException")
312 }
313 )
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public javax.portlet.PortletPreferences getStrictPreferences(
316 long companyId, long ownerId, int ownerType, long plid,
317 java.lang.String portletId);
318
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public javax.portlet.PortletPreferences getStrictPreferences(
321 com.liferay.portal.model.PortletPreferencesIds portletPreferencesIds);
322
323
329 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
330 public com.liferay.portal.model.PortletPreferences updatePortletPreferences(
331 com.liferay.portal.model.PortletPreferences portletPreferences);
332
333 public com.liferay.portal.model.PortletPreferences updatePreferences(
334 long ownerId, int ownerType, long plid, java.lang.String portletId,
335 javax.portlet.PortletPreferences portletPreferences);
336
337 public com.liferay.portal.model.PortletPreferences updatePreferences(
338 long ownerId, int ownerType, long plid, java.lang.String portletId,
339 java.lang.String xml);
340 }