Interface JpaPasswordTokenRepository<D extends JpaPasswordToken>
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<D,
,String> com.broadleafcommerce.common.extension.DomainTypeAware
,PasswordTokenRepository<D>
,org.springframework.data.repository.Repository<D,
String>
@Repository
public interface JpaPasswordTokenRepository<D extends JpaPasswordToken>
extends PasswordTokenRepository<D>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Class<?>
readAllTokensByUserId
(String userId) readAllTokensByUserIdAndPurpose
(String userId, String purpose) readUnusedTokensByUserId
(String userId) readUnusedTokensByUserIdAndPurpose
(String userId, String purpose) Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findAllById, findById, save, saveAll
-
Method Details
-
readUnusedTokensByUserId
@Query("select token from JpaPasswordToken token where :userId = token.userId and token.used = false") List<D> readUnusedTokensByUserId(String userId) - Specified by:
readUnusedTokensByUserId
in interfacePasswordTokenRepository<D extends JpaPasswordToken>
-
readUnusedTokensByUserIdAndPurpose
@Query("select token from JpaPasswordToken token where :userId = token.userId and token.used = false and :purpose = token.purpose") List<D> readUnusedTokensByUserIdAndPurpose(String userId, String purpose) - Specified by:
readUnusedTokensByUserIdAndPurpose
in interfacePasswordTokenRepository<D extends JpaPasswordToken>
-
readAllTokensByUserId
@Query("select token from JpaPasswordToken token where :userId = token.userId") List<D> readAllTokensByUserId(String userId) - Specified by:
readAllTokensByUserId
in interfacePasswordTokenRepository<D extends JpaPasswordToken>
-
readAllTokensByUserIdAndPurpose
@Query("select token from JpaPasswordToken token where :userId = token.userId and :purpose = token.purpose") List<D> readAllTokensByUserIdAndPurpose(String userId, String purpose) - Specified by:
readAllTokensByUserIdAndPurpose
in interfacePasswordTokenRepository<D extends JpaPasswordToken>
-
getDomainType
- Specified by:
getDomainType
in interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-