Interface CustomizedAdminRoleRepository<D>
- All Superinterfaces:
com.broadleafcommerce.common.extension.DomainTypeAware
- All Known Subinterfaces:
AdminRoleRepository<D>
,JpaAdminRoleRepository<D>
- All Known Implementing Classes:
JpaCustomizedAdminRoleRepository
@Deprecated
public interface CustomizedAdminRoleRepository<D>
extends com.broadleafcommerce.common.extension.DomainTypeAware
Deprecated.
Additional functionality necessary for
AdminRoleRepository
.- Author:
- Samarth Dhruva (samarthd)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsByNameAndIdNot
(String name, String id) Deprecated.Reports whether there exists a role in the data store whoseAdminRole.name
is equal to the givenname
and whoseAdminRole.id
is not equal to the givenid
.boolean
existsByNameAndIdNotInTenantOrGlobal
(String name, String id, String tenantId) Deprecated.Reports whether there exists a role in the data store whoseAdminRole.name
is equal to the givenname
and whoseAdminRole.id
is not equal to the givenid
.findByIdInTenantOrGlobal
(String id, String tenantId) Deprecated.Reads the role in the data store which has the given ID.findByIdsInTenantOrGlobal
(Collection<String> ids, String tenantId) Deprecated.Reads the roles 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 roles 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 roles 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 role in the data store whoseAdminRole.name
is equal to the givenname
and whoseAdminRole.id
is not equal to the givenid
.Similar to
existsByNameAndIdNotInTenantOrGlobal(String, String, String)
but without any tenant-discrimination.- Parameters:
name
- the value that role name must equal in order to matchid
- (optional) the value that the role'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 role 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 role in the data store whoseAdminRole.name
is equal to the givenname
and whoseAdminRole.id
is not equal to the givenid
.Results are restricted to only the roles 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 role name must equal in order to matchid
- (optional) the value that the role'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 roles with a null tenant ID will be returned.- Returns:
true
if there exists a role with a matching or null tenant ID, a matching name, and a not matching id,false
otherwise- See Also:
-
findByIdsInTenantOrGlobal
Deprecated.Reads the roles in the data store which have the given IDs. The roles must either have a tenant ID matching the given value or a null tenant ID (global).- Parameters:
ids
- the IDs of the roles to findtenantId
- the ID of the tenant to restrict the results by. If this is alsonull
, then only roles with a null tenant ID will be returned.- Returns:
- roles 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 roles in the data store, filtering to those whose name contains the given value. Results are also restricted to only the roles that have a tenant ID matching the given value or a null tenant ID (global).- Parameters:
name
- the value that role names must contain in order to matchtenantId
- the ID of the tenant to filter results by. If this is alsonull
, then only roles with null tenant IDs will be returned.pageable
- describes the page of results to return- Returns:
- roles 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 roles in the data store, filtering to those whose name contains the given value. Results are also restricted to only the roles that have a tenant ID matching the given value or a null tenant ID (global).- Parameters:
name
- the value that role names must contain in order to matchpageable
- describes the page of results to return- Returns:
- roles that match the given name with either a null tenant ID or the given tenant ID
-
findByIdInTenantOrGlobal
Deprecated.Reads the role in the data store which has the given ID. The role must either have a tenant ID matching the given value or a null tenant ID (global).- Parameters:
id
- the ID of the role to findtenantId
- the ID of the tenant to restrict the result by. If this is alsonull
, then only a role with a null tenant ID will be returned.- Returns:
- an
Optional
containing the role if found, orOptional.empty()
-