Interface CustomizedAdminPermissionRepository<D>
- All Superinterfaces:
com.broadleafcommerce.common.extension.DomainTypeAware
- All Known Subinterfaces:
AdminPermissionRepository<D>
,JpaAdminPermissionRepository<D>
- All Known Implementing Classes:
JpaCustomizedAdminPermissionRepository
@Deprecated
public interface CustomizedAdminPermissionRepository<D>
extends com.broadleafcommerce.common.extension.DomainTypeAware
Deprecated.
Additional functionality necessary for
AdminPermissionRepository
.- Author:
- Samarth Dhruva (samarthd)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsByNameAndIdNot
(String name, String id) Deprecated.Reports whether there exists a permission in the data store whoseAdminPermission.name
is equal to the givenname
and whoseAdminPermission.id
is not equal to the givenid
.boolean
existsByNameAndIdNotInTenantOrGlobal
(String name, String id, String tenantId) Deprecated.Reports whether there exists a permission in the data store whoseAdminPermission.name
is equal to the givenname
and whoseAdminPermission.id
is not equal to the givenid
.findByIdInTenantOrGlobal
(String id, String tenantId) Deprecated.Reads the permission in the data store which has the given ID.findByIdsInTenantOrGlobal
(Collection<String> ids, String tenantId) Deprecated.Reads the permissions in the data store which have the given IDs.org.springframework.data.domain.Page<D>
findByNameContainingIgnoreCase
(String name, org.springframework.data.domain.Pageable pageable) Deprecated.Reads permissions in the data store, filtering to those whose name contains the given value.org.springframework.data.domain.Page<D>
findByNameContainingIgnoreCaseInTenantOrGlobal
(String name, String tenantId, org.springframework.data.domain.Pageable pageable) Deprecated.Reads permissions in the data store, filtering to those whose name contains the given value.Methods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware
getDomainType
-
Method Details
-
existsByNameAndIdNot
Deprecated.Reports whether there exists a permission in the data store whoseAdminPermission.name
is equal to the givenname
and whoseAdminPermission.id
is not equal to the givenid
.Similar to
existsByNameAndIdNotInTenantOrGlobal(String, String, String)
but without any tenant-discrimination.- Parameters:
name
- the value that permission name must equal in order to matchid
- (optional) the value that the permission's id must not equal in order to match. If this value isnull
, then results will not be filtered by their id.- Returns:
true
if there exists a permission matching the given name and not matching the given id,false
otherwise- See Also:
-
existsByNameAndIdNotInTenantOrGlobal
boolean existsByNameAndIdNotInTenantOrGlobal(String name, @Nullable String id, @Nullable String tenantId) Deprecated.Reports whether there exists a permission in the data store whoseAdminPermission.name
is equal to the givenname
and whoseAdminPermission.id
is not equal to the givenid
.Results are restricted to only the permissions accessible from the given context as described in the class-level javadocs.
Similar to
existsByNameAndIdNot(String, String)
but with tenant-discrimination.- Parameters:
name
- the value that permission name must equal in order to matchid
- (optional) the value that the permission's id must not equal in order to match. If this value isnull
, then results will not be filtered by their id.tenantId
- the ID of the tenant to restrict the results by. If this is alsonull
, then only permissions with a null tenant ID will be returned.- Returns:
true
if there exists a permission with a matching or null tenant ID, a matching name, and a not matching id,false
otherwise- See Also:
-
findByIdsInTenantOrGlobal
Deprecated.Reads the permissions in the data store which have the given IDs. The permissions must either have a tenant ID matching the given value or a null tenant ID (global).- Parameters:
ids
- the IDs of the permissions to findtenantId
- the ID of the tenant to restrict the results by. If this is alsonull
, then only permissions with a null tenant ID will be returned.- Returns:
- permissions that match the given IDs with either a null tenant ID or the given tenant ID
-
findByNameContainingIgnoreCaseInTenantOrGlobal
org.springframework.data.domain.Page<D> findByNameContainingIgnoreCaseInTenantOrGlobal(String name, @Nullable String tenantId, org.springframework.data.domain.Pageable pageable) Deprecated.Reads permissions in the data store, filtering to those whose name contains the given value. Results are also restricted to only the permissions that have a tenant ID matching the given value or a null tenant ID (global).- Parameters:
name
- the value that permission names must contain in order to matchtenantId
- the ID of the tenant to filter results by. If this is alsonull
, then only permissions with null tenant IDs will be returned.pageable
- describes the page of results to return- Returns:
- permissions that match the given name with either a null tenant ID or the given tenant ID
-
findByNameContainingIgnoreCase
org.springframework.data.domain.Page<D> findByNameContainingIgnoreCase(String name, org.springframework.data.domain.Pageable pageable) Deprecated.Reads permissions in the data store, filtering to those whose name contains the given value. Results are also restricted to only the permissions that have a tenant ID matching the given value or a null tenant ID (global).- Parameters:
name
- the value that permission names must contain in order to matchpageable
- describes the page of results to return- Returns:
- permissions that match the given name with either a null tenant ID or the given tenant ID
-
findByIdInTenantOrGlobal
Deprecated.Reads the permission in the data store which has the given ID. The permission must either have a tenant ID matching the given value or a null tenant ID (global).- Parameters:
id
- the ID of the permission to findtenantId
- the ID of the tenant to restrict the result by. If this is alsonull
, then only a permission with a null tenant ID will be returned.- Returns:
- an
Optional
containing the permission if found, orOptional.empty()
-