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 Type
    Method
    Description
    boolean
    Deprecated.
    Reports whether there exists a role in the data store whose AdminRole.name is equal to the given name and whose AdminRole.id is not equal to the given id.
    boolean
    Deprecated.
    Reports whether there exists a role in the data store whose AdminRole.name is equal to the given name and whose AdminRole.id is not equal to the given id.
    Deprecated.
    Reads the role in the data store which has the given ID.
    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

      boolean existsByNameAndIdNot(String name, @Nullable String id)
      Deprecated.
      Reports whether there exists a role in the data store whose AdminRole.name is equal to the given name and whose AdminRole.id is not equal to the given id.

      Similar to existsByNameAndIdNotInTenantOrGlobal(String, String, String) but without any tenant-discrimination.

      Parameters:
      name - the value that role name must equal in order to match
      id - (optional) the value that the role's id must not equal in order to match. If this value is null, 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 whose AdminRole.name is equal to the given name and whose AdminRole.id is not equal to the given id.

      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 match
      id - (optional) the value that the role's id must not equal in order to match. If this value is null, then results will not be filtered by their id.
      tenantId - the ID of the tenant to restrict the results by. If this is also null, 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

      List<D> findByIdsInTenantOrGlobal(Collection<String> ids, @Nullable String tenantId)
      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 find
      tenantId - the ID of the tenant to restrict the results by. If this is also null, 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 match
      tenantId - the ID of the tenant to filter results by. If this is also null, 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 match
      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
    • findByIdInTenantOrGlobal

      Optional<D> findByIdInTenantOrGlobal(String id, @Nullable String tenantId)
      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 find
      tenantId - the ID of the tenant to restrict the result by. If this is also null, then only a role with a null tenant ID will be returned.
      Returns:
      an Optional containing the role if found, or Optional.empty()