com.liferay.portal.service.persistence
Class RoleFinderImpl

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

public class RoleFinderImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.Role>
implements com.liferay.portal.service.persistence.RoleFinder

Author:
Brian Wing Shun Chan, Marcellus Tavares, Connor McKay

Field Summary
static java.lang.String COUNT_BY_C_N_D_T
           
static java.lang.String COUNT_BY_ORGANIZATION
           
static java.lang.String COUNT_BY_ORGANIZATION_SITE
           
static java.lang.String COUNT_BY_SITE
           
static java.lang.String COUNT_BY_U_G_R
           
static java.lang.String COUNT_BY_USER
           
static java.lang.String COUNT_BY_USER_GROUP
           
static java.lang.String COUNT_BY_USER_GROUP_SITE
           
static java.lang.String FIND_BY_C_N
           
static java.lang.String FIND_BY_C_N_D_T
           
static java.lang.String FIND_BY_C_N_S_P
           
static java.lang.String FIND_BY_C_N_S_P_A
           
static java.lang.String FIND_BY_SYSTEM
           
static java.lang.String FIND_BY_U_G
           
static java.lang.String FIND_BY_USER_GROUP_GROUP_ROLE
           
static java.lang.String FIND_BY_USER_GROUP_ROLE
           
static java.lang.String JOIN_BY_ROLES_PERMISSIONS
           
static java.lang.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, java.lang.String[] names, java.lang.String[] descriptions, java.lang.Integer[] types, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andOperator)
           
 int countByC_N_D_T(long companyId, java.lang.String name, java.lang.String description, java.lang.Integer[] types, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andOperator)
           
 int countByKeywords(long companyId, java.lang.String keywords, java.lang.Integer[] types)
           
 int countByKeywords(long companyId, java.lang.String keywords, java.lang.Integer[] types, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
 int countByR_U(long roleId, long userId)
           
 int countByU_G_R(long userId, long groupId, long roleId)
           
 java.util.List<com.liferay.portal.model.Role> findByC_N_D_T(long companyId, java.lang.String[] names, java.lang.String[] descriptions, java.lang.Integer[] types, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portal.model.Role> findByC_N_D_T(long companyId, java.lang.String name, java.lang.String description, java.lang.Integer[] types, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portal.model.Role> findByC_N_S_P_A(long companyId, java.lang.String name, int scope, java.lang.String primKey, java.lang.String actionId)
           
 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)
           
 com.liferay.portal.model.Role findByC_N(long companyId, java.lang.String name)
           
 java.util.List<com.liferay.portal.model.Role> findByKeywords(long companyId, java.lang.String keywords, java.lang.Integer[] types, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portal.model.Role> findByKeywords(long companyId, java.lang.String keywords, java.lang.Integer[] types, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portal.model.Role> findBySystem(long companyId)
           
 java.util.List<com.liferay.portal.model.Role> findByU_G(long userId, java.util.List<com.liferay.portal.model.Group> groups)
           
 java.util.List<com.liferay.portal.model.Role> findByU_G(long userId, long groupId)
           
 java.util.List<com.liferay.portal.model.Role> findByU_G(long userId, long[] groupIds)
           
 java.util.List<com.liferay.portal.model.Role> findByUserGroupGroupRole(long userId, long groupId)
           
 java.util.List<com.liferay.portal.model.Role> findByUserGroupRole(long userId, long groupId)
           
protected  java.lang.String getCountByR_U_SQL()
           
protected  java.lang.String getGroupIds(long[] groupIds, java.lang.String table)
           
protected  java.lang.String getJoin(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
protected  java.lang.String getJoin(java.lang.String key)
           
protected  java.lang.String getTypes(java.lang.Integer[] types)
           
protected  java.lang.String getWhere(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
protected  java.lang.String getWhere(java.lang.String key)
           
protected  void setJoin(com.liferay.portal.kernel.dao.orm.QueryPos qPos, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, 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
 

Field Detail

COUNT_BY_ORGANIZATION

public static java.lang.String COUNT_BY_ORGANIZATION

COUNT_BY_ORGANIZATION_SITE

public static java.lang.String COUNT_BY_ORGANIZATION_SITE

COUNT_BY_SITE

public static java.lang.String COUNT_BY_SITE

COUNT_BY_USER

public static java.lang.String COUNT_BY_USER

COUNT_BY_USER_GROUP

public static java.lang.String COUNT_BY_USER_GROUP

COUNT_BY_USER_GROUP_SITE

public static java.lang.String COUNT_BY_USER_GROUP_SITE

COUNT_BY_U_G_R

public static java.lang.String COUNT_BY_U_G_R

COUNT_BY_C_N_D_T

public static java.lang.String COUNT_BY_C_N_D_T

FIND_BY_SYSTEM

public static java.lang.String FIND_BY_SYSTEM

FIND_BY_USER_GROUP_GROUP_ROLE

public static java.lang.String FIND_BY_USER_GROUP_GROUP_ROLE

FIND_BY_USER_GROUP_ROLE

public static java.lang.String FIND_BY_USER_GROUP_ROLE

FIND_BY_C_N

public static java.lang.String FIND_BY_C_N

FIND_BY_U_G

public static java.lang.String FIND_BY_U_G

FIND_BY_C_N_D_T

public static java.lang.String FIND_BY_C_N_D_T

FIND_BY_C_N_S_P

public static java.lang.String FIND_BY_C_N_S_P

FIND_BY_C_N_S_P_A

public static java.lang.String FIND_BY_C_N_S_P_A

JOIN_BY_ROLES_PERMISSIONS

public static java.lang.String JOIN_BY_ROLES_PERMISSIONS

JOIN_BY_USERS_ROLES

public static java.lang.String JOIN_BY_USERS_ROLES
Constructor Detail

RoleFinderImpl

public RoleFinderImpl()
Method Detail

countByR_U

public int countByR_U(long roleId,
                      long userId)
               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByR_U in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

countByU_G_R

public int countByU_G_R(long userId,
                        long groupId,
                        long roleId)
                 throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByU_G_R in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

countByC_N_D_T

public int countByC_N_D_T(long companyId,
                          java.lang.String name,
                          java.lang.String description,
                          java.lang.Integer[] types,
                          java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                          boolean andOperator)
                   throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByC_N_D_T in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

countByC_N_D_T

public int countByC_N_D_T(long companyId,
                          java.lang.String[] names,
                          java.lang.String[] descriptions,
                          java.lang.Integer[] types,
                          java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                          boolean andOperator)
                   throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByC_N_D_T in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

countByKeywords

public int countByKeywords(long companyId,
                           java.lang.String keywords,
                           java.lang.Integer[] types)
                    throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByKeywords in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

countByKeywords

public int countByKeywords(long companyId,
                           java.lang.String keywords,
                           java.lang.Integer[] types,
                           java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
                    throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByKeywords in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findBySystem

public java.util.List<com.liferay.portal.model.Role> findBySystem(long companyId)
                                                           throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findBySystem in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByUserGroupGroupRole

public java.util.List<com.liferay.portal.model.Role> findByUserGroupGroupRole(long userId,
                                                                              long groupId)
                                                                       throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByUserGroupGroupRole in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByUserGroupRole

public java.util.List<com.liferay.portal.model.Role> findByUserGroupRole(long userId,
                                                                         long groupId)
                                                                  throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByUserGroupRole in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByC_N

public com.liferay.portal.model.Role findByC_N(long companyId,
                                               java.lang.String name)
                                        throws com.liferay.portal.NoSuchRoleException,
                                               com.liferay.portal.kernel.exception.SystemException
Specified by:
findByC_N in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.NoSuchRoleException
com.liferay.portal.kernel.exception.SystemException

findByU_G

public java.util.List<com.liferay.portal.model.Role> findByU_G(long userId,
                                                               long groupId)
                                                        throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByU_G in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByU_G

public java.util.List<com.liferay.portal.model.Role> findByU_G(long userId,
                                                               long[] groupIds)
                                                        throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByU_G in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByU_G

public java.util.List<com.liferay.portal.model.Role> findByU_G(long userId,
                                                               java.util.List<com.liferay.portal.model.Group> groups)
                                                        throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByU_G in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByC_N_D_T

public java.util.List<com.liferay.portal.model.Role> findByC_N_D_T(long companyId,
                                                                   java.lang.String name,
                                                                   java.lang.String description,
                                                                   java.lang.Integer[] types,
                                                                   java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                                                   boolean andOperator,
                                                                   int start,
                                                                   int end,
                                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                                            throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByC_N_D_T in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByC_N_D_T

public java.util.List<com.liferay.portal.model.Role> findByC_N_D_T(long companyId,
                                                                   java.lang.String[] names,
                                                                   java.lang.String[] descriptions,
                                                                   java.lang.Integer[] types,
                                                                   java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                                                   boolean andOperator,
                                                                   int start,
                                                                   int end,
                                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                                            throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByC_N_D_T in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByC_N_S_P

public 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.kernel.exception.SystemException
Specified by:
findByC_N_S_P in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByC_N_S_P_A

public java.util.List<com.liferay.portal.model.Role> findByC_N_S_P_A(long companyId,
                                                                     java.lang.String name,
                                                                     int scope,
                                                                     java.lang.String primKey,
                                                                     java.lang.String actionId)
                                                              throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByC_N_S_P_A in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByKeywords

public java.util.List<com.liferay.portal.model.Role> findByKeywords(long companyId,
                                                                    java.lang.String keywords,
                                                                    java.lang.Integer[] types,
                                                                    int start,
                                                                    int end,
                                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                                             throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByKeywords in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByKeywords

public java.util.List<com.liferay.portal.model.Role> findByKeywords(long companyId,
                                                                    java.lang.String keywords,
                                                                    java.lang.Integer[] types,
                                                                    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.kernel.exception.SystemException
Specified by:
findByKeywords in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

getCountByR_U_SQL

protected java.lang.String getCountByR_U_SQL()

getGroupIds

protected java.lang.String getGroupIds(long[] groupIds,
                                       java.lang.String table)

getJoin

protected java.lang.String getJoin(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)

getJoin

protected java.lang.String getJoin(java.lang.String key)

getTypes

protected java.lang.String getTypes(java.lang.Integer[] types)

getWhere

protected java.lang.String getWhere(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)

getWhere

protected java.lang.String getWhere(java.lang.String key)

setJoin

protected void setJoin(com.liferay.portal.kernel.dao.orm.QueryPos qPos,
                       java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)