com.liferay.portal.service.persistence
Class RoleFinderImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl
      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.service.persistence.RoleFinder

public class RoleFinderImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl
implements com.liferay.portal.service.persistence.RoleFinder

View Source

Author:
Brian Wing Shun Chan

Field Summary
static java.lang.String COUNT_BY_C_N_D_T
           
static java.lang.String COUNT_BY_COMMUNITY
           
static java.lang.String COUNT_BY_ORGANIZATION
           
static java.lang.String COUNT_BY_USER
           
static java.lang.String COUNT_BY_USER_GROUP
           
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_U_G
           
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, listeners
 
Constructor Summary
RoleFinderImpl()
           
 
Method Summary
 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)
           
 int countByR_U(long roleId, long userId)
           
 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 type, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 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> 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> findByUserGroupRole(long userId, long groupId)
           
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 getWhere(java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
           
protected  java.lang.String getWhere(java.lang.String key)
           
protected  void setGroupIds(com.liferay.portal.kernel.dao.orm.QueryPos qPos, long[] groupIds)
           
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
closeSession, getDataSource, getDialect, getListeners, openSession, processException, registerListener, setDataSource, setSessionFactory, unregisterListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COUNT_BY_C_N_D_T

public static java.lang.String COUNT_BY_C_N_D_T

COUNT_BY_COMMUNITY

public static java.lang.String COUNT_BY_COMMUNITY

COUNT_BY_ORGANIZATION

public static java.lang.String COUNT_BY_ORGANIZATION

COUNT_BY_USER

public static java.lang.String COUNT_BY_USER

COUNT_BY_USER_GROUP

public static java.lang.String COUNT_BY_USER_GROUP

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

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

countByC_N_D_T

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

findByUserGroupRole

public java.util.List<com.liferay.portal.model.Role> findByUserGroupRole(long userId,
                                                                         long groupId)
                                                                  throws com.liferay.portal.SystemException
Specified by:
findByUserGroupRole in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.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.SystemException
Specified by:
findByC_N in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.NoSuchRoleException
com.liferay.portal.SystemException

findByU_G

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

findByU_G

public java.util.List<com.liferay.portal.model.Role> findByU_G(long userId,
                                                               long[] groupIds)
                                                        throws com.liferay.portal.SystemException
Specified by:
findByU_G in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.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.SystemException
Specified by:
findByU_G in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.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 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
Specified by:
findByC_N_D_T in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.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.SystemException
Specified by:
findByC_N_S_P in interface com.liferay.portal.service.persistence.RoleFinder
Throws:
com.liferay.portal.SystemException

getGroupIds

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

setGroupIds

protected void setGroupIds(com.liferay.portal.kernel.dao.orm.QueryPos qPos,
                           long[] groupIds)

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)

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)