com.liferay.portal.service.persistence
Class RoleFinderUtil

java.lang.Object
  extended by com.liferay.portal.service.persistence.RoleFinderUtil

public class RoleFinderUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
RoleFinderUtil()
           
 
Method Summary
static 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)
           
static int countByR_U(long roleId, long userId)
           
static java.util.List<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)
           
static 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)
           
static Role findByC_N(long companyId, java.lang.String name)
           
static java.util.List<Role> findByU_G(long userId, java.util.List<Group> groups)
           
static java.util.List<Role> findByU_G(long userId, long groupId)
           
static java.util.List<Role> findByU_G(long userId, long[] groupIds)
           
static java.util.List<Role> findByUserGroupRole(long userId, long groupId)
           
static RoleFinder getFinder()
           
 void setFinder(RoleFinder finder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoleFinderUtil

public RoleFinderUtil()
Method Detail

countByR_U

public static int countByR_U(long roleId,
                             long userId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_N_D_T

public static 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
Throws:
com.liferay.portal.SystemException

findByUserGroupRole

public static java.util.List<Role> findByUserGroupRole(long userId,
                                                       long groupId)
                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_N

public static Role findByC_N(long companyId,
                             java.lang.String name)
                      throws NoSuchRoleException,
                             com.liferay.portal.SystemException
Throws:
NoSuchRoleException
com.liferay.portal.SystemException

findByU_G

public static java.util.List<Role> findByU_G(long userId,
                                             long groupId)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU_G

public static java.util.List<Role> findByU_G(long userId,
                                             long[] groupIds)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByU_G

public static java.util.List<Role> findByU_G(long userId,
                                             java.util.List<Group> groups)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByC_N_D_T

public static java.util.List<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
Throws:
com.liferay.portal.SystemException

findByC_N_S_P

public static 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
Throws:
com.liferay.portal.SystemException

getFinder

public static RoleFinder getFinder()

setFinder

public void setFinder(RoleFinder finder)