com.liferay.portal.service.persistence
Class PermissionFinderImpl
java.lang.Object
com.liferay.portal.service.persistence.impl.BasePersistenceImpl<Permission>
com.liferay.portal.service.persistence.PermissionFinderImpl
- All Implemented Interfaces:
- SessionFactory, BasePersistence<Permission>, PermissionFinder
public class PermissionFinderImpl
- extends BasePersistenceImpl<Permission>
- implements PermissionFinder
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 |
boolean |
containsPermissions_2(List<Permission> permissions,
long userId,
List<Group> groups,
long groupId)
|
boolean |
containsPermissions_4(List<Permission> permissions,
long userId,
List<Group> groups,
List<Role> roles)
|
int |
countByGroupsPermissions(List<Permission> permissions,
List<Group> groups)
|
int |
countByGroupsRoles(List<Permission> permissions,
List<Group> groups)
|
int |
countByR_A_C(long roleId,
String actionId,
long codeId)
|
int |
countByRolesPermissions(List<Permission> permissions,
List<Role> roles)
|
int |
countByUserGroupRole(List<Permission> permissions,
long userId,
long groupId)
|
int |
countByUsersPermissions(List<Permission> permissions,
long userId)
|
int |
countByUsersRoles(List<Permission> permissions,
long userId)
|
List<Permission> |
findByA_C(String actionId,
long codeId)
|
List<Permission> |
findByA_R(String actionId,
long[] resourceIds)
|
List<Permission> |
findByG_C_N_S_P(long groupId,
long companyId,
String name,
int scope,
String primKey)
|
List<Permission> |
findByG_R(long groupId,
long resourceId)
|
List<Permission> |
findByO_G_R(long organizationId,
long groupId,
long resourceId)
|
List<Permission> |
findByR_R(long roleId,
long resourceId)
|
List<Permission> |
findByU_A_R(long userId,
String[] actionIds,
long resourceId)
|
List<Permission> |
findByU_C_N_S_P(long userId,
long companyId,
String name,
int scope,
String primKey)
|
List<Permission> |
findByU_R(long userId,
long resourceId)
|
protected String |
getActionIds(String[] actionIds)
|
protected String |
getGroupIds(List<Group> groups,
String table)
|
protected String |
getPermissionIds(List<Permission> permissions,
String table)
|
protected String |
getResourceIds(long[] resourceIds)
|
protected String |
getRoleIds(List<Role> roles,
String table)
|
protected void |
setGroupIds(QueryPos qPos,
List<Group> groups)
|
protected void |
setPermissionIds(QueryPos qPos,
List<Permission> permissions)
|
protected void |
setResourceIds(QueryPos qPos,
long[] resourceIds)
|
protected void |
setRoleIds(QueryPos qPos,
List<Role> roles)
|
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_GROUPS_PERMISSIONS
public static String COUNT_BY_GROUPS_PERMISSIONS
COUNT_BY_GROUPS_ROLES
public static String COUNT_BY_GROUPS_ROLES
COUNT_BY_ROLES_PERMISSIONS
public static String COUNT_BY_ROLES_PERMISSIONS
COUNT_BY_USER_GROUP_ROLE
public static String COUNT_BY_USER_GROUP_ROLE
COUNT_BY_USERS_PERMISSIONS
public static String COUNT_BY_USERS_PERMISSIONS
COUNT_BY_USERS_ROLES
public static String COUNT_BY_USERS_ROLES
COUNT_BY_R_A_C
public static String COUNT_BY_R_A_C
FIND_BY_A_C
public static String FIND_BY_A_C
FIND_BY_A_R
public static String FIND_BY_A_R
FIND_BY_G_R
public static String FIND_BY_G_R
FIND_BY_R_R
public static String FIND_BY_R_R
FIND_BY_U_R
public static String FIND_BY_U_R
FIND_BY_O_G_R
public static String FIND_BY_O_G_R
FIND_BY_U_A_R
public static String FIND_BY_U_A_R
FIND_BY_G_C_N_S_P
public static String FIND_BY_G_C_N_S_P
FIND_BY_U_C_N_S_P
public static String FIND_BY_U_C_N_S_P
FINDER_PATH_COUNT_BY_ROLES_PERMISSIONS
public static final FinderPath FINDER_PATH_COUNT_BY_ROLES_PERMISSIONS
FINDER_PATH_FIND_BY_A_R
public static final FinderPath FINDER_PATH_FIND_BY_A_R
PermissionFinderImpl
public PermissionFinderImpl()
containsPermissions_2
public boolean containsPermissions_2(List<Permission> permissions,
long userId,
List<Group> groups,
long groupId)
throws SystemException
- Specified by:
containsPermissions_2
in interface PermissionFinder
- Throws:
SystemException
containsPermissions_4
public boolean containsPermissions_4(List<Permission> permissions,
long userId,
List<Group> groups,
List<Role> roles)
throws SystemException
- Specified by:
containsPermissions_4
in interface PermissionFinder
- Throws:
SystemException
countByGroupsPermissions
public int countByGroupsPermissions(List<Permission> permissions,
List<Group> groups)
throws SystemException
- Specified by:
countByGroupsPermissions
in interface PermissionFinder
- Throws:
SystemException
countByGroupsRoles
public int countByGroupsRoles(List<Permission> permissions,
List<Group> groups)
throws SystemException
- Specified by:
countByGroupsRoles
in interface PermissionFinder
- Throws:
SystemException
countByRolesPermissions
public int countByRolesPermissions(List<Permission> permissions,
List<Role> roles)
throws SystemException
- Specified by:
countByRolesPermissions
in interface PermissionFinder
- Throws:
SystemException
countByUserGroupRole
public int countByUserGroupRole(List<Permission> permissions,
long userId,
long groupId)
throws SystemException
- Specified by:
countByUserGroupRole
in interface PermissionFinder
- Throws:
SystemException
countByUsersPermissions
public int countByUsersPermissions(List<Permission> permissions,
long userId)
throws SystemException
- Specified by:
countByUsersPermissions
in interface PermissionFinder
- Throws:
SystemException
countByUsersRoles
public int countByUsersRoles(List<Permission> permissions,
long userId)
throws SystemException
- Specified by:
countByUsersRoles
in interface PermissionFinder
- Throws:
SystemException
countByR_A_C
public int countByR_A_C(long roleId,
String actionId,
long codeId)
throws SystemException
- Specified by:
countByR_A_C
in interface PermissionFinder
- Throws:
SystemException
findByA_C
public List<Permission> findByA_C(String actionId,
long codeId)
throws SystemException
- Specified by:
findByA_C
in interface PermissionFinder
- Throws:
SystemException
findByA_R
public List<Permission> findByA_R(String actionId,
long[] resourceIds)
throws SystemException
- Specified by:
findByA_R
in interface PermissionFinder
- Throws:
SystemException
findByG_R
public List<Permission> findByG_R(long groupId,
long resourceId)
throws SystemException
- Specified by:
findByG_R
in interface PermissionFinder
- Throws:
SystemException
findByR_R
public List<Permission> findByR_R(long roleId,
long resourceId)
throws SystemException
- Specified by:
findByR_R
in interface PermissionFinder
- Throws:
SystemException
findByU_R
public List<Permission> findByU_R(long userId,
long resourceId)
throws SystemException
- Specified by:
findByU_R
in interface PermissionFinder
- Throws:
SystemException
findByO_G_R
public List<Permission> findByO_G_R(long organizationId,
long groupId,
long resourceId)
throws SystemException
- Specified by:
findByO_G_R
in interface PermissionFinder
- Throws:
SystemException
findByU_A_R
public List<Permission> findByU_A_R(long userId,
String[] actionIds,
long resourceId)
throws SystemException
- Specified by:
findByU_A_R
in interface PermissionFinder
- Throws:
SystemException
findByG_C_N_S_P
public List<Permission> findByG_C_N_S_P(long groupId,
long companyId,
String name,
int scope,
String primKey)
throws SystemException
- Specified by:
findByG_C_N_S_P
in interface PermissionFinder
- Throws:
SystemException
findByU_C_N_S_P
public List<Permission> findByU_C_N_S_P(long userId,
long companyId,
String name,
int scope,
String primKey)
throws SystemException
- Specified by:
findByU_C_N_S_P
in interface PermissionFinder
- Throws:
SystemException
getActionIds
protected String getActionIds(String[] actionIds)
getGroupIds
protected String getGroupIds(List<Group> groups,
String table)
getPermissionIds
protected String getPermissionIds(List<Permission> permissions,
String table)
getResourceIds
protected String getResourceIds(long[] resourceIds)
getRoleIds
protected String getRoleIds(List<Role> roles,
String table)
setGroupIds
protected void setGroupIds(QueryPos qPos,
List<Group> groups)
setPermissionIds
protected void setPermissionIds(QueryPos qPos,
List<Permission> permissions)
setResourceIds
protected void setResourceIds(QueryPos qPos,
long[] resourceIds)
setRoleIds
protected void setRoleIds(QueryPos qPos,
List<Role> roles)