Liferay 6.1.2-ce-ga3

com.liferay.portal.service.persistence
Class ResourceTypePermissionFinderImpl

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<ResourceTypePermission>
      extended by com.liferay.portal.service.persistence.ResourceTypePermissionFinderImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<ResourceTypePermission>, ResourceTypePermissionFinder

public class ResourceTypePermissionFinderImpl
extends BasePersistenceImpl<ResourceTypePermission>
implements ResourceTypePermissionFinder


Field Summary
static String FIND_BY_EITHER_SCOPE_C_G_N
           
static String FIND_BY_GROUP_SCOPE_C_N_R
           
 
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
ResourceTypePermissionFinderImpl()
           
 
Method Summary
 List<ResourceTypePermission> findByEitherScopeC_G_N(long companyId, long groupId, String name)
          Returns all the resource type permissions with either scope that apply to resources of the type within the group.
 List<ResourceTypePermission> findByGroupScopeC_N_R(long companyId, String name, long roleId)
          Returns all of the role's group scope resource type permissions that apply to resources of the type.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getClassLoader, 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

FIND_BY_EITHER_SCOPE_C_G_N

public static final String FIND_BY_EITHER_SCOPE_C_G_N

FIND_BY_GROUP_SCOPE_C_N_R

public static final String FIND_BY_GROUP_SCOPE_C_N_R
Constructor Detail

ResourceTypePermissionFinderImpl

public ResourceTypePermissionFinderImpl()
Method Detail

findByEitherScopeC_G_N

public List<ResourceTypePermission> findByEitherScopeC_G_N(long companyId,
                                                           long groupId,
                                                           String name)
                                                    throws SystemException
Returns all the resource type permissions with either scope that apply to resources of the type within the group. This method is used to find all the resource type permissions that apply to a newly created resource.

Specified by:
findByEitherScopeC_G_N in interface ResourceTypePermissionFinder
Parameters:
companyId - the primary key of the company
groupId - the primary key of the group
name - the fully qualified class name of the resource type
Returns:
all the resource type permissions that apply to resources of the type within the group
Throws:
SystemException - if a system exception occurred

findByGroupScopeC_N_R

public List<ResourceTypePermission> findByGroupScopeC_N_R(long companyId,
                                                          String name,
                                                          long roleId)
                                                   throws SystemException
Returns all of the role's group scope resource type permissions that apply to resources of the type. This method is used during the process of adding a company scope resource type permissions to remove all the group scope permissions that would be overridden by it.

Specified by:
findByGroupScopeC_N_R in interface ResourceTypePermissionFinder
Parameters:
companyId - the primary key of the company
name - the fully qualified class name of the resource type
roleId - the primary key of the role
Returns:
all of the role's group scope resource type permissions that apply to resources of the type
Throws:
SystemException - if a system exception occurred

Liferay 6.1.2-ce-ga3