001
014
015 package com.liferay.portal.service.persistence;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
026 @ProviderType
027 public class PortletPreferencesFinderUtil {
028 public static long countByO_O_P(long ownerId, int ownerType,
029 java.lang.String portletId, boolean excludeDefaultPreferences) {
030 return getFinder()
031 .countByO_O_P(ownerId, ownerType, portletId,
032 excludeDefaultPreferences);
033 }
034
035 public static long countByO_O_P_P_P(long ownerId, int ownerType, long plid,
036 java.lang.String portletId, boolean excludeDefaultPreferences) {
037 return getFinder()
038 .countByO_O_P_P_P(ownerId, ownerType, plid, portletId,
039 excludeDefaultPreferences);
040 }
041
042 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByPortletId(
043 java.lang.String portletId) {
044 return getFinder().findByPortletId(portletId);
045 }
046
047 public static java.util.Map<java.io.Serializable, com.liferay.portal.model.PortletPreferences> fetchByPrimaryKeys(
048 java.util.Set<java.io.Serializable> primaryKeys) {
049 return getFinder().fetchByPrimaryKeys(primaryKeys);
050 }
051
052 public static java.util.List<com.liferay.portal.model.PortletPreferences> findByC_G_O_O_P_P(
053 long companyId, long groupId, long ownerId, int ownerType,
054 java.lang.String portletId, boolean privateLayout) {
055 return getFinder()
056 .findByC_G_O_O_P_P(companyId, groupId, ownerId, ownerType,
057 portletId, privateLayout);
058 }
059
060 public static PortletPreferencesFinder getFinder() {
061 if (_finder == null) {
062 _finder = (PortletPreferencesFinder)PortalBeanLocatorUtil.locate(PortletPreferencesFinder.class.getName());
063
064 ReferenceRegistry.registerReference(PortletPreferencesFinderUtil.class,
065 "_finder");
066 }
067
068 return _finder;
069 }
070
071 public void setFinder(PortletPreferencesFinder finder) {
072 _finder = finder;
073
074 ReferenceRegistry.registerReference(PortletPreferencesFinderUtil.class,
075 "_finder");
076 }
077
078 private static PortletPreferencesFinder _finder;
079 }