Liferay 6.1.2-ce-ga3

com.liferay.portal.service.persistence
Class RoleFinderUtil

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

public class RoleFinderUtil
extends Object


Constructor Summary
RoleFinderUtil()
           
 
Method Summary
static int countByC_N_D_T(long companyId, String[] names, String[] descriptions, Integer[] types, LinkedHashMap<String,Object> params, boolean andOperator)
           
static int countByC_N_D_T(long companyId, String name, String description, Integer[] types, LinkedHashMap<String,Object> params, boolean andOperator)
           
static int countByKeywords(long companyId, String keywords, Integer[] types)
           
static int countByKeywords(long companyId, String keywords, Integer[] types, LinkedHashMap<String,Object> params)
           
static int countByR_U(long roleId, long userId)
           
static int countByU_G_R(long userId, long groupId, long roleId)
           
static List<Role> findByC_N_D_T(long companyId, String[] names, String[] descriptions, Integer[] types, LinkedHashMap<String,Object> params, boolean andOperator, int start, int end, OrderByComparator obc)
           
static List<Role> findByC_N_D_T(long companyId, String name, String description, Integer[] types, LinkedHashMap<String,Object> params, boolean andOperator, int start, int end, OrderByComparator obc)
           
static List<Role> findByC_N_S_P_A(long companyId, String name, int scope, String primKey, String actionId)
           
static Map<String,List<String>> findByC_N_S_P(long companyId, String name, int scope, String primKey)
           
static Role findByC_N(long companyId, String name)
           
static List<Role> findByKeywords(long companyId, String keywords, Integer[] types, int start, int end, OrderByComparator obc)
           
static List<Role> findByKeywords(long companyId, String keywords, Integer[] types, LinkedHashMap<String,Object> params, int start, int end, OrderByComparator obc)
           
static List<Role> findByR_N_A(long resourceBlockId, String className, String actionId)
           
static List<Role> findBySystem(long companyId)
           
static List<Role> findByU_G(long userId, List<Group> groups)
           
static List<Role> findByU_G(long userId, long groupId)
           
static List<Role> findByU_G(long userId, long[] groupIds)
           
static List<Role> findByUserGroupGroupRole(long userId, long groupId)
           
static 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 SystemException
Throws:
SystemException

countByU_G_R

public static int countByU_G_R(long userId,
                               long groupId,
                               long roleId)
                        throws SystemException
Throws:
SystemException

countByC_N_D_T

public static int countByC_N_D_T(long companyId,
                                 String name,
                                 String description,
                                 Integer[] types,
                                 LinkedHashMap<String,Object> params,
                                 boolean andOperator)
                          throws SystemException
Throws:
SystemException

countByC_N_D_T

public static int countByC_N_D_T(long companyId,
                                 String[] names,
                                 String[] descriptions,
                                 Integer[] types,
                                 LinkedHashMap<String,Object> params,
                                 boolean andOperator)
                          throws SystemException
Throws:
SystemException

countByKeywords

public static int countByKeywords(long companyId,
                                  String keywords,
                                  Integer[] types)
                           throws SystemException
Throws:
SystemException

countByKeywords

public static int countByKeywords(long companyId,
                                  String keywords,
                                  Integer[] types,
                                  LinkedHashMap<String,Object> params)
                           throws SystemException
Throws:
SystemException

findBySystem

public static List<Role> findBySystem(long companyId)
                               throws SystemException
Throws:
SystemException

findByUserGroupGroupRole

public static List<Role> findByUserGroupGroupRole(long userId,
                                                  long groupId)
                                           throws SystemException
Throws:
SystemException

findByUserGroupRole

public static List<Role> findByUserGroupRole(long userId,
                                             long groupId)
                                      throws SystemException
Throws:
SystemException

findByC_N

public static Role findByC_N(long companyId,
                             String name)
                      throws NoSuchRoleException,
                             SystemException
Throws:
NoSuchRoleException
SystemException

findByU_G

public static List<Role> findByU_G(long userId,
                                   List<Group> groups)
                            throws SystemException
Throws:
SystemException

findByU_G

public static List<Role> findByU_G(long userId,
                                   long groupId)
                            throws SystemException
Throws:
SystemException

findByU_G

public static List<Role> findByU_G(long userId,
                                   long[] groupIds)
                            throws SystemException
Throws:
SystemException

findByR_N_A

public static List<Role> findByR_N_A(long resourceBlockId,
                                     String className,
                                     String actionId)
                              throws SystemException
Throws:
SystemException

findByC_N_D_T

public static List<Role> findByC_N_D_T(long companyId,
                                       String name,
                                       String description,
                                       Integer[] types,
                                       LinkedHashMap<String,Object> params,
                                       boolean andOperator,
                                       int start,
                                       int end,
                                       OrderByComparator obc)
                                throws SystemException
Throws:
SystemException

findByC_N_D_T

public static List<Role> findByC_N_D_T(long companyId,
                                       String[] names,
                                       String[] descriptions,
                                       Integer[] types,
                                       LinkedHashMap<String,Object> params,
                                       boolean andOperator,
                                       int start,
                                       int end,
                                       OrderByComparator obc)
                                throws SystemException
Throws:
SystemException

findByC_N_S_P

public static Map<String,List<String>> findByC_N_S_P(long companyId,
                                                     String name,
                                                     int scope,
                                                     String primKey)
                                              throws SystemException
Throws:
SystemException

findByC_N_S_P_A

public static List<Role> findByC_N_S_P_A(long companyId,
                                         String name,
                                         int scope,
                                         String primKey,
                                         String actionId)
                                  throws SystemException
Throws:
SystemException

findByKeywords

public static List<Role> findByKeywords(long companyId,
                                        String keywords,
                                        Integer[] types,
                                        int start,
                                        int end,
                                        OrderByComparator obc)
                                 throws SystemException
Throws:
SystemException

findByKeywords

public static List<Role> findByKeywords(long companyId,
                                        String keywords,
                                        Integer[] types,
                                        LinkedHashMap<String,Object> params,
                                        int start,
                                        int end,
                                        OrderByComparator obc)
                                 throws SystemException
Throws:
SystemException

getFinder

public static RoleFinder getFinder()

setFinder

public void setFinder(RoleFinder finder)

Liferay 6.1.2-ce-ga3