com.liferay.portal.service.persistence
Class RoleFinderUtil

java.lang.Object
  extended bycom.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 params)
           
static int countByR_U(long roleId, long userId)
           
static java.util.List findByC_N_D_T(long companyId, java.lang.String name, java.lang.String description, java.lang.Integer type, java.util.LinkedHashMap params, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.Map 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 findByU_G(long userId, java.util.List groups)
           
static java.util.List findByU_G(long userId, long groupId)
           
static java.util.List findByU_G(long userId, long[] groupIds)
           
static java.util.List 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 params)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserGroupRole

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

findByU_G

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

findByU_G

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

findByU_G

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

findByC_N_D_T

public static java.util.List findByC_N_D_T(long companyId,
                                           java.lang.String name,
                                           java.lang.String description,
                                           java.lang.Integer type,
                                           java.util.LinkedHashMap params,
                                           int begin,
                                           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 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)