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