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 ofUserPermission.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.springframework.data.domain.Page<D>findAllByNameContainingIgnoreCaseAndArchivedFalse(String name, org.springframework.data.domain.Pageable page)Finds and returns all entities that are notUserPermission.archivedwhose name contains the given value.Optional<D>findByIdAndArchivedFalse(String id)Finds and returns the entity with the given ID if notUserPermission.archived.Set<D>findByIdInAndArchivedFalse(Collection<String> ids)-
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAllById, findById, save, saveAll
-
Methods inherited from interface com.broadleafcommerce.auth.security.repository.CustomizedUserPermissionRepository
createOnlyIfDoesNotExist, replaceOnlyIfLastUpdatedBefore
-
-
-
-
Method Detail
-
findByIdAndArchivedFalse
Optional<D> findByIdAndArchivedFalse(String id)
Finds and returns the entity with the given ID if notUserPermission.archived.- Parameters:
id- the id of the entity to find- Returns:
- an
Optionalcontaining the entity if found,Optional.empty()otherwise
-
findAllByNameContainingIgnoreCaseAndArchivedFalse
org.springframework.data.domain.Page<D> findAllByNameContainingIgnoreCaseAndArchivedFalse(String name, org.springframework.data.domain.Pageable page)
Finds and returns all entities that are notUserPermission.archivedwhose name contains the given value.- Parameters:
name- the name value to match withpage- 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)
-
-