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