com.liferay.portal.service.persistence.impl
Class RoleFinderImpl
java.lang.Object
com.liferay.portal.service.persistence.impl.BasePersistenceImpl<Role>
com.liferay.portal.service.persistence.impl.RoleFinderBaseImpl
com.liferay.portal.service.persistence.impl.RoleFinderImpl
- All Implemented Interfaces:
- SessionFactory, BasePersistence<Role>, RoleFinder
public class RoleFinderImpl
- extends RoleFinderBaseImpl
- implements RoleFinder
| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR |
|
Method Summary |
int |
countByC_N_D_T(long companyId,
String[] names,
String[] descriptions,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator)
|
int |
countByC_N_D_T(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator)
|
int |
countByKeywords(long companyId,
String keywords,
Integer[] types)
|
int |
countByKeywords(long companyId,
String keywords,
Integer[] types,
LinkedHashMap<String,Object> params)
|
int |
countByR_U(long roleId,
long userId)
|
int |
countByU_G_R(long userId,
long groupId,
long roleId)
|
int |
countByUserGroupGroupRole(long userId,
long groupId)
|
protected int |
doCountByC_N_D_T(long companyId,
String[] names,
String[] descriptions,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator,
boolean inlineSQLHelper)
|
protected List<Role> |
doFindByC_N_D_T(long companyId,
String[] names,
String[] descriptions,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
OrderByComparator<Role> obc,
boolean inlineSQLHelper)
|
int |
filterCountByC_N_D_T(long companyId,
String[] names,
String[] descriptions,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator)
|
int |
filterCountByC_N_D_T(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator)
|
int |
filterCountByKeywords(long companyId,
String keywords,
Integer[] types,
LinkedHashMap<String,Object> params)
|
List<Role> |
filterFindByC_N_D_T(long companyId,
String[] names,
String[] descriptions,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
OrderByComparator<Role> obc)
|
List<Role> |
filterFindByC_N_D_T(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
OrderByComparator<Role> obc)
|
List<Role> |
filterFindByKeywords(long companyId,
String keywords,
Integer[] types,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator<Role> obc)
|
List<Role> |
findByC_N_D_T(long companyId,
String[] names,
String[] descriptions,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
OrderByComparator<Role> obc)
|
List<Role> |
findByC_N_D_T(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
OrderByComparator<Role> obc)
|
List<Role> |
findByC_N_S_P_A(long companyId,
String name,
int scope,
String primKey,
String actionId)
|
Map<String,List<String>> |
findByC_N_S_P(long companyId,
String name,
int scope,
String primKey)
|
Role |
findByC_N(long companyId,
String name)
|
List<Role> |
findByKeywords(long companyId,
String keywords,
Integer[] types,
int start,
int end,
OrderByComparator<Role> obc)
|
List<Role> |
findByKeywords(long companyId,
String keywords,
Integer[] types,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator<Role> obc)
|
List<Role> |
findByR_N_A(long resourceBlockId,
String className,
String actionId)
|
List<Role> |
findBySystem(long companyId)
|
List<Role> |
findByU_G(long userId,
List<Group> groups)
|
List<Role> |
findByU_G(long userId,
long groupId)
|
List<Role> |
findByU_G(long userId,
long[] groupIds)
|
List<Role> |
findByUserGroupGroupRole(long userId,
long groupId)
|
List<Role> |
findByUserGroupGroupRole(long userId,
long groupId,
int start,
int end)
|
List<Role> |
findByUserGroupRole(long userId,
long groupId)
|
protected String |
getCountByR_U_SQL()
|
protected String |
getGroupIds(long[] groupIds,
String table)
|
protected String |
getJoin(LinkedHashMap<String,Object> params)
|
protected String |
getJoin(String key)
|
protected String |
getTypes(int size)
|
protected String |
getWhere(LinkedHashMap<String,Object> params)
|
protected String |
getWhere(String key)
|
protected void |
setJoin(QueryPos qPos,
LinkedHashMap<String,Object> params)
|
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
appendOrderByComparator, appendOrderByComparator, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, getTableColumnsMap, openNewSession, openSession, processException, registerListener, remove, remove, removeConjunction, removeImpl, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl, updateImpl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COUNT_BY_ORGANIZATION
public static final String COUNT_BY_ORGANIZATION
COUNT_BY_ORGANIZATION_SITE
public static final String COUNT_BY_ORGANIZATION_SITE
COUNT_BY_SITE
public static final String COUNT_BY_SITE
COUNT_BY_USER
public static final String COUNT_BY_USER
COUNT_BY_USER_GROUP
public static final String COUNT_BY_USER_GROUP
COUNT_BY_USER_GROUP_GROUP_ROLE
public static final String COUNT_BY_USER_GROUP_GROUP_ROLE
COUNT_BY_USER_GROUP_SITE
public static final String COUNT_BY_USER_GROUP_SITE
COUNT_BY_U_G_R
public static final String COUNT_BY_U_G_R
COUNT_BY_C_N_D_T
public static final String COUNT_BY_C_N_D_T
FIND_BY_SYSTEM
public static final String FIND_BY_SYSTEM
FIND_BY_USER_GROUP_GROUP_ROLE
public static final String FIND_BY_USER_GROUP_GROUP_ROLE
FIND_BY_USER_GROUP_ROLE
public static final String FIND_BY_USER_GROUP_ROLE
FIND_BY_C_N
public static final String FIND_BY_C_N
FIND_BY_U_G
public static final String FIND_BY_U_G
FIND_BY_R_N_A
public static final String FIND_BY_R_N_A
FIND_BY_C_N_D_T
public static final String FIND_BY_C_N_D_T
FIND_BY_C_N_S_P
public static final String FIND_BY_C_N_S_P
FIND_BY_C_N_S_P_A
public static final String FIND_BY_C_N_S_P_A
JOIN_BY_USERS_ROLES
public static final String JOIN_BY_USERS_ROLES
RoleFinderImpl
public RoleFinderImpl()
countByKeywords
public int countByKeywords(long companyId,
String keywords,
Integer[] types)
- Specified by:
countByKeywords in interface RoleFinder
countByKeywords
public int countByKeywords(long companyId,
String keywords,
Integer[] types,
LinkedHashMap<String,Object> params)
- Specified by:
countByKeywords in interface RoleFinder
countByUserGroupGroupRole
public int countByUserGroupGroupRole(long userId,
long groupId)
- Specified by:
countByUserGroupGroupRole in interface RoleFinder
countByR_U
public int countByR_U(long roleId,
long userId)
- Specified by:
countByR_U in interface RoleFinder
countByU_G_R
public int countByU_G_R(long userId,
long groupId,
long roleId)
- Specified by:
countByU_G_R in interface RoleFinder
countByC_N_D_T
public int countByC_N_D_T(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator)
- Specified by:
countByC_N_D_T in interface RoleFinder
countByC_N_D_T
public int countByC_N_D_T(long companyId,
String[] names,
String[] descriptions,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator)
- Specified by:
countByC_N_D_T in interface RoleFinder
filterCountByKeywords
public int filterCountByKeywords(long companyId,
String keywords,
Integer[] types,
LinkedHashMap<String,Object> params)
- Specified by:
filterCountByKeywords in interface RoleFinder
filterCountByC_N_D_T
public int filterCountByC_N_D_T(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator)
- Specified by:
filterCountByC_N_D_T in interface RoleFinder
filterCountByC_N_D_T
public int filterCountByC_N_D_T(long companyId,
String[] names,
String[] descriptions,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator)
- Specified by:
filterCountByC_N_D_T in interface RoleFinder
filterFindByKeywords
public List<Role> filterFindByKeywords(long companyId,
String keywords,
Integer[] types,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator<Role> obc)
- Specified by:
filterFindByKeywords in interface RoleFinder
filterFindByC_N_D_T
public List<Role> filterFindByC_N_D_T(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
OrderByComparator<Role> obc)
- Specified by:
filterFindByC_N_D_T in interface RoleFinder
filterFindByC_N_D_T
public List<Role> filterFindByC_N_D_T(long companyId,
String[] names,
String[] descriptions,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
OrderByComparator<Role> obc)
- Specified by:
filterFindByC_N_D_T in interface RoleFinder
findByKeywords
public List<Role> findByKeywords(long companyId,
String keywords,
Integer[] types,
int start,
int end,
OrderByComparator<Role> obc)
- Specified by:
findByKeywords in interface RoleFinder
findByKeywords
public List<Role> findByKeywords(long companyId,
String keywords,
Integer[] types,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator<Role> obc)
- Specified by:
findByKeywords in interface RoleFinder
findBySystem
public List<Role> findBySystem(long companyId)
- Specified by:
findBySystem in interface RoleFinder
findByUserGroupGroupRole
public List<Role> findByUserGroupGroupRole(long userId,
long groupId)
- Specified by:
findByUserGroupGroupRole in interface RoleFinder
findByUserGroupGroupRole
public List<Role> findByUserGroupGroupRole(long userId,
long groupId,
int start,
int end)
- Specified by:
findByUserGroupGroupRole in interface RoleFinder
findByUserGroupRole
public List<Role> findByUserGroupRole(long userId,
long groupId)
- Specified by:
findByUserGroupRole in interface RoleFinder
findByC_N
public Role findByC_N(long companyId,
String name)
throws NoSuchRoleException
- Specified by:
findByC_N in interface RoleFinder
- Throws:
NoSuchRoleException
findByU_G
public List<Role> findByU_G(long userId,
List<Group> groups)
- Specified by:
findByU_G in interface RoleFinder
findByU_G
public List<Role> findByU_G(long userId,
long groupId)
- Specified by:
findByU_G in interface RoleFinder
findByU_G
public List<Role> findByU_G(long userId,
long[] groupIds)
- Specified by:
findByU_G in interface RoleFinder
findByR_N_A
public List<Role> findByR_N_A(long resourceBlockId,
String className,
String actionId)
- Specified by:
findByR_N_A in interface RoleFinder
findByC_N_D_T
public List<Role> findByC_N_D_T(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
OrderByComparator<Role> obc)
- Specified by:
findByC_N_D_T in interface RoleFinder
findByC_N_D_T
public List<Role> findByC_N_D_T(long companyId,
String[] names,
String[] descriptions,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
OrderByComparator<Role> obc)
- Specified by:
findByC_N_D_T in interface RoleFinder
findByC_N_S_P
public Map<String,List<String>> findByC_N_S_P(long companyId,
String name,
int scope,
String primKey)
- Specified by:
findByC_N_S_P in interface RoleFinder
findByC_N_S_P_A
public List<Role> findByC_N_S_P_A(long companyId,
String name,
int scope,
String primKey,
String actionId)
- Specified by:
findByC_N_S_P_A in interface RoleFinder
doCountByC_N_D_T
protected int doCountByC_N_D_T(long companyId,
String[] names,
String[] descriptions,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator,
boolean inlineSQLHelper)
doFindByC_N_D_T
protected List<Role> doFindByC_N_D_T(long companyId,
String[] names,
String[] descriptions,
Integer[] types,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
OrderByComparator<Role> obc,
boolean inlineSQLHelper)
getCountByR_U_SQL
protected String getCountByR_U_SQL()
getGroupIds
protected String getGroupIds(long[] groupIds,
String table)
getJoin
protected String getJoin(LinkedHashMap<String,Object> params)
getJoin
protected String getJoin(String key)
getTypes
protected String getTypes(int size)
getWhere
protected String getWhere(LinkedHashMap<String,Object> params)
getWhere
protected String getWhere(String key)
setJoin
protected void setJoin(QueryPos qPos,
LinkedHashMap<String,Object> params)