001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
022 public class RoleFinderUtil {
023 public static int countByR_U(long roleId, long userId)
024 throws com.liferay.portal.kernel.exception.SystemException {
025 return getFinder().countByR_U(roleId, userId);
026 }
027
028 public static int countByU_G_R(long userId, long groupId, long roleId)
029 throws com.liferay.portal.kernel.exception.SystemException {
030 return getFinder().countByU_G_R(userId, groupId, roleId);
031 }
032
033 public static int countByC_N_D_T(long companyId, java.lang.String name,
034 java.lang.String description, java.lang.Integer[] types,
035 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params)
036 throws com.liferay.portal.kernel.exception.SystemException {
037 return getFinder()
038 .countByC_N_D_T(companyId, name, description, types, params);
039 }
040
041 public static java.util.List<com.liferay.portal.model.Role> findBySystem(
042 long companyId)
043 throws com.liferay.portal.kernel.exception.SystemException {
044 return getFinder().findBySystem(companyId);
045 }
046
047 public static java.util.List<com.liferay.portal.model.Role> findByUserGroupGroupRole(
048 long userId, long groupId)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getFinder().findByUserGroupGroupRole(userId, groupId);
051 }
052
053 public static java.util.List<com.liferay.portal.model.Role> findByUserGroupRole(
054 long userId, long groupId)
055 throws com.liferay.portal.kernel.exception.SystemException {
056 return getFinder().findByUserGroupRole(userId, groupId);
057 }
058
059 public static com.liferay.portal.model.Role findByC_N(long companyId,
060 java.lang.String name)
061 throws com.liferay.portal.NoSuchRoleException,
062 com.liferay.portal.kernel.exception.SystemException {
063 return getFinder().findByC_N(companyId, name);
064 }
065
066 public static java.util.List<com.liferay.portal.model.Role> findByU_G(
067 long userId, long groupId)
068 throws com.liferay.portal.kernel.exception.SystemException {
069 return getFinder().findByU_G(userId, groupId);
070 }
071
072 public static java.util.List<com.liferay.portal.model.Role> findByU_G(
073 long userId, long[] groupIds)
074 throws com.liferay.portal.kernel.exception.SystemException {
075 return getFinder().findByU_G(userId, groupIds);
076 }
077
078 public static java.util.List<com.liferay.portal.model.Role> findByU_G(
079 long userId, java.util.List<com.liferay.portal.model.Group> groups)
080 throws com.liferay.portal.kernel.exception.SystemException {
081 return getFinder().findByU_G(userId, groups);
082 }
083
084 public static java.util.List<com.liferay.portal.model.Role> findByC_N_D_T(
085 long companyId, java.lang.String name, java.lang.String description,
086 java.lang.Integer[] types,
087 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
088 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getFinder()
091 .findByC_N_D_T(companyId, name, description, types, params,
092 start, end, obc);
093 }
094
095 public static java.util.Map<java.lang.String, java.util.List<java.lang.String>> findByC_N_S_P(
096 long companyId, java.lang.String name, int scope,
097 java.lang.String primKey)
098 throws com.liferay.portal.kernel.exception.SystemException {
099 return getFinder().findByC_N_S_P(companyId, name, scope, primKey);
100 }
101
102 public static RoleFinder getFinder() {
103 if (_finder == null) {
104 _finder = (RoleFinder)PortalBeanLocatorUtil.locate(RoleFinder.class.getName());
105 }
106
107 return _finder;
108 }
109
110 public void setFinder(RoleFinder finder) {
111 _finder = finder;
112 }
113
114 private static RoleFinder _finder;
115 }