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

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

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

      Parameters:
      name - the value that permission name must equal in order to match
      id - (optional) the value that the permission'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 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 whose AdminPermission.name is equal to the given name and whose AdminPermission.id is not equal to the given id.

      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 match
      id - (optional) the value that the permission'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 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

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

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