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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Class<?>
getDomainType()
List<D>
readAllTokensByUserId(String userId)
List<D>
readAllTokensByUserIdAndPurpose(String userId, String purpose)
List<D>
readUnusedTokensByUserId(String userId)
List<D>
readUnusedTokensByUserIdAndPurpose(String userId, String purpose)
-
-
-
Method Detail
-
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
default Class<?> getDomainType()
- Specified by:
getDomainType
in interfacecom.broadleafcommerce.common.extension.DomainTypeAware
-
-