Interface UserPermissionRepository<D>

All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,String>, CustomizedUserPermissionRepository<D>, com.broadleafcommerce.common.extension.DomainTypeAware, org.springframework.data.repository.Repository<D,String>
All Known Subinterfaces:
JpaUserPermissionRepository<D>

@NoRepositoryBean public interface UserPermissionRepository<D> extends org.springframework.data.repository.CrudRepository<D,String>, CustomizedUserPermissionRepository<D>
Repository for persisted counterparts of UserPermission.
  • Method Details

    • findByIdAndArchivedFalse

      Optional<D> findByIdAndArchivedFalse(String id)
      Finds and returns the entity with the given ID if not UserPermission.archived.
      Parameters:
      id - the id of the entity to find
      Returns:
      an Optional containing the entity if found, Optional.empty() otherwise
    • findAllByNameContainingIgnoreCaseAndArchivedFalse

      @Deprecated org.springframework.data.domain.Page<D> findAllByNameContainingIgnoreCaseAndArchivedFalse(String name, org.springframework.data.domain.Pageable page)
      Finds and returns all entities that are not UserPermission.archived whose name contains the given value.
      Parameters:
      name - the name value to match with
      page - information about which page of results to return from the database
      Returns:
      all entities that are not archived whose name matches the given value
    • findAllByNameContainingIgnoreCaseAndArchivedFalseAndAccountPermissionEqualsAndUserAssignableEquals

      org.springframework.data.domain.Page<D> findAllByNameContainingIgnoreCaseAndArchivedFalseAndAccountPermissionEqualsAndUserAssignableEquals(String name, boolean accountPermission, boolean userAssignablePermission, org.springframework.data.domain.Pageable page)
      Finds and returns all entities that are not UserPermission.archived whose name contains the given value.
      Parameters:
      name - the name value to match with
      accountPermission - Read account permissions?
      userAssignablePermission - true to return user assignable permissions, else false
      page - information about which page of results to return from the database
      Returns:
      all entities that are not archived whose name matches the given value
    • findAllByNameContainingIgnoreCaseAndArchivedFalseAndAccountPermissionEquals

      org.springframework.data.domain.Page<D> findAllByNameContainingIgnoreCaseAndArchivedFalseAndAccountPermissionEquals(String name, boolean accountPermission, org.springframework.data.domain.Pageable page)
      Finds and returns all entities that are not UserPermission.archived whose name contains the given value.
      Parameters:
      name - the name value to match with
      accountPermission - Read account permissions?
      page - information about which page of results to return from the database
      Returns:
      all entities that are not archived whose name matches the given value
    • findByIdInAndArchivedFalse

      Set<D> findByIdInAndArchivedFalse(Collection<String> ids)