com.liferay.portal.service.persistence
Class ResourceTypePermissionFinderImpl
java.lang.Object
com.liferay.portal.service.persistence.impl.BasePersistenceImpl<ResourceTypePermission>
com.liferay.portal.service.persistence.ResourceTypePermissionFinderImpl
- All Implemented Interfaces:
- SessionFactory, BasePersistence<ResourceTypePermission>, ResourceTypePermissionFinder
public class ResourceTypePermissionFinderImpl
- extends BasePersistenceImpl<ResourceTypePermission>
- implements ResourceTypePermissionFinder
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 |
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 |
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
ResourceTypePermissionFinderImpl
public ResourceTypePermissionFinderImpl()
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 companygroupId
- the primary key of the groupname
- 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 companyname
- the fully qualified class name of the resource typeroleId
- 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