001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
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    /**
023     * @author Brian Wing Shun Chan
024     * @generated
025     */
026    @ProviderType
027    public class RoleFinderUtil {
028            public static int countByR_U(long roleId, long userId) {
029                    return getFinder().countByR_U(roleId, userId);
030            }
031    
032            public static int countByU_G_R(long userId, long groupId, long roleId) {
033                    return getFinder().countByU_G_R(userId, groupId, roleId);
034            }
035    
036            public static int countByC_N_D_T(long companyId, java.lang.String name,
037                    java.lang.String description, java.lang.Integer[] types,
038                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
039                    boolean andOperator) {
040                    return getFinder()
041                                       .countByC_N_D_T(companyId, name, description, types, params,
042                            andOperator);
043            }
044    
045            public static int countByC_N_D_T(long companyId, java.lang.String[] names,
046                    java.lang.String[] descriptions, java.lang.Integer[] types,
047                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
048                    boolean andOperator) {
049                    return getFinder()
050                                       .countByC_N_D_T(companyId, names, descriptions, types,
051                            params, andOperator);
052            }
053    
054            public static int countByKeywords(long companyId,
055                    java.lang.String keywords, java.lang.Integer[] types) {
056                    return getFinder().countByKeywords(companyId, keywords, types);
057            }
058    
059            public static int countByKeywords(long companyId,
060                    java.lang.String keywords, java.lang.Integer[] types,
061                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params) {
062                    return getFinder().countByKeywords(companyId, keywords, types, params);
063            }
064    
065            public static int countByUserGroupGroupRole(long userId, long groupId) {
066                    return getFinder().countByUserGroupGroupRole(userId, groupId);
067            }
068    
069            public static java.util.List<com.liferay.portal.model.Role> findBySystem(
070                    long companyId) {
071                    return getFinder().findBySystem(companyId);
072            }
073    
074            public static java.util.List<com.liferay.portal.model.Role> findByUserGroupGroupRole(
075                    long userId, long groupId) {
076                    return getFinder().findByUserGroupGroupRole(userId, groupId);
077            }
078    
079            public static java.util.List<com.liferay.portal.model.Role> findByUserGroupGroupRole(
080                    long userId, long groupId, int start, int end) {
081                    return getFinder().findByUserGroupGroupRole(userId, groupId, start, end);
082            }
083    
084            public static java.util.List<com.liferay.portal.model.Role> findByUserGroupRole(
085                    long userId, long groupId) {
086                    return getFinder().findByUserGroupRole(userId, groupId);
087            }
088    
089            public static com.liferay.portal.model.Role findByC_N(long companyId,
090                    java.lang.String name) throws com.liferay.portal.NoSuchRoleException {
091                    return getFinder().findByC_N(companyId, name);
092            }
093    
094            public static java.util.List<com.liferay.portal.model.Role> findByU_G(
095                    long userId, java.util.List<com.liferay.portal.model.Group> groups) {
096                    return getFinder().findByU_G(userId, groups);
097            }
098    
099            public static java.util.List<com.liferay.portal.model.Role> findByU_G(
100                    long userId, long groupId) {
101                    return getFinder().findByU_G(userId, groupId);
102            }
103    
104            public static java.util.List<com.liferay.portal.model.Role> findByU_G(
105                    long userId, long[] groupIds) {
106                    return getFinder().findByU_G(userId, groupIds);
107            }
108    
109            public static java.util.List<com.liferay.portal.model.Role> findByR_N_A(
110                    long resourceBlockId, java.lang.String className,
111                    java.lang.String actionId) {
112                    return getFinder().findByR_N_A(resourceBlockId, className, actionId);
113            }
114    
115            public static java.util.List<com.liferay.portal.model.Role> findByC_N_D_T(
116                    long companyId, java.lang.String name, java.lang.String description,
117                    java.lang.Integer[] types,
118                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
119                    boolean andOperator, int start, int end,
120                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Role> obc) {
121                    return getFinder()
122                                       .findByC_N_D_T(companyId, name, description, types, params,
123                            andOperator, start, end, obc);
124            }
125    
126            public static java.util.List<com.liferay.portal.model.Role> findByC_N_D_T(
127                    long companyId, java.lang.String[] names,
128                    java.lang.String[] descriptions, java.lang.Integer[] types,
129                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
130                    boolean andOperator, int start, int end,
131                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Role> obc) {
132                    return getFinder()
133                                       .findByC_N_D_T(companyId, names, descriptions, types,
134                            params, andOperator, start, end, obc);
135            }
136    
137            public static java.util.Map<java.lang.String, java.util.List<java.lang.String>> findByC_N_S_P(
138                    long companyId, java.lang.String name, int scope,
139                    java.lang.String primKey) {
140                    return getFinder().findByC_N_S_P(companyId, name, scope, primKey);
141            }
142    
143            public static java.util.List<com.liferay.portal.model.Role> findByC_N_S_P_A(
144                    long companyId, java.lang.String name, int scope,
145                    java.lang.String primKey, java.lang.String actionId) {
146                    return getFinder()
147                                       .findByC_N_S_P_A(companyId, name, scope, primKey, actionId);
148            }
149    
150            public static java.util.List<com.liferay.portal.model.Role> findByKeywords(
151                    long companyId, java.lang.String keywords, java.lang.Integer[] types,
152                    int start, int end,
153                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Role> obc) {
154                    return getFinder()
155                                       .findByKeywords(companyId, keywords, types, start, end, obc);
156            }
157    
158            public static java.util.List<com.liferay.portal.model.Role> findByKeywords(
159                    long companyId, java.lang.String keywords, java.lang.Integer[] types,
160                    java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
161                    int start, int end,
162                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Role> obc) {
163                    return getFinder()
164                                       .findByKeywords(companyId, keywords, types, params, start,
165                            end, obc);
166            }
167    
168            public static RoleFinder getFinder() {
169                    if (_finder == null) {
170                            _finder = (RoleFinder)PortalBeanLocatorUtil.locate(RoleFinder.class.getName());
171    
172                            ReferenceRegistry.registerReference(RoleFinderUtil.class, "_finder");
173                    }
174    
175                    return _finder;
176            }
177    
178            public void setFinder(RoleFinder finder) {
179                    _finder = finder;
180    
181                    ReferenceRegistry.registerReference(RoleFinderUtil.class, "_finder");
182            }
183    
184            private static RoleFinder _finder;
185    }