com.liferay.portal.service.persistence
Class ResourcePermissionFinderImpl

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

public class ResourcePermissionFinderImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portal.model.ResourcePermission>
implements com.liferay.portal.service.persistence.ResourcePermissionFinder

Author:
Brian Wing Shun Chan

Field Summary
static java.lang.String COUNT_BY_C_N_S_P_R_A
           
static java.lang.String COUNT_BY_R_S
           
static java.lang.String FIND_BY_C_N_S
           
static java.lang.String FIND_BY_C_P
           
static java.lang.String FIND_BY_R_S
           
static java.lang.String FIND_BY_RESOURCE
           
 
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
ResourcePermissionFinderImpl()
           
 
Method Summary
 int countByC_N_S_P_R_A(long companyId, java.lang.String name, int scope, java.lang.String primKey, long[] roleIds, long actionId)
           
 int countByR_S(long roleId, int[] scopes)
           
 java.util.List<java.lang.String> findByC_N_S(long companyId, java.lang.String name, int scope)
           
 java.util.List<com.liferay.portal.model.ResourcePermission> findByC_P(long companyId, java.lang.String primKey)
           
 java.util.List<com.liferay.portal.model.ResourcePermission> findByR_S(long roleId, int[] scopes, int start, int end)
           
 java.util.List<com.liferay.portal.model.ResourcePermission> findByResource(long companyId, long groupId, java.lang.String name, java.lang.String primKey)
           
protected  java.lang.String getScopes(int[] scopes)
           
 
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_R_S

public static java.lang.String COUNT_BY_R_S

COUNT_BY_C_N_S_P_R_A

public static java.lang.String COUNT_BY_C_N_S_P_R_A

FIND_BY_RESOURCE

public static java.lang.String FIND_BY_RESOURCE

FIND_BY_C_P

public static java.lang.String FIND_BY_C_P

FIND_BY_R_S

public static java.lang.String FIND_BY_R_S

FIND_BY_C_N_S

public static java.lang.String FIND_BY_C_N_S
Constructor Detail

ResourcePermissionFinderImpl

public ResourcePermissionFinderImpl()
Method Detail

countByR_S

public int countByR_S(long roleId,
                      int[] scopes)
               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByR_S in interface com.liferay.portal.service.persistence.ResourcePermissionFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

countByC_N_S_P_R_A

public int countByC_N_S_P_R_A(long companyId,
                              java.lang.String name,
                              int scope,
                              java.lang.String primKey,
                              long[] roleIds,
                              long actionId)
                       throws com.liferay.portal.kernel.exception.SystemException
Specified by:
countByC_N_S_P_R_A in interface com.liferay.portal.service.persistence.ResourcePermissionFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByResource

public java.util.List<com.liferay.portal.model.ResourcePermission> findByResource(long companyId,
                                                                                  long groupId,
                                                                                  java.lang.String name,
                                                                                  java.lang.String primKey)
                                                                           throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByResource in interface com.liferay.portal.service.persistence.ResourcePermissionFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByC_P

public java.util.List<com.liferay.portal.model.ResourcePermission> findByC_P(long companyId,
                                                                             java.lang.String primKey)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByC_P in interface com.liferay.portal.service.persistence.ResourcePermissionFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByR_S

public java.util.List<com.liferay.portal.model.ResourcePermission> findByR_S(long roleId,
                                                                             int[] scopes,
                                                                             int start,
                                                                             int end)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Specified by:
findByR_S in interface com.liferay.portal.service.persistence.ResourcePermissionFinder
Throws:
com.liferay.portal.kernel.exception.SystemException

findByC_N_S

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

getScopes

protected java.lang.String getScopes(int[] scopes)
See Also:
PermissionFinderImpl#getScopes(int[])}