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 GroupFinderUtil {
028 public static int countByLayouts(long companyId, long parentGroupId,
029 boolean site) {
030 return getFinder().countByLayouts(companyId, parentGroupId, site);
031 }
032
033 public static int countByG_U(long groupId, long userId, boolean inherit) {
034 return getFinder().countByG_U(groupId, userId, inherit);
035 }
036
037 public static int countByC_C_PG_N_D(long companyId, long[] classNameIds,
038 long parentGroupId, java.lang.String[] names,
039 java.lang.String[] descriptions,
040 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
041 boolean andOperator) {
042 return getFinder()
043 .countByC_C_PG_N_D(companyId, classNameIds, parentGroupId,
044 names, descriptions, params, andOperator);
045 }
046
047 public static java.util.List<com.liferay.portal.model.Group> findByLayouts(
048 long companyId, long parentGroupId, boolean site, int start, int end) {
049 return getFinder()
050 .findByLayouts(companyId, parentGroupId, site, start, end);
051 }
052
053 public static java.util.List<com.liferay.portal.model.Group> findByLayouts(
054 long companyId, long parentGroupId, boolean site, int start, int end,
055 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> obc) {
056 return getFinder()
057 .findByLayouts(companyId, parentGroupId, site, start, end,
058 obc);
059 }
060
061 public static java.util.List<com.liferay.portal.model.Group> findByLiveGroups() {
062 return getFinder().findByLiveGroups();
063 }
064
065 public static java.util.List<com.liferay.portal.model.Group> findByNoLayouts(
066 long classNameId, boolean privateLayout, int start, int end) {
067 return getFinder()
068 .findByNoLayouts(classNameId, privateLayout, start, end);
069 }
070
071 public static java.util.List<com.liferay.portal.model.Group> findByNullFriendlyURL() {
072 return getFinder().findByNullFriendlyURL();
073 }
074
075 public static java.util.List<com.liferay.portal.model.Group> findBySystem(
076 long companyId) {
077 return getFinder().findBySystem(companyId);
078 }
079
080 public static java.util.List<com.liferay.portal.model.Group> findByCompanyId(
081 long companyId,
082 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
083 int start, int end,
084 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> obc) {
085 return getFinder().findByCompanyId(companyId, params, start, end, obc);
086 }
087
088 public static java.util.List<java.lang.Long> findByC_P(long companyId,
089 long parentGroupId, long previousGroupId, int size) {
090 return getFinder()
091 .findByC_P(companyId, parentGroupId, previousGroupId, size);
092 }
093
094 public static com.liferay.portal.model.Group findByC_GK(long companyId,
095 java.lang.String groupKey)
096 throws com.liferay.portal.exception.NoSuchGroupException {
097 return getFinder().findByC_GK(companyId, groupKey);
098 }
099
100 public static java.util.List<com.liferay.portal.model.Group> findByC_C_PG_N_D(
101 long companyId, long[] classNameIds, long parentGroupId,
102 java.lang.String[] names, java.lang.String[] descriptions,
103 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
104 boolean andOperator, int start, int end,
105 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> obc) {
106 return getFinder()
107 .findByC_C_PG_N_D(companyId, classNameIds, parentGroupId,
108 names, descriptions, params, andOperator, start, end, obc);
109 }
110
111 public static GroupFinder getFinder() {
112 if (_finder == null) {
113 _finder = (GroupFinder)PortalBeanLocatorUtil.locate(GroupFinder.class.getName());
114
115 ReferenceRegistry.registerReference(GroupFinderUtil.class, "_finder");
116 }
117
118 return _finder;
119 }
120
121 public void setFinder(GroupFinder finder) {
122 _finder = finder;
123
124 ReferenceRegistry.registerReference(GroupFinderUtil.class, "_finder");
125 }
126
127 private static GroupFinder _finder;
128 }