Liferay 6.2-ce-ga5

com.liferay.portal.service.persistence
Class RoleFinderImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<Role>
      extended by com.liferay.portal.service.persistence.RoleFinderImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<Role>, RoleFinder

public class RoleFinderImpl
extends BasePersistenceImpl<Role>
implements RoleFinder


Field Summary
static String COUNT_BY_C_N_D_T
           
static String COUNT_BY_ORGANIZATION
           
static String COUNT_BY_ORGANIZATION_SITE
           
static String COUNT_BY_SITE
           
static String COUNT_BY_U_G_R
           
static String COUNT_BY_USER
           
static String COUNT_BY_USER_GROUP
           
static String COUNT_BY_USER_GROUP_SITE
           
static String FIND_BY_C_N
           
static String FIND_BY_C_N_D_T
           
static String FIND_BY_C_N_S_P
           
static String FIND_BY_C_N_S_P_A
           
static String FIND_BY_R_N_A
           
static String FIND_BY_SYSTEM
           
static String FIND_BY_U_G
           
static String FIND_BY_USER_GROUP_GROUP_ROLE
           
static String FIND_BY_USER_GROUP_ROLE
           
static String JOIN_BY_USERS_ROLES
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, 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
 
Constructor Summary
RoleFinderImpl()
           
 
Method Summary
 int countByC_N_D_T(long companyId, String[] names, String[] descriptions, Integer[] types, LinkedHashMap<String,Object> params, boolean andOperator)
           
 int countByC_N_D_T(long companyId, String name, String description, Integer[] types, LinkedHashMap<String,Object> params, boolean andOperator)
           
 int countByKeywords(long companyId, String keywords, Integer[] types)
           
 int countByKeywords(long companyId, String keywords, 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[] names, String[] descriptions, Integer[] types, LinkedHashMap<String,Object> params, boolean andOperator, int start, int end, OrderByComparator obc)
           
 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)
           
 List<Role> findByC_N_S_P_A(long companyId, String name, int scope, String primKey, String actionId)
           
 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> findByKeywords(long companyId, String keywords, Integer[] types, int start, int end, OrderByComparator obc)
           
 List<Role> findByKeywords(long companyId, String keywords, Integer[] types, LinkedHashMap<String,Object> params, int start, int end, OrderByComparator obc)
           
 List<Role> findByR_N_A(long resourceBlockId, String className, String actionId)
           
 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 getCountByR_U_SQL()
           
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, appendOrderByComparator, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, remove, removeConjunction, removeImpl, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl, updateImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COUNT_BY_ORGANIZATION

public static final String COUNT_BY_ORGANIZATION

COUNT_BY_ORGANIZATION_SITE

public static final String COUNT_BY_ORGANIZATION_SITE

COUNT_BY_SITE

public static final String COUNT_BY_SITE

COUNT_BY_USER

public static final String COUNT_BY_USER

COUNT_BY_USER_GROUP

public static final String COUNT_BY_USER_GROUP

COUNT_BY_USER_GROUP_SITE

public static final String COUNT_BY_USER_GROUP_SITE

COUNT_BY_U_G_R

public static final String COUNT_BY_U_G_R

COUNT_BY_C_N_D_T

public static final String COUNT_BY_C_N_D_T

FIND_BY_SYSTEM

public static final String FIND_BY_SYSTEM

FIND_BY_USER_GROUP_GROUP_ROLE

public static final String FIND_BY_USER_GROUP_GROUP_ROLE

FIND_BY_USER_GROUP_ROLE

public static final String FIND_BY_USER_GROUP_ROLE

FIND_BY_C_N

public static final String FIND_BY_C_N

FIND_BY_U_G

public static final String FIND_BY_U_G

FIND_BY_R_N_A

public static final String FIND_BY_R_N_A

FIND_BY_C_N_D_T

public static final String FIND_BY_C_N_D_T

FIND_BY_C_N_S_P

public static final String FIND_BY_C_N_S_P

FIND_BY_C_N_S_P_A

public static final String FIND_BY_C_N_S_P_A

JOIN_BY_USERS_ROLES

public static final String JOIN_BY_USERS_ROLES
Constructor Detail

RoleFinderImpl

public RoleFinderImpl()
Method Detail

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,
                          boolean andOperator)
                   throws SystemException
Specified by:
countByC_N_D_T in interface RoleFinder
Throws:
SystemException

countByC_N_D_T

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

countByKeywords

public int countByKeywords(long companyId,
                           String keywords,
                           Integer[] types)
                    throws SystemException
Specified by:
countByKeywords in interface RoleFinder
Throws:
SystemException

countByKeywords

public int countByKeywords(long companyId,
                           String keywords,
                           Integer[] types,
                           LinkedHashMap<String,Object> params)
                    throws SystemException
Specified by:
countByKeywords 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,
                            List<Group> groups)
                     throws SystemException
Specified by:
findByU_G in interface RoleFinder
Throws:
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

findByR_N_A

public List<Role> findByR_N_A(long resourceBlockId,
                              String className,
                              String actionId)
                       throws SystemException
Specified by:
findByR_N_A 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,
                                boolean andOperator,
                                int start,
                                int end,
                                OrderByComparator obc)
                         throws SystemException
Specified by:
findByC_N_D_T in interface RoleFinder
Throws:
SystemException

findByC_N_D_T

public 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
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

findByC_N_S_P_A

public List<Role> findByC_N_S_P_A(long companyId,
                                  String name,
                                  int scope,
                                  String primKey,
                                  String actionId)
                           throws SystemException
Specified by:
findByC_N_S_P_A in interface RoleFinder
Throws:
SystemException

findByKeywords

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

findByKeywords

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

getCountByR_U_SQL

protected String getCountByR_U_SQL()

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)

Liferay 6.2-ce-ga5