com.liferay.portal.service.persistence
Class RoleFinderImpl
java.lang.Object
com.liferay.portal.service.persistence.impl.BasePersistenceImpl<Role>
com.liferay.portal.service.persistence.RoleFinderImpl
- All Implemented Interfaces:
- SessionFactory, BasePersistence<Role>, RoleFinder
public class RoleFinderImpl
- extends BasePersistenceImpl<Role>
- implements RoleFinder
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, WHERE_OR |
Method Summary |
int |
countByC_N_D_T(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params)
|
int |
countByR_U(long roleId,
long userId)
|
int |
countByU_G_R(long userId,
long groupId,
long roleId)
|
List<Role> |
findByC_N_D_T(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator obc)
|
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> |
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> |
findByUserGroupRole(long userId,
long groupId)
|
protected String |
getGroupIds(long[] groupIds,
String table)
|
protected String |
getJoin(LinkedHashMap<String,Object> params)
|
protected String |
getJoin(String key)
|
protected String |
getTypes(Integer[] types)
|
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, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, remove, removeImpl, setDataSource, setSessionFactory, unregisterListener, update, 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 String COUNT_BY_COMMUNITY
COUNT_BY_ORGANIZATION
public static String COUNT_BY_ORGANIZATION
COUNT_BY_ORGANIZATION_COMMUNITY
public static String COUNT_BY_ORGANIZATION_COMMUNITY
COUNT_BY_USER
public static String COUNT_BY_USER
COUNT_BY_USER_GROUP
public static String COUNT_BY_USER_GROUP
COUNT_BY_USER_GROUP_COMMUNITY
public static String COUNT_BY_USER_GROUP_COMMUNITY
COUNT_BY_U_G_R
public static String COUNT_BY_U_G_R
COUNT_BY_C_N_D_T
public static String COUNT_BY_C_N_D_T
FIND_BY_SYSTEM
public static String FIND_BY_SYSTEM
FIND_BY_USER_GROUP_GROUP_ROLE
public static String FIND_BY_USER_GROUP_GROUP_ROLE
FIND_BY_USER_GROUP_ROLE
public static String FIND_BY_USER_GROUP_ROLE
FIND_BY_C_N
public static String FIND_BY_C_N
FIND_BY_U_G
public static String FIND_BY_U_G
FIND_BY_C_N_D_T
public static String FIND_BY_C_N_D_T
FIND_BY_C_N_S_P
public static String FIND_BY_C_N_S_P
JOIN_BY_ROLES_PERMISSIONS
public static String JOIN_BY_ROLES_PERMISSIONS
JOIN_BY_USERS_ROLES
public static String JOIN_BY_USERS_ROLES
RoleFinderImpl
public RoleFinderImpl()
countByR_U
public int countByR_U(long roleId,
long userId)
throws SystemException
- Specified by:
countByR_U
in interface RoleFinder
- Throws:
SystemException
countByU_G_R
public int countByU_G_R(long userId,
long groupId,
long roleId)
throws SystemException
- Specified by:
countByU_G_R
in interface RoleFinder
- Throws:
SystemException
countByC_N_D_T
public int countByC_N_D_T(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params)
throws SystemException
- Specified by:
countByC_N_D_T
in interface RoleFinder
- Throws:
SystemException
findBySystem
public List<Role> findBySystem(long companyId)
throws SystemException
- Specified by:
findBySystem
in interface RoleFinder
- Throws:
SystemException
findByUserGroupGroupRole
public List<Role> findByUserGroupGroupRole(long userId,
long groupId)
throws SystemException
- Specified by:
findByUserGroupGroupRole
in interface RoleFinder
- Throws:
SystemException
findByUserGroupRole
public List<Role> findByUserGroupRole(long userId,
long groupId)
throws SystemException
- Specified by:
findByUserGroupRole
in interface RoleFinder
- Throws:
SystemException
findByC_N
public Role findByC_N(long companyId,
String name)
throws NoSuchRoleException,
SystemException
- Specified by:
findByC_N
in interface RoleFinder
- Throws:
NoSuchRoleException
SystemException
findByU_G
public List<Role> findByU_G(long userId,
long groupId)
throws SystemException
- Specified by:
findByU_G
in interface RoleFinder
- Throws:
SystemException
findByU_G
public List<Role> findByU_G(long userId,
long[] groupIds)
throws SystemException
- Specified by:
findByU_G
in interface RoleFinder
- Throws:
SystemException
findByU_G
public List<Role> findByU_G(long userId,
List<Group> groups)
throws SystemException
- Specified by:
findByU_G
in interface RoleFinder
- Throws:
SystemException
findByC_N_D_T
public List<Role> findByC_N_D_T(long companyId,
String name,
String description,
Integer[] types,
LinkedHashMap<String,Object> params,
int start,
int end,
OrderByComparator obc)
throws SystemException
- Specified by:
findByC_N_D_T
in interface RoleFinder
- Throws:
SystemException
findByC_N_S_P
public Map<String,List<String>> findByC_N_S_P(long companyId,
String name,
int scope,
String primKey)
throws SystemException
- Specified by:
findByC_N_S_P
in interface RoleFinder
- Throws:
SystemException
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(Integer[] types)
getWhere
protected String getWhere(LinkedHashMap<String,Object> params)
getWhere
protected String getWhere(String key)
setJoin
protected void setJoin(QueryPos qPos,
LinkedHashMap<String,Object> params)