com.liferay.portal.service.persistence
Class RoleFinderImpl
java.lang.Object
com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>
com.liferay.portal.service.persistence.RoleFinderImpl
- All Implemented Interfaces:
- com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portal.model.Role>, com.liferay.portal.service.persistence.RoleFinder
public class RoleFinderImpl
- extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>
- implements com.liferay.portal.service.persistence.RoleFinder
View Source
- Author:
- Brian Wing Shun Chan
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
COUNT_COLUMN_NAME, listeners, 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 |
Method Summary |
int |
countByC_N_D_T(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer type,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
|
int |
countByR_U(long roleId,
long userId)
|
int |
countByU_G_R(long userId,
long groupId,
long roleId)
|
java.util.List<com.liferay.portal.model.Role> |
findByC_N_D_T(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer type,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
findByC_N_S_P(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
|
com.liferay.portal.model.Role |
findByC_N(long companyId,
java.lang.String name)
|
java.util.List<com.liferay.portal.model.Role> |
findBySystem(long companyId)
|
java.util.List<com.liferay.portal.model.Role> |
findByU_G(long userId,
java.util.List<com.liferay.portal.model.Group> groups)
|
java.util.List<com.liferay.portal.model.Role> |
findByU_G(long userId,
long groupId)
|
java.util.List<com.liferay.portal.model.Role> |
findByU_G(long userId,
long[] groupIds)
|
java.util.List<com.liferay.portal.model.Role> |
findByUserGroupGroupRole(long userId,
long groupId)
|
java.util.List<com.liferay.portal.model.Role> |
findByUserGroupRole(long userId,
long groupId)
|
protected java.lang.String |
getCountByR_U_SQL()
|
protected java.lang.String |
getGroupIds(long[] groupIds,
java.lang.String table)
|
protected java.lang.String |
getJoin(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
|
protected java.lang.String |
getJoin(java.lang.String key)
|
protected java.lang.String |
getWhere(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
|
protected java.lang.String |
getWhere(java.lang.String key)
|
protected void |
setJoin(com.liferay.portal.kernel.dao.orm.QueryPos qPos,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
|
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
appendOrderByComparator, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, remove, removeImpl, setDataSource, setSessionFactory, unregisterListener, update, updateImpl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COUNT_BY_COMMUNITY
public static java.lang.String COUNT_BY_COMMUNITY
COUNT_BY_ORGANIZATION
public static java.lang.String COUNT_BY_ORGANIZATION
COUNT_BY_ORGANIZATION_COMMUNITY
public static java.lang.String COUNT_BY_ORGANIZATION_COMMUNITY
COUNT_BY_USER
public static java.lang.String COUNT_BY_USER
COUNT_BY_USER_GROUP
public static java.lang.String COUNT_BY_USER_GROUP
COUNT_BY_USER_GROUP_COMMUNITY
public static java.lang.String COUNT_BY_USER_GROUP_COMMUNITY
COUNT_BY_U_G_R
public static java.lang.String COUNT_BY_U_G_R
COUNT_BY_C_N_D_T
public static java.lang.String COUNT_BY_C_N_D_T
FIND_BY_SYSTEM
public static java.lang.String FIND_BY_SYSTEM
FIND_BY_USER_GROUP_GROUP_ROLE
public static java.lang.String FIND_BY_USER_GROUP_GROUP_ROLE
FIND_BY_USER_GROUP_ROLE
public static java.lang.String FIND_BY_USER_GROUP_ROLE
FIND_BY_C_N
public static java.lang.String FIND_BY_C_N
FIND_BY_U_G
public static java.lang.String FIND_BY_U_G
FIND_BY_C_N_D_T
public static java.lang.String FIND_BY_C_N_D_T
FIND_BY_C_N_S_P
public static java.lang.String FIND_BY_C_N_S_P
JOIN_BY_ROLES_PERMISSIONS
public static java.lang.String JOIN_BY_ROLES_PERMISSIONS
JOIN_BY_USERS_ROLES
public static java.lang.String JOIN_BY_USERS_ROLES
RoleFinderImpl
public RoleFinderImpl()
countByR_U
public int countByR_U(long roleId,
long userId)
throws com.liferay.portal.SystemException
- Specified by:
countByR_U
in interface com.liferay.portal.service.persistence.RoleFinder
- Throws:
com.liferay.portal.SystemException
countByU_G_R
public int countByU_G_R(long userId,
long groupId,
long roleId)
throws com.liferay.portal.SystemException
- Specified by:
countByU_G_R
in interface com.liferay.portal.service.persistence.RoleFinder
- Throws:
com.liferay.portal.SystemException
countByC_N_D_T
public int countByC_N_D_T(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer type,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
throws com.liferay.portal.SystemException
- Specified by:
countByC_N_D_T
in interface com.liferay.portal.service.persistence.RoleFinder
- Throws:
com.liferay.portal.SystemException
findBySystem
public java.util.List<com.liferay.portal.model.Role> findBySystem(long companyId)
throws com.liferay.portal.SystemException
- Specified by:
findBySystem
in interface com.liferay.portal.service.persistence.RoleFinder
- Throws:
com.liferay.portal.SystemException
findByUserGroupGroupRole
public java.util.List<com.liferay.portal.model.Role> findByUserGroupGroupRole(long userId,
long groupId)
throws com.liferay.portal.SystemException
- Specified by:
findByUserGroupGroupRole
in interface com.liferay.portal.service.persistence.RoleFinder
- Throws:
com.liferay.portal.SystemException
findByUserGroupRole
public java.util.List<com.liferay.portal.model.Role> findByUserGroupRole(long userId,
long groupId)
throws com.liferay.portal.SystemException
- Specified by:
findByUserGroupRole
in interface com.liferay.portal.service.persistence.RoleFinder
- Throws:
com.liferay.portal.SystemException
findByC_N
public com.liferay.portal.model.Role findByC_N(long companyId,
java.lang.String name)
throws com.liferay.portal.NoSuchRoleException,
com.liferay.portal.SystemException
- Specified by:
findByC_N
in interface com.liferay.portal.service.persistence.RoleFinder
- Throws:
com.liferay.portal.NoSuchRoleException
com.liferay.portal.SystemException
findByU_G
public java.util.List<com.liferay.portal.model.Role> findByU_G(long userId,
long groupId)
throws com.liferay.portal.SystemException
- Specified by:
findByU_G
in interface com.liferay.portal.service.persistence.RoleFinder
- Throws:
com.liferay.portal.SystemException
findByU_G
public java.util.List<com.liferay.portal.model.Role> findByU_G(long userId,
long[] groupIds)
throws com.liferay.portal.SystemException
- Specified by:
findByU_G
in interface com.liferay.portal.service.persistence.RoleFinder
- Throws:
com.liferay.portal.SystemException
findByU_G
public java.util.List<com.liferay.portal.model.Role> findByU_G(long userId,
java.util.List<com.liferay.portal.model.Group> groups)
throws com.liferay.portal.SystemException
- Specified by:
findByU_G
in interface com.liferay.portal.service.persistence.RoleFinder
- Throws:
com.liferay.portal.SystemException
findByC_N_D_T
public java.util.List<com.liferay.portal.model.Role> findByC_N_D_T(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.Integer type,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Specified by:
findByC_N_D_T
in interface com.liferay.portal.service.persistence.RoleFinder
- Throws:
com.liferay.portal.SystemException
findByC_N_S_P
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> findByC_N_S_P(long companyId,
java.lang.String name,
int scope,
java.lang.String primKey)
throws com.liferay.portal.SystemException
- Specified by:
findByC_N_S_P
in interface com.liferay.portal.service.persistence.RoleFinder
- Throws:
com.liferay.portal.SystemException
getCountByR_U_SQL
protected java.lang.String getCountByR_U_SQL()
getGroupIds
protected java.lang.String getGroupIds(long[] groupIds,
java.lang.String table)
getJoin
protected java.lang.String getJoin(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
getJoin
protected java.lang.String getJoin(java.lang.String key)
getWhere
protected java.lang.String getWhere(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
getWhere
protected java.lang.String getWhere(java.lang.String key)
setJoin
protected void setJoin(com.liferay.portal.kernel.dao.orm.QueryPos qPos,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)