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 Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<D>
findAllByNameContainingIgnoreCaseAndArchivedFalse
(String name, org.springframework.data.domain.Pageable page) Deprecated.Since 1.8.0.org.springframework.data.domain.Page<D>
findAllByNameContainingIgnoreCaseAndArchivedFalseAndAccountPermissionEquals
(String name, boolean accountPermission, org.springframework.data.domain.Pageable page) Finds and returns all entities that are notUserPermission.archived
whose name contains the given value.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 notUserPermission.archived
whose name contains the given value.Finds and returns the entity with the given ID if notUserPermission.archived
.Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
Methods inherited from interface com.broadleafcommerce.auth.security.repository.CustomizedUserPermissionRepository
createOnlyIfDoesNotExist, replaceOnlyIfLastUpdatedBefore
Methods inherited from interface com.broadleafcommerce.common.extension.DomainTypeAware
getDomainType
-
Method Details
-
findByIdAndArchivedFalse
Finds and returns the entity with the given ID if notUserPermission.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) Deprecated.Finds and returns all entities that are notUserPermission.archived
whose 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
-
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 notUserPermission.archived
whose name contains the given value.- Parameters:
name
- the name value to match withaccountPermission
- Read account permissions?userAssignablePermission
- true to return user assignable permissions, else falsepage
- 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 notUserPermission.archived
whose name contains the given value.- Parameters:
name
- the name value to match withaccountPermission
- 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
-