001
014
015 package com.liferay.portal.kernel.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.kernel.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.kernel.model.Group> findByLayouts(
054 long companyId, long parentGroupId, boolean site, int start, int end,
055 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.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.kernel.model.Group> findByLiveGroups() {
062 return getFinder().findByLiveGroups();
063 }
064
065 public static java.util.List<com.liferay.portal.kernel.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.kernel.model.Group> findByNullFriendlyURL() {
072 return getFinder().findByNullFriendlyURL();
073 }
074
075 public static java.util.List<com.liferay.portal.kernel.model.Group> findBySystem(
076 long companyId) {
077 return getFinder().findBySystem(companyId);
078 }
079
080 public static java.util.List<com.liferay.portal.kernel.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.kernel.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.kernel.model.Group findByC_GK(
095 long companyId, java.lang.String groupKey)
096 throws com.liferay.portal.kernel.exception.NoSuchGroupException {
097 return getFinder().findByC_GK(companyId, groupKey);
098 }
099
100 public static java.util.List<com.liferay.portal.kernel.model.Group> findByL_TS_S_RSGC(
101 long liveGroupId, java.lang.String typeSettings, boolean site,
102 int remoteStagingGroupCount) {
103 return getFinder()
104 .findByL_TS_S_RSGC(liveGroupId, typeSettings, site,
105 remoteStagingGroupCount);
106 }
107
108 public static java.util.List<com.liferay.portal.kernel.model.Group> findByC_C_PG_N_D(
109 long companyId, long[] classNameIds, long parentGroupId,
110 java.lang.String[] names, java.lang.String[] descriptions,
111 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
112 boolean andOperator, int start, int end,
113 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> obc) {
114 return getFinder()
115 .findByC_C_PG_N_D(companyId, classNameIds, parentGroupId,
116 names, descriptions, params, andOperator, start, end, obc);
117 }
118
119 public static GroupFinder getFinder() {
120 if (_finder == null) {
121 _finder = (GroupFinder)PortalBeanLocatorUtil.locate(GroupFinder.class.getName());
122
123 ReferenceRegistry.registerReference(GroupFinderUtil.class, "_finder");
124 }
125
126 return _finder;
127 }
128
129 public void setFinder(GroupFinder finder) {
130 _finder = finder;
131
132 ReferenceRegistry.registerReference(GroupFinderUtil.class, "_finder");
133 }
134
135 private static GroupFinder _finder;
136 }